- Clone it to Intellij or your favorite IDE.
- Add your xray API Key credentials under
src/test/resources/TestDataFiles/xrayLogin.json - At this class
src/test/java/com/tests/PublishXrayResults, change x-rayproject_keyandtest_plan_keyto be your Jira matched keys for thepostExecutionReportBackToXraytest method. - For the whole test methods inside
CalcTestandSampleTestclasses, changerequirement_keyattributes for the whole@Requirementannotation to be your Jira requirement that you need it to be linked to test method. - Run the
run.batfile by right click and run or navigate to the.batfile location and double click it. - If you have linux os then navigate to the
run.shfile, open terminal then typebash run.shand hit enter.
Navigate to the
targetfolder, expand it, and undersurefire-reportsyou'll find thetestng.xmlfile.
Append this command
rd /s /Q targetto the run.bat file.
Append this commandrm -rf targetto the run.sh file.
