Configuring cucumber in eclipse.
1) Install cucumber plugin for eclipse.
Path: http://cucumber.github.com/cucumber-eclipse/update-site
2) Download the following cucumber related libraries and configure the buid patch.
cucumber-core-1.1.4.jar
cucumber-html-0.2.3.jar
cucumber-java-1.1.4.jar
cucumber-junit-1.1.4.jar
cucumber-jvm-deps-1.0.3.jar
gherkin-2.12.1.jar
jchronic-0.2.6.jar
Refer the following link which provides an ant script to install cucumber libraries if you dont want to download manually.
https://github.com/cucumber/cucumber-jvm/blob/master/examples/java-helloworld/build.xml
3) Go to debug configuration --> Java Application --> Create new
In the Main tab:
Name: <Configuration Name>
Project: <Your test project>
Main class: cucumber.api.cli.Main
Click on Arguments tab:
Program arguments:
--glue AcceptanceTestCases
src/AcceptanceTestCases/TestSuite1/TestSuite1.feature
--format pretty
VM Arguments:
-ea
Click on Apply.
To debug, click on "Debug".
1) Install cucumber plugin for eclipse.
Path: http://cucumber.github.com/cucumber-eclipse/update-site
2) Download the following cucumber related libraries and configure the buid patch.
cucumber-core-1.1.4.jar
cucumber-html-0.2.3.jar
cucumber-java-1.1.4.jar
cucumber-junit-1.1.4.jar
cucumber-jvm-deps-1.0.3.jar
gherkin-2.12.1.jar
jchronic-0.2.6.jar
Refer the following link which provides an ant script to install cucumber libraries if you dont want to download manually.
https://github.com/cucumber/cucumber-jvm/blob/master/examples/java-helloworld/build.xml
3) Go to debug configuration --> Java Application --> Create new
In the Main tab:
Name: <Configuration Name>
Project: <Your test project>
Main class: cucumber.api.cli.Main
Click on Arguments tab:
Program arguments:
--glue AcceptanceTestCases
src/AcceptanceTestCases/TestSuite1/TestSuite1.feature
--format pretty
VM Arguments:
-ea
Click on Apply.
To debug, click on "Debug".
No comments:
Post a Comment