Wednesday, January 17, 2007

WinRunner Functions

Focus on a Window- set_window("window Name",time in sec);
Enter a value in Textbox- edit_set("Obj Name",typed text);
Select a value in list box- list_select_item("list box name",selected text);
Press a button- button_press("obj Name");

GUI Checkpoint-
1) for single property- obj_check_info("Obj Name","Property",expected);
2) for obj/window - obj_check_gui("Obj Name","list1.ckl",gui1,time in sec);
3)for multiple objects - win-check-gui("window name","list1.ckl",gui1,time in sec);

Bitmap check point
1)For Obj/Win _ obj_check_bitmap("Obj Name","Image File.bmp",time to create);
2) For Screen area - win_check-bitmap("Window Name",x1,x2,y1,y2,time to create);

Get Text Checkpoint
1)For Obj/Win- obj_get_text("Obj Name",Text);
2)For Screen area - obj_get_text("Obj Name",x,y,width,height,capured area);


Synchronisation point
1)Wait---- Wait(TIme in Sec);
2)For Obj/Win----- obj_wait_info("Obj Name","property","expected",Time to wait);
3)for obj/win bitmap---------obj_wait_bitmap("Obj Name","image file.bmp",Time to wait);
4)for screen area------------ win_wait_bitmap("Window Name",x1,y1,x2,y2,Time to wait);

Re Testing
1)Dynamice Test Submission-- create_input_dialog("Message");
2)Through Flat Files--- file_open("Path of File",FO_READ/FO_WRITE/FO_APPEND)
file_getline("path of file",variable)
file_close("path of file")
Batch testing
call "test name"()
(or)
call "Path of Test"()

User Defined Function

public/static function fname (in/out/inout)
{



}

No comments: