Skip to content

Upload test results to xray rest API #537

@DianeMornas

Description

@DianeMornas

Context:
Create a simple cli to upload the test results to xray plugin

  • should work with parameterized tests and simple tests
  • uploading the junit xml report works only with Generic xray ticket type but does not work with Manual, Automated, Automated Cucumber ticket types. Use dictionary or json format for the test results instead of junit xml

previous implementation 0.30.0
2 steps
1 - run the pykiso tests and generate the junit xml containing the test results
2 - post the test results to the xray REST endpoint /api/v2/import/execution/junit

POC proposal
1 - run the pykiso tests and generate the ALL_STEP_REPORT ordered dictionary, then upload the test results to the xray REST endpoint /api/v2/import/execution

After discussions:

  • Run a pykiso test with the xray decorator and generate the junit xml. Convert the junit to json. Upload the json to xray
  • Move all xray code into xray folder and write the unit tests related to xray. Restore test_execution.py, assert_step_report.py and clip.py

doc: https://docs.getxray.app/display/XRAYCLOUD/Import+Execution+Results+-+REST+v2#ImportExecutionResultsRESTv2-JUnitXMLresultsMultipart

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions