niche-tester / playwright-testrail-reporter

Report playwright test results to TestRail
MIT License
7 stars 9 forks source link

How to get the Test run ID or any other parameters needed? #17

Open sreejits139 opened 6 months ago

sreejits139 commented 6 months ago

I am trying to obtain the test_run_id automatically created on runtime so that I can use the same run across multiple spec files. I tried to check the process.env.TESTRAIL_RUN_ID after reviewing your code but it seems I am unable to fetch it somehow as it is created within the Node Client or something. So, can you please help by letting me know if there is a way I can grab the test run id like an ENV variable or a API call to the actual testrail or something? Thank you very much for the help.

sreejits139 commented 6 months ago

Any way I can get the TESTRAIL_RUN_ID as a return or how can I get this value during a run so that I can reuse it for later tests. I am trying to reuse the test_run_id from the 1st spec run and reuse on my remaining spec runs.