Unable to remote execute SOATest

madsmaxmadsmax Posts: 2

For CICD, my requirement is to trigger SOATest from Unix server (GoCD) using shell command to invoke SOATest which is on a windows server in same data center.

I'm using below command to do above operation and getting error, pleas help me with this.

./soatestcli -server https://servername.com:9443 -auth uname:password -data "/app/pipelines/api-parasoft-tests/parasoft-tests/soavirt_workspace" -resource "VirtualAssets/API.tst" -config "user://Api_test" -localsettings "/app/platform/parasoft/soatest/9.9/license"

where -data and -resource is referencing to path in SOATest remote server (windows)

stacktrace:
soatestcli: Version 9.9.5.20160601 -- Copyright (C) 2016 Parasoft Corporation
ERROR: Error: Non-existent configuration soatest.user://Api_test in workspace:
/app/platform/parasoft/soatest/9.9/C:\Users\uname\parasoft\soavirt_workspace
[SOAtest] 05/10 09:02:59 PM Shutting down current deployments.
05/10 09:02:59 PM Shutting down current deployments.
[SOAtest] 05/10 09:02:59 PM Shutdown of deployments finished.
05/10 09:02:59 PM Shutdown of deployments finished.

Comments

  • Ireneusz SzmigielIreneusz Szmigiel Posts: 203 ✭✭
    edited May 13

    @madsmax
    You have to first start remote SOAtest server ( on MS Windows server - so in cmd or any other shell) using following command:

    soatestcli -startServer -data "/app/pipelines/api-parasoft-tests/parasoft-tests/soavirt_workspace" -localsettings "/app/platform/parasoft/soatest/9.9/license"

    It will expose SOAP API here

    http://servername.com:9080/axis2/services/SOAtestService?wsdl.

    Using startTestExecution request you should be able to start test from any machine on remote MS Windows server.
    Other way is to use bash script available from Parasoft's marketplace (see bellow)

    More information you can find here:

    You need a proper license to have such feature enabled.

    BTW.

    • If you are using shell script from marketplace, please change your command:

      soatestcli.sh -server https://servername.com:9443 -auth uname:password -config "soatest.builtin://Demo Configuration" -resource "VirtualAssets/API.tst" -report reports

    • If you want to use your configuration: user://Api_test, please make sure that you have it on remote SOAtest server in particular workspace.

    --
    Ireneusz Szmigiel
    http://www.catb.org/esr/faqs/smart-questions.html

  • Ireneusz SzmigielIreneusz Szmigiel Posts: 203 ✭✭
    edited May 13

    @madsmax
    Just to make this clear, error which you see is a result of running soatestcli on local machine, not remote.
    Error: Non-existent configuration soatest.user://Api_test in workspace:
    /app/platform/parasoft/soatest/9.9/C:\Users\uname\parasoft\soavirt_workspace

    means that on your machine in workspace defined by path, there is no such Test Configuration.
    make sure that you are using correct path when starting SOAtest as server.
    I have assumed that your workspace on MS Windows server is located here:
    "/app/pipelines/api-parasoft-tests/parasoft-tests/soavirt_workspace"
    and you can find there following resource VirtualAssets/API.tst
    If location of workspace is different on MS Windows server, then you have to replace -data argument with correct path.

    The soatestcli.sh script ( not soatestcli - there is a difference) uses REST API exposed by SOAtest server.

    --
    Ireneusz Szmigiel
    http://www.catb.org/esr/faqs/smart-questions.html

  • madsmaxmadsmax Posts: 2
    edited May 14

    Thank you @Ireneusz Szmigiel , it worked :) Appreciate your help!

Sign In or Register to comment.