The Unix shell script below demonstrates a way to terminate the test case execution after a specified period of time. This is to cope with cases of e.g. a test script being stuck inside an endless loop.
Note that killing
squishrunner like that will likely leave only partial results behind. I.e. the generated XML file might be missing closing tags or be completely empty.
A safer built-in
--timeout switch for
squishrunner is planned for the Squish 6.1 release. Please contact technical support if you want to want to test this new feature with a 6.1 pre-release package.