Ask a Question

Not able to add teststep

dsaju
Occasional Contributor

Not able to add teststep

Hi , 

 

I am not able to add multiple teststeps using the REST endpoint

/testresult

 
I am sending the below sample body but I only see the index 0 on the webpage 
 
[
    {
      "status""Pass",
      "testCaseKey""TTT-T84",
      "comment""The test has failed on some automation tool procedure.",
      "executionTime"180000,
      "executedBy""tomation01",
      "assignedTo""tomation01",
      "actualStartDate""2016-02-14T19:22:00-0300",
      "actualEndDate""2016-02-15T19:22:00-0300",
      "scriptResults": [
        {
          "index"0,
          "status""Pass",
          "comment""This step has pass."
        },
        {
          "index"1,
          "status""Pass",
          "comment""This step has failed."
        },
        {
          "index"2,
          "status""Pass",
          "comment""This step has failed."
        }
      ]
    }
]
 
11 REPLIES 11
dsaju
Occasional Contributor

Just an update from the support ticket . The testcase needs to have the same amount of steps as test run . So , in my case the testcase had only one step and hence it was only updating one step. For test run to have multiple steps, first the testcase needs to have the same number of step

MisterB
Community Hero

Thanks for posting.  It all makes sense now 🙂



Need more help? Feel free to connect with me on LinkedIn: https://www.linkedin.com/in/andrew-barbet-548a234/
cancel
Showing results for 
Search instead for 
Did you mean: