08-30-2017 03:42 AM
I have a requirement to run a test step from another project and I am a newbie to Ready API.
I googled and got to the point of getting the Project Name but stuck after this point.
Couldn't access the TestSuite as it returns null. Below is the code Snippet i used
/ Replace names of a project, test suite, case and step with those you need.
// Connecting to the test step in another project.
def prj = testRunner.testCase.testSuite.project.workspace.getProjectByName("CMSToPMSService")
log.info("Project is: " + prj.name) - Retrieves the Project Name properly
tSuite = prj.getTestSuiteByName("InitiateReverseActivationTestSuite") --- Null for tSuite.
log.info("Test Suite is: " + tSuite.name)
See screenshots attached.
Not sure whats is wrong
Thanks in advance.
08-30-2017 07:52 AM
Have not tried your code yet but for starters
make sure you using the calls properly and make sure project name is correct.
I am sure we have lots of people here who can try your code and point out the issue.