is there any tutorial on how to use the reporting API (without using the Ranorex Studio, e.g. with VS)?
I have searched quite a lot of this forum as well as the user guide, but could not figure out how to achieve it step by step.
I have the following code, for example:
Code: Select all
[ClassInitialize]
public static void StartReporting(TestContext context)
{
TestReport.Setup(ReportLevel.Debug, @"C:\temp\report.html", true);
TestReport.EnableTracingScreenshots = true;
Ranorex.Validate.EnableReport = true;
TestReport.ReportWriteInterval = 0;
}
[TestMethod]
public void ReportingTest1()
{
Assert.IsFalse(false);
}
[TestMethod]
public void ReportingTest2()
{
Assert.IsFalse(true);
Assert.IsTrue(true);
}
[TestCleanup]
public void TestCleanUp()
{
TestReport.EndTestCase();
TestReport.SaveReport();
}
The report generated has no such information and it's empty. What's wrong with my coding?
Great thanks in advance!
Kind regards,
boby