Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Integrating SOATestcli with Jenkins

Ramiro Martinez
Ramiro Martinez Posts: 53 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_parasoft
    benken_parasoft Posts: 1,228 ✭✭✭
    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".

  • LeoNL
    LeoNL Posts: 7

    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_parasoft
    benken_parasoft Posts: 1,228 ✭✭✭

    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.

  • LeoNL
    LeoNL Posts: 7

    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