Upload
ankit-joshi
View
224
Download
0
Embed Size (px)
Citation preview
8/18/2019 Installation Guidelines1
1/10
INSTALLATION -GUIDELINES
With Plugin
Install Cucumber Eclipse Plugin
It is easy to install Cucumber Eclipse Plugin, as it comes as a plugin for Eclipse IDE .
Prerequisite for installing this plugin is your Internet connection should be up & running
during installation of this plugin and Eclipse IDE should be installed in your computer. Please
see Download and Install Eclipse to setup Eclipse to you system.
Steps to follow:
! "aunch the Eclipse IDE and from #elp menu, clic$ % Install New Software.
'! (ou will see a dialog window, clic$ % Add button.
8/18/2019 Installation Guidelines1
2/10
)! *ype name as you wish, let+s ta$e %Cucumber and type
%http://cucumber.github.com/cucumbereclipse/updatesite as location. lic$ !" .
-! (ou come bac$ to the preious window but this time you must see Cucumber Eclipse
Plugin option in the aailable software list. /ust Chec# the bo0 and press % Ne$t button.
8/18/2019 Installation Guidelines1
3/10
1! lic$ on Ne$t .
2! lic$ % I accept the terms of the license agreement then clic$ %inish.
3! "et it install, it will ta$e few seconds to complete.
8/18/2019 Installation Guidelines1
4/10
4! (ou may or may not encounter a Security warning, if in case you do 5ust clic$ !" .
6! (ou are all done now, 5ust lic$ es.
With !a"en# $ars
ucumber functionality is abstracted out in 5ars and following ucumber 5ars7modules are
required to run a Cucumber test with Java in Eclipse.
. cucumbercore
'. cucumber&a'a
). cucumber&unit
8/18/2019 Installation Guidelines1
5/10
-. cucumber&'mdeps
1. cucumberreporting
2. gher#in
3. &unit
4. moc#itoall 6. cobertura
'! Search for cucumbercore in the entral 8aen 9epository. It will return the Cucumber
Core 5ars.
)! It will display a pop up and as$ you to sae the cucumber core jar file.
8/18/2019 Installation Guidelines1
6/10
-! /ust li$e this, one by one search for eery other 5ar file mentioned aboe and downloadsthese to your drie.
Note that core , &a'a and &unit files all need to be the same file 'ersion e.g. 1.2.0
Opti%n & ' D%(nl%a) Cucumber $ars *r%m %ss+s%nat,pe+%rg
! o to https://oss.sonat(pe.org/content/repositories/releases/info/cu#es/ . #ere also all the
cucumber 5ars are aailable. Start with cucumbercore.
https://oss.sonatype.org/content/repositories/releases/info/cukes/https://oss.sonatype.org/content/repositories/releases/info/cukes/https://oss.sonatype.org/content/repositories/releases/info/cukes/
8/18/2019 Installation Guidelines1
7/10
'! lic$ on the latest ersion at the bottom of the page, which is 'ersion ).*.+ as of now by
Dec+-.
)! ;nce clic$ed on the ersion, it will display the all types of 5ar aailable to download. lic$
oncucumbercore).*.+.&ar .
8/18/2019 Installation Guidelines1
8/10
-! /ust li$e this, downloads all of these to your drie and eery other 5ar is aailable on the
same page.
Note that core , &a'a and &unit files all need to be the same file 'ersion e.g. 1.2.0
Option 3: Download Cucumber Jars from Maven dependencies
*his is the most common and effectie way of setting up cucumber with eclipse.
8/18/2019 Installation Guidelines1
9/10
. cucumbercore
'. cucumber&a'a
). cucumber&unit
-. cucumber&'mdeps
1. cucumberreporting 2. gher#in
3. &unit
4. moc#itoall
6. cobertura
=or e0ample, ;pen the pom.0ml file and opy the following inside the dependencies tag.
>dependency?
>groupId?info.cu$es>7groupId?
>artifactId?cucumber@5aa>7artifactId?
>ersion?..1>7ersion?
>scope?test>7scope?
>7dependency?
>dependency?
>groupId?info.cu$es>7groupId?
>artifactId?cucumber@5m>7artifactId?
>ersion?..1>7ersion?>type?pom>7type?
>7dependency?
>dependency?
>groupId?info.cu$es>7groupId?
>artifactId?cucumber@5unit>7artifactId?
>ersion?..1>7ersion?
>scope?test>7scope?
>7dependency?
>dependency?
>groupId?net.sourceforge.cobertura>7groupId?
>artifactId?cobertura>7artifactId?
>ersion?'..>7ersion?
>7dependency?
>dependency?
>groupId?info.cu$es>7groupId?
>artifactId?cucumber@5m@deps>7artifactId?
>ersion?.A.1>7ersion?
>7dependency?
>dependency?
8/18/2019 Installation Guidelines1
10/10
>groupId?net.masterthought>7groupId?
>artifactId?cucumber@reporting>7artifactId?
>ersion?.A.A>7ersion?
>7dependency?
>dependency?>groupId?info.cu$es>7groupId?
>artifactId?gher$in>7artifactId?
>ersion?'.'.'>7ersion?
>7dependency?
>dependency?
>groupId?org.moc$ito>7groupId?
>artifactId?moc$ito@all>7artifactId?
>ersion?'.A.'@beta>7ersion?
>7dependency?
>dependency?
>groupId?5unit>7groupId?
>artifactId?5unit>7artifactId?
>ersion?).4.>7ersion?
>scope?test>7scope?
>7dependency?