Sunday, 19 February 2017

Creating the package structures for the project

In the previous post we have imported the maven project into eclipse workspace & updated the pom.xml file by adding the required dependencies. In this post I will discuss about the different packages & their uses. Please follow the steps below:


In the Project you can see two source folders 1. src/test/java & 2. src/main/java.
Now add 1 more src folder. To create the src folder:
  • Right click on Project > Click on New > Click on source folder.
  • In Name insert "src/test/resources".
  • Click on Finish button.
Now the project structure should be displayed as below:
The package structure is nothing but the hierarchy of the folders. Now in our project there are 3 src folders but basically we will use src/test/java & src/test/resources folders.
In src/test/main - will add the Class files for Pages & Test Cases
In src/test/resources - will add the resources like DataSheet.xls file, Browser Drivers, xml files etc.




<<<Prev       Next>>>

No comments:

Post a Comment