Posts

Showing posts from October, 2020

What is the use of TestNG Library and confing.properties?

Image
What is TestNG Framework? TestNG is a Java testing framework for complex integrated Testing. it is designed to simplify all our testing requirements such as functional testing, regression, end-to-end testing. Installation of TestNG Open Eclipse IDE Click on the Help menu Click on Install New Software The window will popup Click on the Add button In the name input box, type “TestNG” In the location input box, type url “ http://beust.com/eclipse ” Click on Add The window will open with TestNG result Select TestNG Click on Next  Accept the Licence agreement Click on Finish If you encounter a Security warning, just click "Install Anyway". Wait for the installation to finish. When Eclipse prompts you for a restart, click "Restart now." Use of TestNG library Annotations are easier to use and understand.Test cases can be grouped more easily. @BeforeSuite : The annotated method will be run before all tests in this suite have run. @BeforeTest: The annotated method will be r...