Code: Select all
public static void Validate_DropTrack()
{
Report.Info("Validating Track # " + TrackNum + " was dropped");
bool result = Validate.NotExists(repo.FormTacViewC2.PictureTrackInfo.AbsolutePath, 10000, Validate.DefaultMessage, false);
if (result == true)
{
Report.Success("Successfully dropped track # " + TrackNum);
}
else
{
Report.Screenshot();
Report.Debug("Track # " + TrackNum + " failed to drop within 10 seconds, proceeding to next track creation.");
}
}
Code: Select all
public static void Validate_DropTrack()
{
Duration OrigDur = repo.FormTacViewC2.PictureTrackInfo.SearchTimeout;
repo.FormTacViewC2.PictureTrackInfo.SearchTimeout = 10000;
Report.Info("Validating Track # " + TrackNum + " was dropped");
bool result = Validate.NotExists(repo.FormTacViewC2.PictureTrackInfo, Validate.DefaultMessage, false);
if (result == true)
{
Report.Success("Successfully dropped track # " + TrackNum);
}
else
{
Report.Debug("Track # " + TrackNum + " failed to drop within 10 seconds, proceeding to next track creation.");
Report.Screenshot();
}
repo.FormTacViewC2.PictureTrackInfo.SearchTimeout = OrigDur;
}