I have recorded a test and have created 3 actions out of it
1>login
2>fax the order
3>logout
my question is i have used "if else" loops in login action to check the wrong name/password option, check point, report events etc
take a look and let me know what shud be the other condition.
login
--------
SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\","open"
Dialog("Login").WinEdit("Agent Name:").Set DataTable("AgentName", dtGlobalSheet)
Dialog("Login").WinEdit("Password:").Set DataTable("password", dtGlobalSheet)
Dialog("Login").WinButton("OK").Click
if Dialog("Login").Dialog("Flight Reservations").Exist then
Dialog("Login").Dialog("Flight Reservations").Static("Please enter agent name").Output CheckPoint("error message")
Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click
Dialog("Login").WinButton("Cancel").Click
Reporter.ReportEvent micFail,"Login Failed","Incorrect Agent Name or Password"
else
-------------------------------------< what shud be the other condition here, that is when name/password is rite, should i call the fax the order here, is it possible to call the action of the same test in other action of the same test, if so plz let me know how to do>
end if
with out this condition the else loop will b incomplete, and it also wont continue executing other actions after this
1>login
2>fax order
3>logout
plz help, or if u have any other way plz let me know,thank you