Automation Framework Create new Project
Required knowledge : Maven Project
Maven project is very helpful for us to automate download jar file and manage the version we used, easy to build , easy to configuration with Continuous Integration.
Now we will create a project Maven name “Selenium-Automation-Framework”.
Step 1 : Open eclipse –> Choose File menu –> Choose New –> Choose Other..
Step 2 : Find Maven –> Choose Maven Project –> Click ‘Next’ button
Step 3 : Tick on “Create a simple project” , “Use default workspace”
Step 4 : Enter value for “Group ID” and “Artifact ID” . Then click “Finish”.
Step 5 : The new Project “Selenium-Automation-Framework” will show in the left menu of Eclipse.
Configuration Project
First you need to configuration the pom.xml file to add library required by Selenium.
Step 1 : Open project –> Double click to file “pom.xml”
Stemp 2 : Copy this code and paste into your pom.xml file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|
By adding this code , we are telling to maven that we will use jar files that we define in the tag .
Step 3 : Right click into project and choose Maven –> Update project.
Step 4 : Click “Ok” button to let Maven download jar files.
Step 5 : Open the “Maven dependencies” to see jar file are available in your project.
Note : you will need to have an internet in your laptop to allow the download of maven.
Now the setup and configuration is done , you are able to start writing Selenium Automation Framework.
Post a Comment
Post a Comment