tvklovesu
3 years agoFrequent Contributor
How can I call a keywordTest in a script and pass variable to that test
Hi there,
I am trying to call a keywordTest with in a script. This script is used for a parallel test and it is working if I don't have any test parameters assigned. But when I try to pass parameters to that KeywordTest from script then the test fails to execute this script.
My code
function Main()
{
var Tests = [
'KeywordTests|SearchBasicTest' (this on works)
'KeywordTests|SearchBasicTest("testdata")' (This test fails with an error in the log as "No test was found for KeywordTests|SearchBasicTest("testdata") 13:49:52 Normal 0.18"
I have already created test parameter in the SearchBasicTest testcase.
]
Parallel.RunTests(Tests)
}
note: If I specify like
KeywordTests.SearchBasicTest("testdata") then it says SearchBasicTest is not a function