You need to put the action name not the test name....you might want to do a wrapper action that holds all the actions if you dont have a main block. That way when you call the main block action it will load all of the test.
While using loadandrunaction to load actions dynamically, it loads and runs the script only for the first time.I am trying to call the testscripts which are saved in qc.
The first time call to action executes well but the second time it gives action not found error. Even if you change the order of testscripts first call works well ,but not the second time.
testCasesList = Split(testCasesList1,arraySeparator)
For Each testCase in testCasesList
qcTestPath = ""
qcTestPath = qcTestCaseScriptPath & "\" &TRim(testCase)
LoadAndRunAction qcTestPath , "Action1"
The path of the test is correct and the action names are same in all the testcases "Action1". I am sure that the path is taken correctly becoz when I change the order of testcases the first in the list works properly.
I tried changing the action name for tc1 and executed.That time I got the second testcase run properly and all others throwing error as action not found(even the first one).
Is ther any limitation like u can have only one external script loaded dynamically???or is there any option to unload the actions loaded before exiting the test itself?