Integrating SOATestcli with Jenkins

Ramiro MartinezRamiro Martinez Posts: 47 admin

INVOKING SOATESTCLI THROUGH JENKINS
Navigate to the Jenkins Dashboard and create a New Item to create your automated test case. Once named and created click the drop-down near the Name of your test Item.

Next Add a new "Execute Windows batch command" Build Step

Input your SOAtestcli commands:

Here is an example CLI command:
Here’s a sample .bat script I ran in Jenkins:
"C:\Program Files\Parasoft\SOAtest\9.9\soatestcli.exe" -config "user://Example Configuration" -data
"C:\Users\kholland\parasoft\Jenkinsworkspace993" -resource
"\TestfromWSDL_Jenkins\testfromwsdl.tst"

Once your script is added you can test this by running the Build Now feature from the Dashboard.

Comments

  • benken_parasoftbenken_parasoft Posts: 721 ✭✭✭
    edited October 2017

    You'll also want to use Parasoft Findings. Read the section "To publish test execution results" for details:
    https://wiki.jenkins.io/display/JENKINS/Parasoft+Findings+Plugin

    If you wish to run tests using a SOAtest server (not soatestcli) then visit https://marketplace.parasoft.com and look for "Remote execution for SOAtest Server script".

  • LeoNLLeoNL Posts: 6

    This only works when Jenkins and SOAtestcli.exe are installed on one and the same machine, correct?
    We have 2 separates, so we needed another solution. Which we have now, but still wondering what and how to improve the CI setup.

  • benken_parasoftbenken_parasoft Posts: 721 ✭✭✭

    This only works when Jenkins and SOAtestcli.exe are installed on one and the same machine, correct?

    No. Jenkins lets you run jobs on machines other than where the Jenkins server instance is installed. You can add other machines as "nodes" where jobs can be executed. Jenkins has a "master" node, which is itself, but you don't have to run all your jobs on the "master" node. See Distributed builds.

  • LeoNLLeoNL Posts: 6

    Ah cool, that might be a new possibility for us. I'll look into it, if it's faster/easer we will surely try it. Thanks

Sign In or Register to comment.