sdruker
11 years agoContributor
Passing keywordtest name as input parameter to the script
Hi,
I'm trying to write a generic script which gets a keywordtest name and call this:
KeywordTests.Test_Name.Variables.Variable_Name
I read the article:
working with keyword test variables in scripts section in the article below:
http://support.smartbear.com/viewarticle/56810/
I want to get the "Test_Name" as input to the script and run the code but it doesnt work.
It works only if I write the test name and not passing it by parameter
for example:
Function OutputVars(keywordtest_name)
set test=keywordtests.keywordtest_name.Variables
count=test.VariablesCount-1
End Function
Is it possible?
Thanks,
sivan
I'm trying to write a generic script which gets a keywordtest name and call this:
KeywordTests.Test_Name.Variables.Variable_Name
I read the article:
working with keyword test variables in scripts section in the article below:
http://support.smartbear.com/viewarticle/56810/
I want to get the "Test_Name" as input to the script and run the code but it doesnt work.
It works only if I write the test name and not passing it by parameter
for example:
Function OutputVars(keywordtest_name)
set test=keywordtests.keywordtest_name.Variables
count=test.VariablesCount-1
End Function
Is it possible?
Thanks,
sivan