What is the use of function softAssert.assertAll() in framework? | Selenium Forum
P
Pravin V. Kumbhare Posted on 14/08/2020

In normal case, when we have to check some output on console, we write softAssert.assertAll(). This prints all the softAssert assertions on the console.

But in framework, we're interested more in what is logged in ExtentReport, not the console. Still the function softAssert.assertAll() is used?

I want to know what exactly this function does.

Does it only print the assertion messages on console, or does it also have some other role?

 


A
Ashish Thakur Replied on 15/08/2020

 softAssert.assertAll() - fails in testng

We need to fail tests in testng as well

So we use this

 


Related Posts