Forum Discussion

yves42's avatar
yves42
Occasional Contributor
15 years ago

configure blocking assertion

Hello everybody,

I would know if it is possible to configure an assertion to specify if it must stop the testcase or not. Actually, I would have blocking assertion and not blocking assertion.

I only know the "abort on error" and "fail testcase if it has failed teststep" options which work for the whole testcase.

If you have any idea.

Thank you.
Yves.

3 Replies

  • Beno_Iskratel's avatar
    Beno_Iskratel
    Frequent Contributor
    hi,

    can you use "script assertion"?

    all you have to do is:
    if(...)
    {
    testRunner.cancel("your comment")
    }

    if you would like to go to some other test step you can use:

    testRunner.gotoStepByName("name of test step")

    regards,
    beno
  • pkatiyar's avatar
    pkatiyar
    New Contributor
    Beno_Iskratel, script assertion does not have testRunner variable....

    any idea how we should get this object/variable in Script Assertion ?