In how many ways we can perform datadriven test in silk test, throgh flatfiles can we perform? Describe the script?

Showing Answers 1 - 9 of 9 Answers

Naresh J

  • Dec 28th, 2006
 

Hi,

According to me, u can parameterize in 2 ways

  1. Using List of Strings concept
  2. 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.

Regards

Naresh J

  Was this answer useful?  Yes

karthik

  • Jun 27th, 2007
 

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
  

  Was this answer useful?  Yes

sidhubj

  • Feb 27th, 2008
 

We can perform the data driven testing throug

1) Flat files
2) Data Base(Ex:- XL spread sheet)
3) Test plan

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions