GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing Tools  >  SilkTest
Go To First  |  Previous Question  |  Next Question 
 SilkTest  |  Question 10 of 24    Print  
How do you pass parameters in a silk test ?
For example, How do you pass parameters from test plan to test case?


  
Total Answers and Comments: 3 Last Update: September 23, 2007     Asked by: aparnay 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: MohsinK
 
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

Above answer was rated as good by the following members:
pradeep.pamidipalli
July 18, 2007 01:48:34   #1  
Shilpa.Patil        

RE: How do you pass parameters in a silk test ?
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.
 
Is this answer useful? Yes | No
July 22, 2007 05:16:27   #2  
MohsinK Member Since: July 2007   Contribution: 4    

RE: How do you pass parameters in a silk test ?
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
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
September 23, 2007 09:01:56   #3  
rani        

RE: How do you pass parameters in a silk test ?
through function.
for example:function function name(x datatype y datatype)
{
---
}

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape