
After all this, we would further go ahead with launching the browser () and thus search for ‘neova solutions’ and click enter.Right after the method, we would be adding a setup that consists of a chrome driver.Above which it has annotations this signifies that this test case is based on TestNG.In the above code, we have created a method (TestGoogle) inside the class.To understand how TestNG works we would create a simple test that will launch the browser and search a basic query as shown below. It would consist of various folders our main test file would be located under the package. Folder Structure:Īfter all configuration, we will find a folder structure in the pattern as shown above. Likewise, we have to download mainly 3 dependencies from mvn repository.Īfter downloading all required dependencies, our pom.xml file would look like the below. We can notice a small code snippet in the above figure, this is nothing but the dependency code which we need to copy and paste into the pom.xml file. In Second step we would be adding a package and then create an execution file.Īfter creating the project setup, we will navigate to mvn repository and search for various kinds of dependencies that we will be using in our project as shown below.

In the first step, we would be creating a maven project inside the eclipse. We would fill in basic details like name, group id, description, etc. Download and install TestNG from the eclipse marketplace.

