Forum Discussion

dineshkumaar's avatar
dineshkumaar
Copper Contributor
Jun 10, 2022

In Azure Pipeline , How to reuse the test pass percentage value from one job to another job

Hi All , 
  I'm working as selenium automation tester and using azure pipeline to run my test automation scripts (java), I'm trying to implement fail_fast feature in azure pipeline but am stuck with the implementation , kindly provide advice on the below scenario 

 

I have two jobs say Job A and Job B , where Job A executes the smoke test and then job b executes regression test . I'm trying to implement the fail_fast approach here that is to execute job B only when job A test pass percentage is above 90 % .

 

So I use https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-test-results?view=azure-devops&tabs=trx%2Cyaml task to produce the result am unable to grab the test pass percentage from Job A , Kindly advice how can i use the pass percentage of job A in Job B 

 




Resources