I am getting failed count zero.
Please see the attached report screenshot.void ITestModule.Run()
{
Script sc = new Script();
try
{
Report.CurrentReportLevel = ReportLevel.Info;
TestReport.EnableTracingScreenshots =false;
sc._startBrowser("chrome.exe", "https://www.google.com/");
WebDocument wd ="/dom[3]...forcefully failing this";
LogUtility._info("dom found successfully");
}
catch(Exception e)
{
LogUtility._failure("Failed", "Test", e, "Unable to find dom");
var tm = TestReport.CurrentTestModuleActivity;
when I use CurrentTestModuleActivity;, it shows status Failed and failed count 0 but everything is failing then why it shows
failed count 0
LogUtility._info("Total Duration : " + tm.TotalDuration.ToString());
LogUtility._info("Total Failed : " +tm.TotalFailedCount.ToString()); //please see this line
LogUtility._info("Final status : "+ tm.Status.ToString()); //please see this line
var tc = TestReport.CurrentTestContainerActivity;
when I use CurrentTestContainerActivity, it shows status Success and failed count 0 but everything is failing then why it shows
Success and failed count 0
LogUtility._info("Total Duration : " + tc.TotalDuration.ToString());
LogUtility._info("Total Failed : " +tc.TotalFailedCount.ToString());
LogUtility._info("Final status : "+ tc.Status.ToString());
}
}