For example, suppose you have the simple test:

function Test()
{
Tester.Message('Step 1');
Tester.EndTest();
Tester.Message('Step 2');
}

You might assume that the test will terminate with "Step 1" whereas in actual fact it will continue on to Step 2. What actually happens is that it will simply mark the end of the test in the Report when Rapise calculates the number of passed, failed, steps.

If you do want to terminate the test we recommend the following:

function Test()
{
Tester.Message('Step 1');
Tester.EndTest();
return;
Tester.Message('Step 2');
}

The return; command is a standard JavaScript function for ending the function early.