Page History
...
Common Issues & Potential Solutions:
Software Version
: Confirm whether you are using Xray Cloud or Xray Data Center and adapt to our documentation accordingly.
...
Confirm how you are importing Results
API
API Version Issues:
If you are encountering issues with the v1 API, consider switching to the v2 API.- Cloud v1 → REST API v1
- Cloud v2 → REST API v2
Incorrect API Endpoint:
Make sure you’re using the correct API endpoint for importing test results. For Xray Cloud, the endpoint is different from the one used for Xray Data Center.- Cloud v1 → Importing Tests - REST
- Cloud v2 → Importing Tests - REST v2PUB
- Data Format Issues: Ensure your test results are in the correct format. For example, when importing JUnit results, make sure your tests are generating JUnit reports in the correct format.
UI
...
- Verify JUnit Structure → Taking advantage of JUnit XML reports
UI
- Data Format Issues: Ensure your test results are in the correct format. For example, when importing JUnit results, make sure your tests are generating JUnit reports in the correct format.
- Verify JUnit Structure → Taking advantage of JUnit XML reports
- Data Format Issues: Ensure your test results are in the correct format. For example, when importing JUnit results, make sure your tests are generating JUnit reports in the correct format.
Iporting Tests using Xray Data Center
Confirm how you are importing Results
...
- Confirm which endpoint you are using for importing test results.
- → Data Center |
- → Data Center |
- → Cloud v1 | Importing Tests - REST
- → Cloud v2 | Importing Tests - REST v2PUBLISHED
- Confirm which endpoint you are using for importing test results.
Error Messages: Understand common error messages and their solutions. For example, a 404 error might indicate that you’re trying to import results to the wrong server. A “No Project” error might indicate an issue with the project key in your import file.
...
Ensure that your tests are integrated with JUnit and that the JUnit XML output of your test runner is correctly configured.
Xray API Authentication
Verify that you have the correct authentication credentials for the Xray API2. This typically involves a client ID and client secret.
JUnit Report Generation
Make sure your tests are generating JUnit reports in the correct format. Xray can import these reports to create Test Executions
...