Forum Discussion

koen_able's avatar
koen_able
Occasional Contributor
5 years ago
Solved

Jenkins - Failed to load the project file: Could not start SoapUI Pro functional testing

I build my Jenkins multibranch pipeline with a Jenkinsfile in which I also call the SOAPUI Pro plugin. Unfortunately I receive the following error when I build my Jenkins test:

Failed to load the project file [/home/able/jenkins/workspace/BLABLA_Test/test-automation]
hudson.AbortException: Could not start SoapUI Pro functional testing.

 The Jenkinsfile looks like this:

steps {
script {
SoapUIPro( environment: 'env_0715', pathToProjectFile: '/home/able/jenkins/workspace/BLABLA_Test/test-automation', pathToTestrunner: '/home/able/readyapi/installation/bin/testrunner.sh', projectPassword: '', testCase: '', testSuite: 'testsuite-1')
}
}
What am I doing wrong? Does somebody have a suggestion? I can provide more information if needed.

14 Replies

    • koen_able's avatar
      koen_able
      Occasional Contributor

      When I do a simple launch testrunner (via readyapi, all test cases/ all test suites), it says:

      Running ReadyAPI TestRunner for [europort_test_automation]
      directory: C:\Program Files\SmartBear\ReadyAPI-2.7.0\bin
      command: cmd.exe /C testrunner.bat -r -a -j -f${WORKSPACE} "-RJUnit-Style HTML Report" -FXML "-EDefault environment" C:\software-vm3\europort_test_automation
      '"C:\Program Files\SmartBear\ReadyAPI-2.7.0\bin\..\jre\bin\java"' is not recognized as an internal or external command,
      operable program or batch file.
      '"C:\Program Files\SmartBear\ReadyAPI-2.7.0\bin\..\jre\bin\java"' is not recognized as an internal or external command,
      operable program or batch file.
      '"C:\Program Files\SmartBear\ReadyAPI-2.7.0\bin\..\jre\bin\java"' is not recognized as an internal or external command,
      operable program or batch file.

      • Nastya_Khovrina's avatar
        Nastya_Khovrina
        SmartBear Alumni (Retired)

        Hi, 

         

        It seems that your command-line is not correct. Please see the example from this article:

        testrunner.bat -FPDF "-RJUnit-Style HTML Report" "-cmy TestCase" "c:\my projects\my-project.xml"

        This command runs the my TestCase test case in your project and creates HTML files in a JUnit-style format: