[ptt-users] XML-RPC record/playback
Frank Cohen
fcohen at pushtotest.com
Thu Oct 12 10:23:24 PDT 2006
Hi Alec: Thanks for buying my book. (BTW, I just finished a second
book and the manuscript is available for download for the next few
weeks at http://www.xquerynow.com/thebook.)
XSTest as it comes in the open-source distribution instantiates the
same TestCase for each concurrently running thread. To achieve what
you're looking for please modify the StartTest method in the
master.py script to instantiate a proportional amount of different
TestCases to simulate multiple clients running. This is a feature of
TestMaker Platform, the commercial version of TestMaker. Details
found at http://downloads.pushtotest.com/TestMakerPlatform.pdf
Adding this capability to master.py is not really that difficult and
I'd be happy to help you do so.
-Frank
On Oct 11, 2006, at 3:54 PM, Alec Lebedev wrote:
> Frank,
>
> thanks for the answer. I think I can route the traffic through HTTP.
>
> What I would really like to do is record requests from multiple
> clients and then play them back at once. Suppose I start the HTTP
> traffic recorder and then start one Java client and use it. Then I
> stop the first client and start another client, use it and stop it.
> I would then like to stop the recorder and playback both clients'
> activities concurrently. This will allow me to run multiple
> sequential clients while recording and then simulate server load
> caused by concurrent clients while playing back.
>
> I hope you are covering similar test scenarios in your book, which
> I am awaiting to receive within the next couple of days. But
> meanwhile, I would appreciate you answering this question on this
> thread.
>
> Thanks.
>
> Alec
>
> Frank Cohen <fcohen at pushtotest.com> wrote: Hi Alec: TestMaker uses
> a proxy recorder to observe HTTP traffic and
> create a JUnit TestCase class to operate a service. Pointing the
> Swing client to use the proxy port of the TestMaker recorder is all
> you need to do for TestMaker to record the operations into a script.
> Unfortunately, the TestMaker recorder is compatible with HTTP and not
> HTTPS. Users workaround this by changing the Swing client to use HTTP
> when recording the test and then using HTTPS when playing back the
> recorded script.
>
> I hope this helps.
>
> -Frank
>
>
>
>
> On Oct 11, 2006, at 1:33 PM, Alec Lebedev wrote:
>
> > Hi,
> >
> > Is there a way to use TestMaker to record and playback XML-RPC
> > requests sent over HTTPS from a Java (Swing) client to the server?
> > I know that I can use TestMaker to record requests from a browser,
> > but can I use it to do the same for a java client?
> >
> > Thanks.
> >
> > Alec
> > _______________________________________________
> > Users mailing list
> > Users at lists.pushtotest.com
> > http://lists.pushtotest.com/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> Users at lists.pushtotest.com
> http://lists.pushtotest.com/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> Users at lists.pushtotest.com
> http://lists.pushtotest.com/mailman/listinfo/users
More information about the Users
mailing list