08-30-2017 04:12 PM
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 08:22 PM
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.
The Collaborator API is a JSON-RPC API that lets you integrate with Collaborator 9.0 and above. For more information about how the API works, check out the API description here:
For an example of an add-in that uses the API, take a look at the Microsoft Word Add-in for Collaborator:
We list all the great plugins our network has already built on this page on the SmartBear website.