Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-2070

it is possible to change or submit results for Generic and Cucumber Tests that are in non executable status

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Done
    • R2.3.1
    • R2.3.2
    • None
    • None
    • OK

    Description

      How to reproduce:

      • configured the Test's workflow status "open" in "Disallow executions of Tests with workflow statuses",
      • create a Test Execution and add a generic and a cucumber test
      • submit results for the generic and for the cucumber test, using the REST API using the /rest/raven/1.0/import/execution endpoint
      • test results are changed; it should return an error message such as "The Test YYYY-xxx is in a non-executable status"

       

      curl -H "Content-Type: application/json" -X POST -u admin:admin --data @manual_result.json http://xray-tst-postgres-v7/rest/raven/1.0/import/execution
      The Test WOOD-139 is in a non-executable status
      
      curl -H "Content-Type: application/json" -X POST -u admin:admin --data @cucumber_result.json http://xray-tst-postgres-v7/rest/raven/1.0/import/execution
      
      curl -H "Content-Type: application/json" -X POST -u admin:admin --data @generic_result.json http://xray-tst-postgres-v7/rest/raven/1.0/import/execution
      {"testExecIssue":{"id":"47889","key":"WOOD-93","self":"http://xray-tst-postgres-v7/rest/api/2/issue/47889"}}

       

      Sample scripts attached.

       

      Endpoints that import/change results should validate this, including:

       

      Attachments

        1. cucumber_result.json
          0.3 kB
          Sergio Freire
        2. generic_result.json
          0.3 kB
          Sergio Freire
        3. manual_result.json
          0.3 kB
          Sergio Freire

        Activity

          People

            dpca Diamantino Campos
            smsf Sergio Freire
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m