Jump to content


Help with Session variables


  • Please log in to reply
5 replies to this topic

#1 Guest_Ahsan_*

Guest_Ahsan_*
  • Guests

Posted 05 March 2008 - 12:02 PM

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.housingi...;accountId=xxxx

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

I then load:

Step 3) http://xxxx.housingi...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 smile.gif

Regard
Ahsan

#2 Guest_angela_*

Guest_angela_*
  • Guests

Posted 06 March 2008 - 07:45 AM


Hi Ashan,

First of all, it's not a trouble for us at all to answer your questions smile.gif 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.



#3 Guest_Ahsan_*

Guest_Ahsan_*
  • Guests

Posted 06 March 2008 - 09:23 AM

QUOTE (Ahsan @ Mar 5 2008, 12:02 PM) <{POST_SNAPBACK}>
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.housingi...;accountId=xxxx

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

I then load:

Step 3) http://xxxx.housingi...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 smile.gif

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?

#4 Guest_angela_*

Guest_angela_*
  • Guests

Posted 12 March 2008 - 11:57 AM

QUOTE (Ahsan @ Mar 6 2008, 03:23 PM) <{POST_SNAPBACK}>
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.


#5 Guest_angela_*

Guest_angela_*
  • Guests

Posted 12 March 2008 - 02:44 PM

Hello Ahsan,

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

Attached Files



#6 Guest_Ahsan_*

Guest_Ahsan_*
  • Guests

Posted 14 March 2008 - 12:38 PM

QUOTE (angela @ Mar 12 2008, 02:44 PM) <{POST_SNAPBACK}>
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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users