Ron Warshawski of DBA InfoPower recommends we add a time-out parameter to TestScenarios?. We were watching a test operate where the <run> element of a TestScenario runs a TestCase? that makes a call to a Stored Procedure in a database. The Stored Procedure did a full table scan and did not return for 5+ minutes. The test ended before the TestCase? was done. Adding a timeout value to the <run> element in a TestScenario would make debugging issues like this easier.
An example:
<usecases>
<usecase name="Examples_usecase">
<sequence name="Examples_sequence" proportion="100">
<test>
<run name="MyTest?" testclass="PTT_Examples_UnitTest.testgen4web"
method="testGen4Web" langtype="testgen4web" timeout="1500"/>
</test>
</sequence>
</usecase>
</usecases>
If the <run> element call takes more than 1500 milliseconds then a TimeoutException? throws.
-Frank