'Difference between Soft Assert And Verify
Is there any difference between Soft assert and Verify?
I am well aware that Verify is implemented using SoftAssert class. And when any of the methods fails, both the above keywords will continue the execution.
Is there a specific difference while using soft assert and verify in TestNG framework?
Solution 1:[1]
If we are talking about functionality then there is no such difference. But I would suggest you using "soft assert" instead of "verify" because it gives you better visibility in terms of coding and reporting.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Purendra Agrawal |