Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » DataPool in concurrency
DataPool in concurrency [message #100864] Wed, 13 June 2007 07:22 Go to next message
Pierre is currently offline PierreFriend
Messages: 27
Registered: July 2009
Junior Member
Hello all !

I know to use datapool, but I would like to use datapools with different
logins and passwords (https request). I have recorded https requests, and
I want to acces to the website with different logins in concurrency.
So I don't use a loop "while".

Thanks for your help.

Pierre
Re: DataPool in concurrency [message #101456 is a reply to message #100864] Fri, 22 June 2007 16:15 Go to previous message
DuWayne Morris is currently offline DuWayne MorrisFriend
Messages: 36
Registered: July 2009
Member
Hi,

It appears Paul had answered your earlier question on usage of datapools
in a URL test with the following tutorial:

http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. hyades.test.doc.user/samples/saccessdp.htm

I performed a recording to buy.com for an example of an SSL login. I used
guest@nc.rr.com for the user name and guestpassword as the password.
Within your URL test with SSL, you should see a request.setMethod("POST")
something like the following with the user name and password in plain text
in the request.setBody() call:

/**
* 114 POST secure.buy.com
* @throws Exception
*/
public void c114POSTSecure_buy_com() throws Exception {
HttpRequest request = new HttpRequest();
request.setMethod("POST");
request.setVersion("1.1");
request.setHost("secure.buy.com");
request.setPort(443);
request
.setAbsolutePath(" /corp/support/login.asp?what=&certificate_id=&claim_ code=&sku=&loc=&op=&rID=&p=&estk=&am p;mnsignup=&movsignup=&eaf=&cid=&bndl=&b mlmerch=&seller=&dir_name=&mkid=&bundleID=&a mp;rt=&pu=&ps=&pt=&sid=&order=&item_ id=&mpSku= ");
request
.setBody("shopper_name=guest@nc.rr.com &custLogin=returning&shopper_password=guestpassword& amp;age=0&optin=0&x=42&y=12HTTP/1.1
100 Continue");
request.setPageNumber(13);
request.setPageOrder(HttpRequest.PAGE_START);
request.setSecure(true);

You would then modify the setBody call to put together a string using the
datapool user names and passwords.

There are several potential problems that you should be aware of. In many
cases, the server will return a session ID that provides identification
for subsequent requests, after validating the user and password. TPTP is
not currently handling session cookies. Therefore, the server will
recognize subsequent requests from the user as being valid. There is an
enhancement request for this:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=139699

In the bugzilla a workaround for the session cookie was provided by
Sheldon, which was followed by some notes about the limitations of that
work-around.

Feel free to offer contributions of code to address these enhancement
issues.
Previous Topic:Replace the Agent Controller with an OSGi based solution
Next Topic:Open Execution file and parse it
Goto Forum:
  


Current Time: Fri Apr 26 04:20:54 GMT 2024

Powered by FUDForum. Page generated in 0.03101 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top