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

%3CLINGO-SUB%20id%3D%22lingo-sub-3491556%22%20slang%3D%22en-US%22%3EIn%20Azure%20Pipeline%20%2C%20How%20to%20reuse%20the%20test%20pass%20percentage%20value%20from%20one%20job%20to%20another%20job%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3491556%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%20%2C%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B%20I'm%20working%20as%20selenium%20automation%20tester%20and%20using%20azure%20pipeline%20to%20run%20my%20test%20automation%20scripts%20(java)%2C%20I'm%20trying%20to%20implement%20fail_fast%20feature%20in%20azure%20pipeline%20but%20am%20stuck%20with%20the%20implementation%20%2C%20kindly%20provide%20advice%20on%20the%20below%20scenario%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20two%20jobs%20say%20Job%20A%20and%20Job%20B%20%2C%20where%20Job%20A%20executes%20the%20smoke%20test%20and%20then%20job%20b%20executes%20regression%20test%20.%20I'm%20trying%20to%20implement%20the%20fail_fast%20approach%20here%20that%20is%20to%20execute%20job%20B%20only%20when%20job%20A%20test%20pass%20percentage%20is%20above%2090%20%25%20.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20I%20use%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdevops%2Fpipelines%2Ftasks%2Ftest%2Fpublish-test-results%3Fview%3Dazure-devops%26amp%3Btabs%3Dtrx%252Cyaml%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EPublishTestResult%3C%2FA%3E%20task%20to%20produce%20the%20result%20am%20unable%20to%20grab%20the%20test%20pass%20percentage%20from%20Job%20A%20%2C%20Kindly%20advice%20how%20can%20i%20use%20the%20pass%20percentage%20of%20job%20A%20in%20Job%20B%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22dineshkumaar_0-1654849156333.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22dineshkumaar_0-1654849156333.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F379212iD1CDDE0D1B3EF47F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22dineshkumaar_0-1654849156333.png%22%20alt%3D%22dineshkumaar_0-1654849156333.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

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 PublishTestResult 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 

dineshkumaar_0-1654849156333.png

 




0 Replies