--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/2df94e20-b694-454f-9808-3b9c6fbe523e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Are you running with parallel=methods or parallel=tests??
Thanks & Regards,Cassian Raja .T
On Thu, Jun 14, 2018 at 3:09 PM, <garvitag...@gmail.com> wrote:
I am having following hierarchy of @AfterMethods after @Test is run :1. Assert no js exception is on page.2. Print log and attach to allure reports3. Take screenshot and save to desired folder in case test is failed.I have set threadcount=3 for parallel run. In case there is any js exception assertion failure, all parallel running test also fail and remaining test also dont start. Is there any way to continue in case there is JS exception failure so that it can be reported as fail and other tests can continue. Below is code for JS exception assertion :@AfterMethodpublic void assertNoJSException(){JavascriptExecutor jse = (JavascriptExecutor) driver;Object jsExcptions = jse.executeScript("if (window.ipdCapturedErrors.length) return JSON.stringify(window.ipdCapturedErrors)");Assert.assertEquals(jsExceptions, null);}Thanks !!
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.