Forum Discussion

N78A's avatar
N78A
Contributor
7 years ago

How to run soap ui test suites through jenkins (without maven)

Hi,

 

With help of smartbear community , I have achieved scheduling the soapui test suites through windows task scheduler, now I want to run it using jenkins .

Is it possible to do so without Maven (I know nothing about Maven and very new to Jenkins. )

I tried to look for soap ui - jenkins integration but got very confusing articles. I also tried to implement what ever I found on community.

1. I am using Soap ui 5.3.0 open source

2.Hudson Jenkins (just a URL i have as developers in my team are using).

3 . I created a freestyle project in jenkins

4. Configured it with below windows batch command:

 

cd "C:\Program Files\SmartBear\SoapUI-5.3.0\bin"
testrunner.bat -a -f "C:\Program Files\SmartBear\Reports" "C:\Users\Desktop\projects\ABC-soapui.xml"

 

But when i build it , it gives error :

is there any plugin required ? or do i need to install anything.

 

Building in workspace E:\Hudson\jenkins_CL2020\workspace\Soapui Tests
FATAL: org/jenkinsci/plugins/workflow/job/WorkflowRun
java.lang.NoClassDefFoundError: org/jenkinsci/plugins/workflow/job/WorkflowRun

 

 

  • avidCoder's avatar
    avidCoder
    Super Contributor

    Inside windows shell command. Use this code :-

     

    C:\Program Files\SmartBear\ReadyAPI-1.9.0-m-SNAPSHOT\bin\.
    testrunner.bat -sSuiteName -cTestCaseName "-RTestCase Report" "-EDefault environment" Path of the XML project.
    • N78A's avatar
      N78A
      Contributor

      Hi,

       

      Thanks for your response.

       

      Please tell me about -> "-EDefault environment.

      I coudnt understand it.

       

      Otheriwse I have tried to give beow command in "windows batch command" under BUILD in jenkins and it failed.

       

      cd "C:\Program Files\SmartBear\SoapUI-5.3.0\bin"
      testrunner.bat -a -f "C:\Program Files\SmartBear\Reports\CPC" "C:\Users\Desktop\soapuiProjects\abc-soapui-project.xml"

       

      • avidCoder's avatar
        avidCoder
        Super Contributor

        -EDefault Environment means If you have different environment to test your project. You can remove this. This will not impact your set up. And try the below command:-

         

        C:\Program Files\SmartBear\ReadyAPI-1.9.0-m-SNAPSHOT\bin\.
        testrunner.bat -sSuiteName -cTestCaseName "-RTestCase Report" Path of the XML project.