Closed mechandan closed 7 months ago
First two (from bottom) was runned with publishTestResultsMode: 'testResult'
config
second two (from bottom) was runned with publishTestResultsMode: 'testRun'
config
as you can see TC status was changed from failed
to success
First two (from bottom) was runned with
publishTestResultsMode: 'testResult'
config second two (from bottom) was runned withpublishTestResultsMode: 'testRun'
configas you can see TC status was changed from
failed
tosuccess
Ya but its not consistent @alexneo2003 I am using it since 1 week and can say this , could you please try to execute it multiple times n see .
n would you mine to share the API and the way you are updating the status please . Thanks
What api request?) All updates performed from this reporter
I means to say in the reporter itself you might be doing some operation to update the status of the test cases right ? Const patchDocument = [ op:? Path:? values :? ]
I mean that I wrote sample test with TC Id of existing in ADO TC.
I use code like expect(true).toBe(true)
for successful test and expect(true).toBe(false)
for failed test. Run it one by one and check result in ADO.
I don't used any additional request from reporter or another cheating to update status
Ok let me rephrase my question,
i am asking about ADO api that your are using in the reporter to connect and update the status of a test case in test plan of the azure
I am interested in the logic that you have written in your reporter
At this moment you write message at issue in repository which store source code of reporter 🤔 you can explore it as long as you can
Sure, please keep this issue open , I will try few more times , Thanks
any updates?
@alexneo2003 I can make sure that there is something wrong and requesting you to have a look .
i have tried many times and able to reproduce this issue.
Note :- All the test cases Ids are different Either its testRun / testResults , I am able to reproduce in both the scenarios
Seems like there is a bug where if the test case once fail / blocked n in next run its passes , the status of the test case remains fail / block though in actual it is pass
steps to reproduce :
Execute the test which fail in execution. Test status in ADO is fail ( thats fine ) Fix the test case and run it again , this time test is passing Expected Result :- the failed test case status should change from fail to pass
Actual result : Remains Fail