w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Preventing iOS Automation Instruments from automatically retrying the test after failure

I reckon what you can do is: try capturing when your test runs into a failure by means of a try/catch block.

When your test fails, it will jump inside the catch block and you can stop it there.

Maybe something like this.

try {
  // Run your tests
} catch (exception){
  UIALogger.logFail("Test failed with error message: " +
exception.message);
}

I think that the logFail() method should be enough to keep your tests from running indefinately.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.