Ticket #176 (new enhancement)
Global setup and tear down
| Reported by: | fcohen | Owned by: | llara@… |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Version: | 5.3 | Keywords: | |
| Cc: |
Description (last modified by fcohen) (diff)
There is no global SetUp? or TearDown? mechanism in TestMaker. A global SetUp? method would run a method once at the start of a TestScenario.
The following is a proposed syntax to define a global SetUp? method in a TestScenario.
<loadtest>
<testusecase>
<dimensions>
<!-- Concurrent request levels for each TestNode --> <crlevels>
<crlevel value="10"/> <crlevel value="20"/>
</crlevels>
<setUp module="frankmodule" name="test1" testclass="franktest" method="setUp" langtype="jython"/>
<usecases>
<usecase name="Examples_usecase">
<sequence name="Examples_sequence" proportion="100">
<test>
<run module="frankmodule" name="test1" testclass="franktest"
method="runTest" langtype="jython"/>
</test>
</sequence>
</usecase>
</usecases>
< tearDown module="frankmodule" name="test1" testclass="franktest" method="tearDown" langtype="jython"/>
</dimensions>
</testusecase>
</loadtest>
