package com.seleniumtests.tests;

import static com.seleniumtests.controller.Assertion.*;

import com.seleniumtests.controller.TestPlan;
import org.testng.annotations.Test;

/**
 * Demonstrate test execution continues even though assertions fail
 *
 * Date: 10/2/13
 * Time: 4:59 PM
 */
public class SoftAssertionTest extends TestPlan {

    /**
     * Continues with test execution even though assertions fail
     */
    @Test(groups = "softAssertionTest", description = "Continues with test execution even though assertions fail")
    public void softAssertionTest() {
        assertEquals(true, false, "boolean test failure");
        assertTrue(false, "another boolean test failure");
        assertEquals("selenium", "qtp", "universal test failure :)");
        assertTrue(1==1, "never fails");
    }
}

@@ -84,16 +84,61 @@
 ion.*;%0A%0A
+import com.seleniumtests.controller.Logging;%0A
 import c
@@ -835,20 +835,166 @@
 er fails%22);%0A
+        Logging.log(%22This message is logged after initial assertion failures. Hence test execution continues even in the wake of test failures%22);%0A
     %7D%0A%7D%0A

update logging