Currently working on integrating my UITest-run results into TestRail, so after every test run it marks my tests as Pass\Fail in testrail.
The idea I have is:
- In CI create a "pre-build" script that will create a test run in testrail.
- During execution of automation, in test tearDown() get the result of a test(if a test failed or not), save it all into json file. - here is the first question, how can I get if a test failed?
- Once all tests are done, run a "post-build" script to get updated json file and send request to test rail(which will mark pass\fail tests)
Anyone who already worked on this, does it sound right for you?
Are there any build-in methods that could help me to achive the goal?