Note: In updated eclipse, maven is installed automatically. So, at first, try the "Finally" section at the bottom of this post.
maven is the build tool for web application automation testing.
It helps to get the dependencies we need, at the same time, build the project using a continuous Integration (CI) server.
Use jenkins as CI server.
Use cucumber
use java
Use Test Driven Development (TDD)
- Maven Eclipse plugin installation step by step:
- Open Eclipse IDE
- Click Help -> Install New Software...
- Click Add button at top right corner
- At pop up: fill up Name as "M2Eclipse" and Location as "http://download.eclipse.org/technology/m2e/releases"
- Now click OK
- After that installation would be started.
# Another way to install Maven plug-in for Eclipse: (easiest one)
- Open Eclipse
- Go to Help -> Eclipse Marketplace
- Search by Maven
- Click "Install" button at "Maven Integration for Eclipse" section
- Follow the instruction step by step
# After successful installation do the followings in Eclipse:
- Go to Window --> Preferences
- Observe, Maven is enlisted at left panel
# Finally,
- Click on an existing project
- Select Configure -> Convert to Maven Project
# Creating a simple maven project in Eclipse:
http://toolsqa.com/java/maven/create-new-maven-project-eclipse/
http://www.tech-recipes.com/rx/39279/create-a-new-maven-project-in-eclipse/
https://wiki.jasig.org/display/UPM32/Creating+a+Simple+Maven+Project
http://www.vogella.com/tutorials/EclipseMaven/article.html
http://www.tutorialspoint.com/maven/maven_eclispe_ide.htm
Note: Test cases resides under the src > test > java > PackageName will only be considered as a test by Maven, rest will be ignored if you put you test cases in some other folder.
TestNG is the testing framework.
TestNG with Eclipse:
http://howtodoinjava.com/testng/testng-tutorial-with-eclipse/
http://toolsqa.com/java/maven/create-new-maven-project-eclipse/
http://www.tech-recipes.com/rx/39279/create-a-new-maven-project-in-eclipse/
https://wiki.jasig.org/display/UPM32/Creating+a+Simple+Maven+Project
http://www.vogella.com/tutorials/EclipseMaven/article.html
http://www.tutorialspoint.com/maven/maven_eclispe_ide.htm
Note: Test cases resides under the src > test > java > PackageName will only be considered as a test by Maven, rest will be ignored if you put you test cases in some other folder.
TestNG is the testing framework.
TestNG with Eclipse:
http://howtodoinjava.com/testng/testng-tutorial-with-eclipse/
Comments
Post a Comment