Reply
Highlighted
New Contributor
Posts: 4
Registered: ‎10-03-2016

Refer to test results from within a test

Hi,

 

I am looking for a way for my tests to write out test results automatically to test rail.

 

I have successfully set up the test rail integration, the problem is that the script to write to testrail will only run if I specify the status id.

 

I want the the script to be able to pick up the status from test complete, else this is pretty pointless.

 

My thoughts were to have a test 'test a', which is the test I want to run, and a 'test b' will read the logs from 'test a' and write the results to testrail.

 

Has anybody got any advice on this or maybe a better way of doing it? it does seem a bit long winded to do this for all my test cases.

 

Thanks in advance,

 

Meg

Contributor
Posts: 51
Registered: ‎02-13-2017

Re: Refer to test results from within a test

for example:

do the steps

after  validating it

if pass then

flag =0 //set flag

else

flag =1

 

call  function writetoTestrail(testcaseID,description,flag)

 

in this function,get the all info.write into testrail

 

Try QAComplete Now