Forum Discussion

Ludo15101966's avatar
Ludo15101966
Contributor
8 years ago

Ready api reporting with jenkins/maven

Hello,

 

I have a working configuration Ready api/maven/jenkins running a simple REST web service test

I don't have full product Ready api installed on the server, just maven plugin

For the moment the job is OK but I have problem to generate report results in Jenkins

 

I'm using the following basic pom config

 

<configuration>
<projectFile>mytest.xml</projectFile>
<outputFolder>${basedir}/reports</outputFolder>
<reportFormat>PDF</reportFormat>
<reportName>TestCase Report</reportName>
<testSuite>testsuite</testSuite>
<testCase>testCase</testCase>
<exportAll>true</exportAll>
<readyApiProperties>
<property>
<name>soapui.home</name>
<value>/var/lib/jenkins/jobs/myproject/workspace</value>
</property>
</readyApiProperties>
</configuration>

 

in the report directory, I have txt,html and xml files, but no pdf, jenkins shows no result

 

What should I do to get nice report result in jenkins ?

 

Thank you

 

regards

 

 

 

8 Replies

  • Hello,

     

    What Maven plugin are you using on the server?

     

    EDIT:

    I mean, is it the Ready! API plugin or the SoapUI plugin, or the old SoapUI Pro plugin?

     

    Kind regards,

    Manne, Developer

    • MFagerlind's avatar
      MFagerlind
      Staff

      Assuming this is the Ready! API plugin, this could be because you don't have the fonts required to generate the report.

       

      Do you see any errors in the logs?

       

      /Manne

      • Ludo15101966's avatar
        Ludo15101966
        Contributor

        Hello,

         

        thanks for your reply

         

        Yes we are using latest  ready api plugin

         

        ready api full product is not installed on the server, it is only a jenkins linux server

         

        there's no error in the log (I removed info log in the middle)

         

        [INFO] Hibernate Validator 4.1.0.Final
        [INFO] Adding module 'com.smartbear.ready.cmd.CommandLineModule
        12:09:05,447 INFO  [DefaultSoapUICore] Creating new settings at [/var/lib/jenkins/soapui-settings.xml]
        12:09:09,221 INFO  [PluginManager] 0 plugins loaded in 16 ms
        12:09:09,221 INFO  [DefaultSoapUICore] All plugins loaded
        12:09:10,905 INFO  [DefaultSoapUICore] Creating new settings at [/var/lib/jenkins/soapui-settings.xml]
        12:09:10,960 INFO  [PluginManager] 0 plugins loaded in 0 ms
        12:09:10,960 INFO  [DefaultSoapUICore] All plugins loaded
        [INFO] Loaded project from [file:/var/lib/jenkins/jobs/WsEosTransversalReady/workspace/wsEOSTransversalReady-soapui-project.xml]
        12:09:11,827 INFO  [SoapUIProTestCaseRunner] Running tests in the project [REST Project swagger]
        12:09:11,916 INFO  [SoapUIProTestCaseRunner] Running TestCase [Transversal]
        12:09:11,933 INFO  [SoapUIProTestCaseRunner] Running TestCase [Transversal]
        12:09:11,956 INFO  [SoapUIProTestCaseRunner] running step [work properties]
        12:09:12,205 INFO  [SoapUIProTestCaseRunner] running step [Debug script]
        
        ...

        12:09:17,863 INFO [SoapUIProTestCaseRunner] running step [deleteFilter - QUALITY] 12:09:17,922 INFO [SoapUIProTestCaseRunner] running step [logout - RSD0] 12:09:17,944 INFO [SoapUIProTestCaseRunner] Assertion [Valid HTTP Status Codes] has status VALID 12:09:17,977 INFO [SoapUIProTestCaseRunner] Finished running TestCase [Transversal], time taken: 2472ms, status: FINISHED 12:09:17,982 INFO [SoapUIProTestCaseRunner] TestCase [Transversal] finished with status [FINISHED] in 2472ms [JENKINS] Recording test results [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 24.494 s [INFO] Finished at: 2016-06-15T12:09:18+02:00 [INFO] Final Memory: 62M/859M [INFO] ------------------------------------------------------------------------ Waiting for Jenkins to finish collecting data [JENKINS] Archiving /var/lib/jenkins/jobs/WsEosTransversalReady/workspace/pom.xml to com.rsd/wsEosTransversalReady/1.0.0-SNAPSHOT/wsEosTransversalReady-1.0.0-SNAPSHOT.pom channel stopped Finished: SUCCESS

         

        do you have a complete pom example ?