TestNG class us used to execute the test cases. In TestNG framework, the main point for running the tests is TestNG class. The TestNG objects can be created by the user and the objects can be invoked in different ways like:
The groups that are to be included or excluded can be defined by the user, and also the parameters can be assigned. The command line parameters include:
The TestNG object is created, an already existing testing.xml in the example.
A java class file SampleTest.java is created in C:\>TestNG_WORKSPACE.
The test cases are executed by creating testng.xml file in C:\>TestNG_WORKSPACE. The complete XML testing is captured in the file. All the test suites and the parameters are described easily by this file enabling to check in the code repository or e-mail to the co-workers. The subsets of the tests are easily extracted and many runtime configurations are extracted.
Javac is used to compile the test case.
The testng.xml is run, which enables the <test> tag test case to run.
The output is verified.
TestNG Related Interview Questions
|Adv Java Interview Questions||Core Java Interview Questions|
|Testing Tools Interview Questions||QTP Interview Questions|
|Manual Testing Interview Questions||Selenium Interview Questions|
|Automation Testing Interview Questions||Software testing Interview Questions|
|JUnit Interview Questions||DataGrid Interview Questions|
|Selenium WebDriver Interview Questions||Selenium IDE Interview Questions|
|Software Development Lifecycle (SDLC) Interview Questions||Test Estimation Interview Questions|
|Test Manager Interview Questions||Test Plan Interview Questions|
|Selenium Rc Interview Questions||Rational Unified Process Interview Questions|
|Test Automation Framework Interview Questions||Selenium Cucumber Interview Questions|
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.