Assertions

Hard Assertion

assertFalse

assertTrue

assertEquals(actual,”expected”)

 

Soft Assertion

SoftAssert s = new SoftAssert();

s.assertTrue(condition, message);

s.assertAll(); - holds all failure asserts from above statement and prints at the end of test execution – so as to avoid script execution termination

Comments

Popular posts from this blog

QA's approach 2 Java - Understanding Static context

Selenium 4 absolute beginners - How to create Batch execution file

Technologies - Log4J - Create Log4j Configuration File - Where ? How ? What ?