Hi,
I am using Selenium RC and TestNG. I have a testcase written to verify multiple point in a page.
public class Testthepage {
@Beforeclass (alwaysRun = true)
public void setUp () {
openUI.setUP ()
}
@Test
public void verifyUI () {
selenium.open (<URL>);
assertTrue (selenium.isElementPresent ("id=txtfiled"));
assertTrue (selenium.isElementPresent ("id=submit"));
assertTrue (selenium.isElementPresent ("id=drpdwn1"));
assertTrue (selenium.isElementPresent ("id=radiobtn"));
}
@Test
public void Verify () {
....
..... etc
}
}
My test case steps are below.
a) Open the Page (<some URL>)
b) Verify Text Field "t1" is prensent
c) Verify button "go" is present.
d) Verify dropdown "dr1" present.
e) Verify radio "rd1" present.
Now if the first verification fails (Verification point b ) the other Verification c to e will not get executed. My requirement is to make sure even though the first verification point fails it should continue with other assert statements, however the whole testcases should show as Failed. How do I make this work using TestNG.
Please help me on solving this problem.
Thanks and Regards,
Manjunath