Start up scripts in winrunner without Rec or Playback
Any one help me how to write start up scripts, actually what does it contains, pls let me know briefly, to come up with true WinRunner coding, without Rec | playback.
Note : [I][This question was asked by Naveen, I am posting it in proper forum][/I]
Re: Start up scripts in winrunner without Rec or Playback
to start up script u start with script for browseing the application(open the applicaton u need to test) by using some script like open_window, set_window, set_browser
Re: Start up scripts in winrunner without Rec or Playback
Hi,
I used the following script as startup script while learning WinRunner.:D
[QUOTE]set_window ("Shell_TrayWnd", 1);
button_press ("start");
set_window ("Start Menu", 1);
obj_mouse_click ("All Programs", 102, 16, LEFT);
set_window ("BaseBar", 3);
toolbar_select_item ("ToolbarWindow32", "WinRunner;Sample Applications;Flight 1A");
set_window ("Login", 7);
edit_set ("Agent Name:", "abcd");
password_edit_set("Password:", "kzptnyoslzjsaz");
button_press ("OK");
win_wait_info("Flight Reservation","active",1,20);
win_move ("Flight Reservation", 588, 162);[/QUOTE]
This will be very helpful.:cool:
Re: Start up scripts in winrunner without Rec or Playback
up to getting login for sample application, u make that as compile module and use it as startup script.
Re: Start up scripts in winrunner without Rec or Playback
yeah..you are right nandeesh. This compiled module is not executable programme..This is is the combination of user defined functions. Go like that sutnarcha..
prasad.Gandra
Re: Start up scripts in winrunner without Rec or Playback
And also...there is another way ... than comiling module... just use invoke_application in startup script.... sure, you can have with this...
prasad.gandra
Re: Start up scripts in winrunner without Rec or Playback