I am using winrunner 7.6 to automates some tests in a web application. My problem is the following :
The address of some pages contains a jsessionid and the name of the window has also a name containing the jsessionid. (non generic name).
So the fact is that if I want to get the session id I have to get the text and to get the text I have first to indicate the window (in wich to do the get) doing a set_window.
Is there a solution to this problem ?
Use a regular expression in your GUI Map description to take the place of the piece which is variable in the window Name, in this case the jsessionid component.
Replace ineffective offshore contracts, LoadRunnerByTheHour. Starting @ $19.95/hr USD.
Put us to the test, skilled expertise is less expensive than you might imagine.
Twitter: @LoadRunnerBTH @PerfBytes
as james told use regular expression for the GUI MAP and as i interpret is that you have multiple windows open at a time then you need to use GUI_set_window and _set_window then it will work...also refer TSL online help
"Je pense, donc je suis"
My Blog on Automation Testing