cancel
Showing results for 
Search instead for 
Did you mean: 

How to execute dependent script library when executing main project using TestRunner in command line

Highlighted
Frequent Visitor

How to execute dependent script library when executing main project using TestRunner in command line

Below is my projct structure

| Project 1 (This is my main project which has application specific test cases)

   |Test Suite 1

      |Test Case 1

      |Test Case 2

   |Test Suite 2

      |Test Case 1

| Project 2(Script Library)

   |Test Suite 1

     |Test Case 1

         |Groovy Step(Shared Groovy Methods)

 

I want to run the Project 1 using TestRunner Command line utility. But Project 1 is dependent on Project 2 as it has shared resusable methods from Script library

I have went through many posts in community but could not find resolution for above issue. Can some help me know how to achieve the same.

 

 

 

 

 

1 REPLY 1
Community Hero

Re: How to execute dependent script library when executing main project using TestRunner in command

Thumb rule, every test should be independent. But it is talking about dependency on two different project, not good / viable for test automation.

So you can convert them into library with a jar file and copy under SOAPUI_HOME/bin/ext directory.
To do so, please refer our expert's blog by @rupert_anderson
http://rupertanderson.com/blog/1-how-to-develop-add-and-use-a-custom-groovy-library-in-soapui/


Regards,
Rao.