I have four testcases and two of them shall obviously fail:
Code: Select all
[TestMethod]
public void RanorexReporting1()
{
Assert.IsTrue(false);
}
[TestMethod]
public void RanorexReporting2()
{
Assert.IsTrue(true);
}
[TestMethod]
public void RanorexReporting3()
{
Assert.IsTrue(false);
}
[TestMethod]
public void RanorexReporting4()
{
Assert.IsTrue(true);
}
[TestCleanup]
public void Cleanup()
{
TestReport.BeginTestCase(TestContext.FullyQualifiedTestClassName + "." + TestContext.TestName);
TestReport.BeginTestModule(TestContext.TestName);
Ranorex.Report.Screenshot(TestContext.FullyQualifiedTestClassName+"."+TestContext.TestName, null);
TestReport.EndTestModule();
TestReport.EndTestCase();
}
What's the problem?
Great thanks in advance!
Best regards,
Bo