or
Hello,
Can I make my tests run second time if it was failed for the first? For example, I have some functionality (e.g. Reports generated by API) and sometimes it does not work well (We have developers license and only limit # of calls can be made in some period of time), because of that my tests failed. I need to rerun them once again to make it passed. The idea is next: if test failed, it should be rerun from the beginning and if it would failed second time it should be indicated that test actually failed. Can I do this in some way?
[Test]
public
void
Can_show_shell_window()
{
var appPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), ApplicationProcess);
var processStartInfo =
new
ProcessStartInfo
{
FileName = appPath,
UseShellExecute =
false
,
CreateNoWindow =
true
,
RedirectStandardOutput =
true
,
RedirectStandardError =
true
,
};
var config =
new
Settings();
var manager =
new
Manager(config);
var app = manager.LaunchNewApplication(processStartInfo);
var mainWindow = app.MainWindow;
var barManager = mainWindow.Find.ByAutomationId(
"BarManager"
);
Assert.IsNotNull(barManager);
}