How to configure Cucumber in eclipse?
1. First need to install JDK latest version in your machine.
2. Need to download eclipse in your machine any package.
3. Need to install cucumber software in eclipse.
Website URL : http://cukes.info/cucumber-eclipse/
Cucumber Url:
http://cucumber.github.com/cucumber-eclipse/update-site4. Open the eclipse
go to Help menu -> Install new software -> paste the Cucumber Url
Click on Next button -> Next -> Accept-> Finish-> Restart Eclipse.
once restart the eclipse Need to create a Java Project.
Goto -> File-> New -> Java Project.
Now its time to work with cucumber. so we need to download below cucumber jar files.
Cucumber Jar files :
The below jar file you can download from the link:
http://mvnrepository.com/artifact/info.cukes
1. cucumber-core-1.1.8
2. cucumber-html-0.2.3
3. cucumber-java-1.1.8
4. cucumber-junit-1.1.8
5. cucumber-jvm-deps-1.0.3
6. gherkin-2.12.2
7. gherkin-jvm-deps-1.0.2
8. junit-4.11
9. xstream-1.4.5
Now we need to download selenium Jar file :
website: http://www.seleniumhq.org/download/
1. selenium-Java-2.42.jar
2. selenium-standalone-server-2.42.jar
Now we need to configure these jar files into Java project.
Right click on JRE system library-> build path-> configure build path
Select library-> click on add External jars-> select all jar files-> click on Open button-> click on OK button.
Now you have successfully created a cucumber project.
This is our Skelton of Cucumber project, like this we need to create the Packages and classes.
Ex:
features
|
|__cucumber // its package
| |_TestRunner.java
| |_ TestCase_SignUp_01.java
| |_TestCase_Login_02.java
|__cucumber.feature // its package
| |_SignUp.feature
| |_Login.feature
|__expected_images
|__actual_images
|__image_difference
|__screenshots
|__
|
|__cucumber // its package
| |_TestRunner.java
| |_ TestCase_SignUp_01.java
| |_SignUp.feature
| |_Login.feature
|__expected_images
|__actual_images
|__image_difference
|__screenshots
|__
awesome post presented by you..your writing style is fabulous and keep update with your blogs
ReplyDeleteRuby on Rails Online Course India