- 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_key
andtest_plan_key
to be your Jira matched keys for thepostExecutionReportBackToXray
test method. - For the whole test methods inside
CalcTest
andSampleTest
classes, changerequirement_key
attributes for the whole@Requirement
annotation to be your Jira requirement that you need it to be linked to test method. - Run the
run.bat
file by right click and run or navigate to the.bat
file location and double click it. - If you have linux os then navigate to the
run.sh
file, open terminal then typebash run.sh
and hit enter.
Navigate to the
target
folder, expand it, and undersurefire-reports
you'll find thetestng.xml
file.
Append this command
rd /s /Q target
to the run.bat file.
Append this commandrm -rf target
to the run.sh file.