Get help with testing, discuss unit testing strategies etc.


Post by nfrias »

Hi all,

First of all congratulations on your product.

Now to my problem: I need the siesta tests not to halt when there are uncaught errors in the javascript code.

For e.g.:

The following error occurs after I click a button: "TypeError: Cannot read property 'down' of undefined ... ".
When I manually click the button, an error pops in the console but the functionality is not interrupted, is there a way to configure siesta to have the same behaviour i.e. carry on the test despite the uncaught error.

Thanks
Last edited by nfrias on Fri Aug 25, 2017 5:38 pm, edited 1 time in total.

Post by mats »

Thanks :)

Open settings menu in the Siesta UI and check the 'Transparent Exceptions' option then it'll break on exceptions.

Post by nfrias »

Thanks for the very quick reply.

Unfortunately the test continues to halt, even with "Transparent Exceptions" checked.

Post by mats »

Ah it should not halt, then that checkbox should be unchecked.

Post by nfrias »

I tried both ways and the test halted in both occasions.

Post by nickolay »

You need to uncheck the "transparent exceptions" settings and close the debugger window (or disable "break on error" feature in it).

Post by nfrias »

Thank you very much for your help.

Post Reply