RE: In how many ways we can perform datadriven test in...
Hi
According to me u can parameterize in 2 ways
Using List of Strings concept
Using Flat files.
To parameterize using flat files u got to 1st read the file using methods that handle files. store it in a list of string variable then pass the parameterize value to the res object in the application.
RE: In how many ways we can perform datadriven test in...
In silk test we can parametrize through 1. Flat file by using file handling concept HFILE f1 f1 FileOpen(filepath FM_READ) string str
filereadline(f1 str) this "str" parameter can be passed to the scripting for parametrization fileclose(f1) 2. Using external database and establishing connection through scripting HANDLE h1 HANDLE h2 h1 db_connect("DSN x.mdb") h2 db_executesql(h1 "Select * from table1") string i while(db_fetchnext(h2 i) this "i" parameter can be used for data driven db_finishsql(h2) db_disconnect(h1) 3. List of function List of string a {....} "xyx" " 123" "@#$" for each x in a this "x" parameter can be used for data driven