How to write a code for error handling in WinRunner while testing web applications.Examplein a yahoo mail before entering sign on name and password ,first i want to check for the existence of those boxes using if statement.If it exists then enter the name and pass word else my script should abort.Could any one please explain this

Showing Answers 1 - 1 of 1 Answers

Mani Babu Chapala

  • May 10th, 2006
 

Hello,

        First create gui checkpoints for two text boxes then u can write if and else conditions

Ex:

open ur application then start recording,

Set_window("YahooLogin",4);

x=edit_check_info("Uid","Focused",1);

if(x==E_OK)

edit_set("Uid","mani");

else

win_close("YahooLogin");

if u will not get this pls revert back to me.

Thanking u.

Mani

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions