Forum Discussion
SmartBear_Suppo
Alumni
15 years agoHello,
calling loadTestrunner.fail in the startup script doesn't work since the test hasn't actually started yet, but it should and I have reported it as a bug, so hopefully this will be fixed soon. In the meantime, you can use this workaround:
Regards,
Dain
eviware.com
calling loadTestrunner.fail in the startup script doesn't work since the test hasn't actually started yet, but it should and I have reported it as a bug, so hopefully this will be fixed soon. In the meantime, you can use this workaround:
//LoadTest Setup script:
context['shouldFail'] = true
//TestCase Setup script:
if( context.LoadTestContext['shouldFail'] ) {
context.LoadTestRunner.fail('Reason')
}
Regards,
Dain
eviware.com