I am trying to record a script for a web application which can login and after login we can select the "Year of the travel".
After click the "Year of the travel" it will generate the ticket number and this ticket number is maintained in session and display in the entire pages header.
Now I have clicked the value in HTML tree and named the variable for the value as Ticket_num.
Now I replay the script with different login, the ticket number is not created
Suggest me how to pass the value in session... [img]/images/graemlins/confused.gif[/img]
Re: Dynamic value is not properly captured.........
I have used the following code to extract my session id
Set offset1 = ~LENGTH ("JSESSIONID=")
Set total_len1 = ~LENGTH (cookie_5_0)
Set temp1=~EXTRACT (offset,total_len,cookie_5_0)
Where Cookie_5_0 holds my cookie id
Well In your case I do not know how the Ticket number is getting generated, but you can write the code as I have written in order to extract the Ticket Id.
Extract The ticket Id in some variable and then use it in rest of your script.
Quality Assurance Lead, India
"A Cat looked at the mirror and what she saw was a Lion. Secret of success depends on how you see yourself."