Saturday, August 1, 2015

EASY TO SCROLL LISTVIEW (TABLE) TILL LAST ROW USING MONKEYTALK

Suppose there is a only ListView(Table) in the screen and you want to scroll till its last item using MonkeyTalk.

//Define a variable
Vars * Define row

//Store size of list in variable row using Get.
Table * Get row size

//Now stored variable can be used for scrolling
Table * ScrollToRow ${row}


Happy Automation !! 

EASY TO USE MONKEYTALK TEST SCRIPTS IN MULTIPLE SUB-FOLDERS

Suppose you have a project that have multiple Features. And you want to maintain test scripts for different features in different folders. This is a good practice but only problem is how to reuse script available in another folder.

You can achieve this by using TestLibrary. 

For example, you want to use Logout folder scripts in Login folder then you just need to select all required script from Logout folder and right click then select New -> TestLibrary. 
Then select the source folder [Login] where you want to create library by giving some logical name like TestLibrary_Logout.mtl

Now you can call logout.mt script available in Logout folder in login.mt (i.e. available in Login folder) as

Script louout.mt Run


Refer This for more details.

Happy Automation !!