How do you pass parameters in a silk test ?

For example, How do you pass parameters from test plan to test case?

Questions by aparnay   answers by aparnay

Showing Answers 1 - 9 of 9 Answers

Shilpa.Patil

  • Jul 18th, 2007
 

In silk test when you have a testcase in .t file (Script file) and if you want to pass the parameters from plan file You must go to plan file and write the group description of that script, and keep the cursor on that, and then Go to Test plan in Tool bar and click on Detail. Then you get a window there, where  you are asked to fetch your testcase and script name and add the test data i.e Parameters and click OK. They get added in your plan file and then click on Run Option and run the testcase required.

  Was this answer useful?  Yes

MohsinK

  • Jul 22nd, 2007
 

If you would like to manually script then this is how we do it:Assume that 1. there is a testcase called 'test1(STRING sData)' in 'script1.t' script file2. there is a testplan called 'plan1.pln'Now, if you want to pass the parameter to the testcase from the plan file then include these statements in the 'plan1.pln' file:script: script1.t //script: is a keyword used to specify the script file (absolute path also can be specified)$sData = "Data to pass" //Declearing a variable called sDatatestdata: sData //testdata: is a keyword and is used to specify the parameters to the testcase testcase: test1: //testcase: is a keyword which is used to specify the testcase to be called

rani

  • Sep 23rd, 2007
 

through function.
 for example:function function name(x datatype,y datatype)
{
---
}

  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