Forum Discussion

wynand_bwr's avatar
wynand_bwr
Occasional Contributor
12 years ago

Web Application Session Variables

Hi All



Can someone please assist me with the following problem that I have?



I have a keyword test of a web application. But I have to re-map the logout button of the web application with each new login. I believe this is caused by a session variable, as a user will be logged out after a certain amount of time e.g 10min.



The button name is never the same when I re-map it with each new login e.g the current session it will be named link68 and the next session link72. 



How can I overcome this issue? I do not want to re-map the menu button each time I run the keyword test?



I converted my keyword test to script.



The button is named link68



//Clicks the 'linkA68' control.

Aliases.browser.pageMaxbankPortal.panelZen1.tableGroup1.cell.panelMainmenu.tableGroup2.cell.panelMainmenuLogbg.tableGroup29.cell.panelMainmenuMainmenu.tableGroup34.cell1.panelMainmenuMlogout.linkA68.Click();



Thank you

Wynand

4 Replies

  • wynand_bwr's avatar
    wynand_bwr
    Occasional Contributor
    I would also like to know if it is possible to only execute this spesific line of script to test te logout function?
  • It is not the name of the object but the values of the properties by which this object is identified which affect test playback. It seems that the default property set for this object in Name Mapping does not work well, so you should replace it with another property or property set - it may be contentText property, or something else that does not change between test runs.
  • wynand_bwr's avatar
    wynand_bwr
    Occasional Contributor
    How do I go about to making this change? Can you please give me more details?



    I have no clue ?



    Thank you