@BeforeTest and @AfterTest annotations invoke specific methods around a Test in a TestSuite. To understand these annotations let’s revisit @BeforeClass and @AfterClass annotations. As we know that in a Class file, methods marked with these annotations would be executed before and after all the test methods get executed. The same way methods marked as @BeforeTestRead More
Key Driven
TestNG – 9 || Let’s move deep into the Test Suites.
Test Suites widely used to organize and execute test cases from multiple class files. It also helps to create various test sets using these classes and methods. To understand this, we need to create different class files. Let’s create below class files using specific methods. LaunchAndLogin.java launchBrowser() launchURL() login() MyOrders.java viewOrders() placeOrder() MyProfile.java editProfile() saveProfile()Read More
TestNG – 8 || Creation and execution of Test Suites.
Test Suites are a combination of one or more classes (class files) and programs. Test Suite is basically an XML file, used to group and organize the test cases from different class files. Till now we have seen that we can run Test Cases written in any class file directly using Right Click on thatRead More
TestNG – 3 || Create and execute multiple Test Cases.
As we know that TestNG is a framework. We can create and execute multiple cases in a single class file. In the last chapter, we have learned how to define and execute a simple program using TestNG Annotation. The same way, we can use annotation @Test to declare multiple test cases in a single program.Read More
TestNG – 2 || Installation process and a sample program of TestNG.
The installation process is very simple and it’s like installing an extension in a chrome browser. Installation Process Installation Process of TestNG software is very simple and easy. Just a few clicks and framework is ready for the use. Navigate to Help > Install new Software Click Add… Add Repository > Name : Enter “TestNG”Read More
TestNG – 1 || Introduction and benefits of TestNG Framework.
TestNG framework (where NG stands for Next Generation) is a testing framework which supports JAVA language. Mainly it is used while working on Key Driven Framework. Mainly, it helps any programmer or automation engineer from two sides: Create and Organize Test Cases Execute Test Cases in a systematic way and generate Reports. Things to RememberRead More
Framework || Simple example of Key Driven Framework using excel sheet in Selenium(JAVA).
This is an small and simple example of Key Driven Framework to execute test cases using excel sheet in Selenium(JAVA). Key Driven framework is based on keywords which are used to control the execution of the script without modifying the actual code. A tester has to just set the keywords whichRead More