Check Out the Latest News About SmartBear Connect
New Contributor
Posts: 4
Registered: ‎08-30-2017

Cross Project - Ready API returns null



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")"Project is: " + - Retrieves the Project Name properly
tSuite = prj.getTestSuiteByName("InitiateReverseActivationTestSuite") --- Null for tSuite."Test Suite is: " + 


See screenshots attached.


Not sure whats is wrong


Thanks in advance.





Super Contributor
Posts: 264
Registered: ‎05-24-2017

Re: Cross Project - Ready API returns null

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.


New Contributor
Posts: 4
Registered: ‎08-30-2017

Re: Cross Project - Ready API returns null

Thanks Sanj. Sorted. Nothing to do with Code but the xml wasn't refreshed with the new Test Suite I created. My bad.

Building with the Collaborator API

Help Documenation
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:

Sample Plugins
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.