Please enable JavaScript.
Coggle requires JavaScript to display documents.
TestNG - Coggle Diagram
TestNG
Benefits of testng
Logs can be generated
Ability to produce html reports
Parallel testing
testcases can be grouped and prioiritized
Annotations make the code efficient and easy to manage
Prerequisites
Java
Selenium
Install the plugin of testng
testng jar files
Assert
AssertTrue
AssertFalse
AssertEquals
BeforeClass
runs once before all the test methods
AfterMethod
run after each and every test method
BeforeMethod
run before each and every test method
BeforeSuite
runs before all tests in the test suite
BeforeTest
runs before each and every test method
with <test> tag in xml file
AfterClass
runs once after all the test methoods
AfterTest
runs after each and every test method
with <test> tag in xml file
AfterSuite
run after all tests in the test suite
DataProvider
pass the test data to the test method
test
part of the testcase
Sel Automation f/w which helps to run tests simultaneously and to generated reports
TestNG - Test Next generation. It was inspired by Junit and Nunit