Skip to content

JeffGaly/xray-test-automation-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xray-test-automation-example

Proof of Concept study of Xray (JIRA plugin)

Example code allows to import Cucumber Scenarios from Xray (JIRA) issues via REST interface with basic authentication. Tests are then executed (one scenario exists in project that can be used to quickly copy it to an xray issue), generated .json report is exported back to Xray (JIRA) via REST with basic authentication.

demo

  • clone the project
  • go to directory of the project after clone
  • execute below command (change values for -D parameters, what you see below is dummy data)
mvn clean verify -DjiraRootURL=https://jira.johndoeinc.com -DjiraUsername=johndoe -DjiraPassword=ilovejanedoe -DjiraIssueKeys=ABC-123;ABC-456

Configuration wiki: https://github.com/kristapsmelderis/xray-test-automation-example/wiki/Configuration

Test report should be visible in: target/cucumber-html-reports/feature-overview.html

If all goes well, your "Test Execution" plan in JIRA-Xray should be updated with status. You can pass just the Test Execution issueKey and import should get all the children issues and report back on their status.

requirements

tool stack details

#troubleshooting

  • if you installed cURL, but it is still not found when running the project, might be because of .exe extension (if you are on Linux, replace "curl.exe" with "curl" in Utils class)

About

Studying usage of Xray (JIRA plugin)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 95.0%
  • Gherkin 5.0%