Tabular Form Data Driven Script for Monkey Talk, MonkeyTalk Data Driven Script



Tabular Form Data Driven Script for Monkey Talk, MonkeyTalk Data Driven Script

Data Driven Script:

We can use or create the Data Driven Script in Monkey Talk with the help of Run With Action and 3 files which are mandatory for the script of Data Driven

  1. Main File -: Script file with .mt extension is available.

So it will be datadriven.mt

Var * defining user pass

Input user-name Tap

Input user-name EnterText ${user1}

Input password EnterText ${pass1}

Button LOGIN Verify LOGIN %thinktime = 2000

Button LOGIN tap

Label * Verify “Welcome, ${user1}” %thinktime = 4000

Button LOGOUT VerifyNot LOGIN

Button LOGOUT tap %thinktime = 4000

Following is the tabular form of datadriven.mt script:

Data Driven Script
Data Driven Script

  1. Driver Script: Its extension is .mt. To run the main file this script is used for.

Script datdriven.mt Run with credentials.csv

we can see tabular form of the tabular form of Driver Script →

Data Driven Script for Monkey Talk
Data Driven Script for Monkey Talk


  1. CSV File:- .csv is the extension of this type of files.

We can generate the csv file in our MonkeyTalk project by the following mentioned step:

Right Click on the project folder

new → other → Click on General → Choose File → Provide a name with the extension of .csv file

Now, in this available file variables values which we have defined in main script of file. Mentioned variables in first row of this file is separated by the space which we have define in the main file

user pass

Johen, psswrds

Synsel, password

mine, test1

we can see the form of tabular of tabular form .csv file:


No comments:

Post a Comment

Popular Posts