Jump to content
WAPT Forum
Sign in to follow this  
Guest Ahsan

Help with Session variables

Recommended Posts

Guest Ahsan

Hi,

 

I am very new to this software and still getting to grips with the fundamentals.

 

Following highliths my objective:

 

When recording a script, I am loading this page:

 

Step1) http://xxxx.housingintelligence.co.uk/inde...;accountId=xxxx

 

Step 3) The request then outputs a response which incudes: CFID=xxxxx&CFTOKEN=xxxxxx

 

I then load:

 

Step 3) http://xxxx.housingintelligence.co.uk/inde...p;CFTOKEN=xxxxx

 

My question is how do I make the CFID & CFTOKEN into variables so that upon, runing the stress test sytsem would automatically extract these variables from (Step 2) and submit it as variable into (Step3)

 

I would be very grateful if you tell me in detail as to what I need to do.

 

BTW - I have tried to go through the help section but wasn't too clear on how to proceed just didn;t have enough screen shots etc. Also, have guys considered uploading movies of some of the common task? In my opinion that would be brillaint as we wouldn't be bothering you guys so much :)

 

Regard

Ahsan

Share this post


Link to post
Share on other sites
Guest angela

 

Hi Ashan,

 

First of all, it's not a trouble for us at all to answer your questions :) However, we indeed think about creation of more detailed manual in future.

As for your case, in general, it seems that you can use the function $Search or Parameter from URL - $UrlParam

If you provide us with more accurate link for step 2 (server response), I will be able to make a step-by-step instruction and place it here.

 

 

Share this post


Link to post
Share on other sites
Guest Ahsan
Hi,

 

I am very new to this software and still getting to grips with the fundamentals.

 

Following highliths my objective:

 

When recording a script, I am loading this page:

 

Step1) http://xxxx.housingintelligence.co.uk/inde...;accountId=xxxx

 

Step 3) The request then outputs a response which incudes: CFID=xxxxx&CFTOKEN=xxxxxx

 

I then load:

 

Step 3) http://xxxx.housingintelligence.co.uk/inde...p;CFTOKEN=xxxxx

 

My question is how do I make the CFID & CFTOKEN into variables so that upon, runing the stress test sytsem would automatically extract these variables from (Step 2) and submit it as variable into (Step3)

 

I would be very grateful if you tell me in detail as to what I need to do.

 

BTW - I have tried to go through the help section but wasn't too clear on how to proceed just didn;t have enough screen shots etc. Also, have guys considered uploading movies of some of the common task? In my opinion that would be brillaint as we wouldn't be bothering you guys so much :)

 

Regard

Ahsan

 

 

Hi,

 

Thanks for the prompt reply.

Here is the server response I get when I have loaded the first URL (Step 1):

 

<?xml version="1.0" encoding="UTF-8" ?>

- <response>

<securityToken generatedOn="LIVE-APP-4" value="CFID=1014604&CFTOKEN=32333430" />

</response>

 

As seen here from the response, I am only interested in extracting the CFID=1014604&CFTOKEN=32333430 and then use it as part of the URL used in Step 3 above.

 

I hope this is sufficient info for you to help.

 

Regards

Ahsan

 

PS: I have another question: DO you guys offere traning courses too?

Share this post


Link to post
Share on other sites
Guest angela
PS: I have another question: DO you guys offere traning courses too?

 

We do not offer them for the present, but possibly we organize them in future.

 

Share this post


Link to post
Share on other sites
Guest Ahsan
Hello Ahsan,

 

Please find in the attachment a small tutorial for your case.

 

Thank you very much for this. Will try this and let you know how i get on..

 

Ahsan

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...