I wrote a function for testing policies which has similar steps and its working fine
Is there anyway i can give heading to my individual test run
when we create a new Test case in test suite.it gets a heading in report
similar stuff i want to do in code module
is it possible???
Create Test Case from code Module
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Create Test Case from code Module
Hi,
When I got the question correctly you want to create your own report structure in code, right?
If so, this can be handled by using the methods of the TestReport class.
Here is a small sample about how you can create a test case with a module in code:
Regards,
Markus
When I got the question correctly you want to create your own report structure in code, right?
If so, this can be handled by using the methods of the TestReport class.
Here is a small sample about how you can create a test case with a module in code:
TestReport.Setup(ReportLevel.Debug, "MyReport.rxlog", true); TestReport.BeginTestSuite("My TestSuit"); TestReport.BeginTestCase("My TestCase"); TestReport.BeginTestModule("My Test Module"); ... // Your actions can come here ... TestReport.EndTestModule(); TestReport.EndTestCase(); TestReport.SaveReport();For more information about the TestReport class please see: TestReport Class.
Regards,
Markus