cancel
Showing results for 
Search instead for 
Did you mean: 

Run TestCase from an other project ...

0 Kudos

Run TestCase from an other project ...

There should be the possibility to run testcases from testsuites of foreign projects. Cool sideeffect will be that project files could be smal and straightforward and could be separarted for a single service (wsdl) of distributed software environment.

 

The maintenance effort could also be reduced to a minimum, when WSDL/API of one service changed it's just necessary to update the main testcase and all linked 'run testcases' were automatically updated. 

 

kind regards,

Gerhard

4 Comments
New Contributor

 This is now possible since SoapUI 5.2.1

Occasional Contributor

Two questions:

  • How can I do this?
  • In what version of Ready! API
New Contributor

Sorry, I just saw that with this TestStep its not possible with an other project, only within the same project

 

But this can be achieved by a simple 1liner groovyscript testStep

 

Create a new Groovy TestStep, with the following content:

 

testRunner.getTestCase().getTestSuite().getProject().getWorkspace().getProjectByName("TargetProject").getTestSuiteByName("TargetTestSuite").getTestCaseByName("TargetTestCase").run(context.getProperties(),false);

 

Senior Member

Hey Xavier, 

yes you'r right. For some 'single shot' testing issues this 1liner will help, but that's not really what i missed in soapUI. I try to build and provide a testing framework of different base services which represents base actions like 'LoadTHIS', 'DeleteTHAT', 'MoveFromHEREtoTHERE', etc. 

 

For integration tests, or more complexe test scenarios which uses a bunch those base actions over many different base services it would be helpful to extend the current 'Run TestCase Step' with the possibility to select first the targetProject, then the targetTestSuite and finally the targetTestCase. The intention is, that anybody can do/create those high level tests without deeper knowledge of Groovy or the ModelItems structure of SoapUI ... 🙂

 

As mentioned above, this would be helpful to reduce the maintenance efford to a minimun because only the base test steps must be maintained over the time. The integration tests are only helpful needful at project time and can be dimissed after finishing the project successfully.

 

Many thanks,

Gerhard

Announcements
Welcome to the SoapUI Feature Requests board!

Here you can review submitted feature requests and vote up the ones you like! If you can't find the feature you want - go ahead and suggest your own idea. Ideas with the highest rating can be implemented in the product.

Check out the Create a Feature Request guide for more information.
New Here?
Join us and watch the welcome video:
Announcements
Labels