Skip to content

Instantly share code, notes, and snippets.

@anandbagmar anandbagmar/
Last active Aug 1, 2018

What would you like to do?
Soft Assertion usage example
import org.testng.asserts.SoftAssert;
public class MyTest {
private SoftAssert soft;
public void sampleMethod() {
soft = BaseTest.getSoftAssert();
soft.assertTrue(false, "This is a Soft Assertion usage example");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.