given() .auth().preemptive().basic(username, password) .accept(ContentType.JSON) .get(ISSUE_BASE_URL + jiraKey); Get defect for test Check defect state Decision Update ticket (optional) 15
state Jira Status Open/ For implementation Fixed in HEAD Fixed in RC/ Resolved/Closed Origin Branch HEAD RC HEAD RC HEAD RC Test Branch HEAD RC HEAD RC HEAD RC HEAD RC HEAD RC HEAD RC Execute ✗ ✓ ✗ ✗ ✓ ✓ ✗ ✗ ✓ ✓ ✓ ✓ Get defect for test Check defect state Decision Update ticket (optional) 18
actions once a test execution is finished. A few options are available: u afterInvocation() from IInvokedMethodListener interface u onTestFailure()/onTestSuccess() from TestListenerAdapter Get defect for test Check defect state Decision Update ticket (optional) 20
comment with execution status u POST /rest/api/2/issue/{issueIdOrKey}/comment u Update the issue status u POST /rest/api/2/issue/{issueIdOrKey}/transitions Get defect for test Check defect state Decision Update ticket (optional) 21
• Start deploying to production ten times a day • Become famous like Elon Musk Conclusion 59 You will: • Reduce test execution time • Make your Jenkins builds great again • Get back valuable time while pretending you’re monitoring tests
images are property of their respective owners Slides 5,15, 16 – images by Plamena Petkova Slide 62 – image by https://mary147.deviantart.com/ 60 @anetavp (due to popular demand J)