@Tianyu Sun-MSFT Thank you . But solution 1 ,the issue is the latest report will have just the fail test cases which rerun .
How log4net will help here ? Can you pls elaborate little more
Rerun fail test case - MsTest
Hi Team
I need to rerun the fail test case automatically using mstest in my automation project (selenium /C#)
I have few solutions as below but i am not finding the exact one . If any one has already worked ,pls help me out on this.
sol1 :
using TrxExtractFAiledTests.Exe , i will list out the failed test case by passing the dll through this exe and execute it .
But here the issue is , the final report will contain only these rerun test case results as the latest report . But i need the report should contain all the test case results.
Sol2 :
I found the below link but the code is not available and this looks complex !
https://www.codeproject.com/Articles/883305/MSTest-Rerun-Failed-Tests-Through-MSTest-exe-Wrapp
Sol 3 :
1 answer
Sort by: Most helpful
-
AnnyD 1 Reputation point
2022-04-28T11:12:45.93+00:00