/soavirt/api/v5/testExecutions - Example Request Payload

jefftuckerbofajefftuckerbofa Posts: 23

Can you share an example rest payload for /soavirt/api/v5/testExecutions

Comments

  • benken_parasoftbenken_parasoft Posts: 744 ✭✭✭
    edited August 20

    The API docs provide examples. For example:

    • Visit http://{soatest_host}:9080/soavirt/api/v5
    • Under "testExecutions", click the link for "/v5/testExecutions"
    • Click the link "Model Schema" to see an example payload based on the schema.

    Here's a simple example:

    {
      "general":{
        "config":"soatest.builtin://Demo Configuration"
      },
      "scopeOptions": {
        "workspace": {
          "resources": [
            "TestAssets/myTestSuite.tst"
          ]
        }
      }
    }
    

    The various properties available in the JSON request object mirror the command line options for soatestcli. For example, the above would be similar to running
    soatestcli -config "soatest.builtin://Demo Configuration" -resource "TestAssets/myTestSuite.tst"

  • jefftuckerbofajefftuckerbofa Posts: 23

    Thank you!

Sign In or Register to comment.