Create a gist now

Instantly share code, notes, and snippets.

Embed
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