Forum Discussion

matteusson's avatar
matteusson
New Contributor
2 years ago
Solved

No Project File Specified error when running a composite project in Docker container

Hello.

I am trying to run a composite project in the ReadyAPI Docker container found here:

https://hub.docker.com/r/smartbear/ready-api-soapui-testrunner

I am using the newer SmartBear ID-based licenses and therefore using the relevant syntax as can be seen in the docs:
https://support.smartbear.com/readyapi/docs/integrations/docker/soapui.html

Example command:

docker run -v="C:\Projects\GitLab\Integrations\my-api\readyapi":/project -v="C:\Projects\GitLab\Integrations\my-api\readyapi\reports":/reports -e SLM_LICENSE_SERVER="https://api.slm.manage.smartbear.com:443" -e API_KEY="#####" -e COMMAND_LINE=" -Edevelopment -c/My Test Name" -it smartbear/ready-api-soapui-testrunner:latest


When I run this command I get the error - 'No project file is specified.' However with this being a composite project, there is no xml file to reference in the Command Line Arguments. I have tried just specifying the readyapi folder again, but this doesn't work and i get the same error.

What am I missing from the arguments that would allow me to run a composite project via Docker?

Thanks

  • I got the syntax wrong and the quotes were throwing it off.

    Working version for anyone who encounters the same issue:


    docker run -v="projectPath\readyapi":/project -v="pathToReportsFolder":/reports -e SLM_LICENSE_SERVER="https://api.slm.manage.smartbear.com:443" -e API_KEY="myApiKey" -e COMMAND_LINE="'-cmyTestName' -r -a '-fpathToReportsFolder' -EenvironmentName -x='projectPassword' '/%project%/'" -it smartbear/ready-api-soapui-testrunner:latest

1 Reply

  • matteusson's avatar
    matteusson
    New Contributor

    I got the syntax wrong and the quotes were throwing it off.

    Working version for anyone who encounters the same issue:


    docker run -v="projectPath\readyapi":/project -v="pathToReportsFolder":/reports -e SLM_LICENSE_SERVER="https://api.slm.manage.smartbear.com:443" -e API_KEY="myApiKey" -e COMMAND_LINE="'-cmyTestName' -r -a '-fpathToReportsFolder' -EenvironmentName -x='projectPassword' '/%project%/'" -it smartbear/ready-api-soapui-testrunner:latest