import org.testng.annotations.*;
/**
* TestNG Expected Exception Test
*
*/
public class TestNGTest2 {
@Test(expectedExceptions = ArithmeticException.class)
public void divisionWithException() {
int i = 1/0;
}
}
Pages
- Training Details
- Manual + QTP + Selenium
- QTP Scripting for BEGINNERs
- QTP INTERMEDIATE
- EXPERT QTP
- VB Script
- Encrypting a String in QTP
- QTP Scripts
- QTP questions and answers
- Selenium Code Links
- Selenium Framework
- Java OOPs Concepts
- JDBC Connection
- TestNG Build.xml code
- pom.xml
- CONFIGURE ECLIPSE WITH CUCUMBER
- SQL Commands
- EVENT LISTENERS IN SELENIUM WEBDRIVER
- ContactUs
Total Pageviews
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment