Cucumber feature files in Jenkins

1,581 views
Skip to first unread message

Swaroop Swaroop

unread,
Nov 21, 2014, 3:25:43 AM11/21/14
to cu...@googlegroups.com
Hi Everyone,

The following error is comming on a windows 7 machine with 64bit operating system.

I have been working to find a way to execute Cucumber Feature files from Jenkins however i am getting the following error as below:

Started by timer
Building in workspace C:\Program Files (x86)\Jenkins\workspace\SCucumber\src\test\resources
Parsing POMs
[SCucumber] $ "C:\Program Files\Java\jdk1.7.0_67/bin/java" -cp "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven31-agent-1.5.jar;C:\Program Files\Maven\apache-maven-3.2.3\boot\plexus-classworlds-2.5.1.jar;C:\Program Files\Maven\apache-maven-3.2.3/conf/logging" jenkins.maven3.agent.Maven31Main "C:\Program Files\Maven\apache-maven-3.2.3\" "C:\Program Files (x86)\Jenkins\war\WEB-INF\lib\remoting-2.46.jar" "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven31-interceptor-1.5.jar" "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.5.jar" 62144
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven:  -B -f C:\Program Files (x86)\Jenkins\workspace\SCucumber\pom.xml test
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building CucumberSelenium 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ CucumberSelenium ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Program Files (x86)\Jenkins\workspace\SCucumber\src\main\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ CucumberSelenium ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ CucumberSelenium ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ CucumberSelenium ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ CucumberSelenium ---
[INFO] Surefire report directory: C:\Program Files (x86)\Jenkins\workspace\SCucumber\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.cucumber.testSuite.TestSuiteRunner
Feature: A random user clicks on a link in the website page

  Scenario: Open Express page and click on a Link  [90m# ClickLink.feature:3 [0m

  Scenario Outline: Openning Express Page                                [90m# ClickLink.feature:14 [0m
     [33mGiven  [0m [33mChoose the browser "*ff" [0m
     [33mGiven  [0m [33mEcommerce webpage is Open in browser "http://www.express.com" [0m
     [33mAnd  [0m [33mI click on certain element and wait for the page to load [0m
Feature: Searching any String in Google Page

  Background: Browsers are installed and Internet connection is given and I have been asked to search for any random String in Google Page  [90m# cucumber.feature:3 [0m

  Scenario: Search for multiple random Strings in Google Page and wait for the result  [90m# cucumber.feature:6 [0m

  Background: Browsers are installed and Internet connection is given and I have been asked to search for any random String in Google Page  [90m# cucumber.feature:3 [0m

  Scenario Outline: Openning Google Search Page                  [90m# cucumber.feature:16 [0m
     [33mGiven  [0m [33mSelect the browser "*ff" [0m
     [33mGiven  [0m [33mGoogle page is Open in browser "http:\www.google.com" [0m
     [33mWhen  [0m [33mI type the given string "Selenium" in the Search Field [0m
     [33mThen  [0m [33mI should get a list of options to choose from [0m

  Background: Browsers are installed and Internet connection is given and I have been asked to search for any random String in Google Page  [90m# cucumber.feature:3 [0m

  Scenario Outline: Openning Google Search Page                   [90m# cucumber.feature:17 [0m
     [33mGiven  [0m [33mSelect the browser "*ff" [0m
     [33mGiven  [0m [33mGoogle page is Open in browser "http:\www.google.com" [0m
     [33mWhen  [0m [33mI type the given string "QuickTest" in the Search Field [0m
     [33mThen  [0m [33mI should get a list of options to choose from [0m

  Background: Browsers are installed and Internet connection is given and I have been asked to search for any random String in Google Page  [90m# cucumber.feature:3 [0m

  Scenario Outline: Openning Google Search Page                  [90m# cucumber.feature:18 [0m
     [33mGiven  [0m [33mSelect the browser "*chrome" [0m
     [33mGiven  [0m [33mGoogle page is Open in browser "http:\www.google.com" [0m
     [33mWhen  [0m [33mI type the given string "Jenkins" in the Search Field [0m
     [33mThen  [0m [33mI should get a list of options to choose from [0m

  Background: Browsers are installed and Internet connection is given and I have been asked to search for any random String in Google Page  [90m# cucumber.feature:3 [0m

  Scenario Outline: Openning Google Search Page                  [90m# cucumber.feature:19 [0m
     [33mGiven  [0m [33mSelect the browser "*ff" [0m
     [33mGiven  [0m [33mGoogle page is Open in browser "http:\www.google.com" [0m
     [33mWhen  [0m [33mI type the given string "Travis" in the Search Field [0m
     [33mThen  [0m [33mI should get a list of options to choose from [0m

7 Scenarios ( [33m5 undefined [0m,  [32m2 passed [0m)
19 Steps ( [33m19 undefined [0m)
0m0.000s


You can implement missing steps with the snippets below:

@Given("^Choose the browser \"(.*?)\"$")
public void choose_the_browser(String arg1) throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}

@Given("^Ecommerce webpage is Open in browser \"(.*?)\"$")
public void ecommerce_webpage_is_Open_in_browser(String arg1) throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}

@Given("^I click on certain element and wait for the page to load$")
public void i_click_on_certain_element_and_wait_for_the_page_to_load() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}

@Given("^Select the browser \"(.*?)\"$")
public void select_the_browser(String arg1) throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}

@Given("^Google page is Open in browser \"(.*?)\"$")
public void google_page_is_Open_in_browser(String arg1) throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}

@When("^I type the given string \"(.*?)\" in the Search Field$")
public void i_type_the_given_string_in_the_Search_Field(String arg1) throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}

@Then("^I should get a list of options to choose from$")
public void i_should_get_a_list_of_options_to_choose_from() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}

Tests run: 31, Failures: 0, Errors: 0, Skipped: 24, Time elapsed: 0.546 sec - in com.cucumber.testSuite.TestSuiteRunner

Results :

Tests run: 31, Failures: 0, Errors: 0, Skipped: 24

[JENKINS] Recording test results
log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter).
log4j:WARN Please initialize the log4j system properly.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.258 s
[INFO] Finished at: 2014-11-21T13:48:09+05:30
[INFO] Final Memory: 17M/176M
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[JENKINS] Archiving C:\Program Files (x86)\Jenkins\workspace\SCucumber\pom.xml to com.cucumber/CucumberSelenium/0.0.1-SNAPSHOT/CucumberSelenium-0.0.1-SNAPSHOT.pom
channel stopped
[CucumberReportPublisher] Compiling Cucumber Html Reports ...
[CucumberReportPublisher] copying all json files from: C:\Program Files (x86)\Jenkins\workspace\SCucumber\src\test\resources\target to reports directory: C:\Program Files (x86)\Jenkins\jobs\SCucumber\builds\2014-11-21_13-48-01\cucumber-html-reports
[CucumberReportPublisher] there were no json results found in: C:\Program Files (x86)\Jenkins\jobs\SCucumber\builds\2014-11-21_13-48-01\cucumber-html-reports
[MANTIS] No issues have been found in the changelog.
Finished: SUCCESS


Also my workspace shows only 2 feature files and not the entire copied files.

I am unable to understand what is happening here. Could anyone please help me understand how this is working and why Jenkins shows Success while the Cucumber Features are showing undefined in the end result.

Am i going wrong anywhere. Please advice. My pom.xml file is here:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<groupId>com.cucumber</groupId>
	<artifactId>CucumberSelenium</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<packaging>jar</packaging>

	<name>CucumberSelenium</name>
	<url>http://maven.apache.org</url>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>

	<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.11</version>
			<scope>test</scope>
		</dependency>

		<dependency>

			<groupId>org.seleniumhq.selenium</groupId>

			<artifactId>selenium-java</artifactId>

			<version>2.43.1</version>

		</dependency>

		<dependency>

			<groupId>info.cukes</groupId>

			<artifactId>cucumber-junit</artifactId>

			<version>1.1.8</version>

			<scope>test</scope>

		</dependency>

		<dependency>

			<groupId>info.cukes</groupId>

			<artifactId>cucumber-java</artifactId>

			<version>1.1.8</version>

			<scope>test</scope>

		</dependency>

		<dependency>

			<groupId>info.cukes</groupId>

			<artifactId>cucumber-picocontainer</artifactId>

			<version>1.1.8</version>

			<scope>test</scope>

		</dependency>

	</dependencies>

	<build>

		<plugins>

			<plugin>

				<groupId>org.apache.maven.plugins</groupId>

				<artifactId>maven-surefire-plugin</artifactId>

				<version>2.17</version>

				<configuration>
						
						<test>com.cucumber.testSuite.TestSuiteRunner.java</test>
					
				</configuration>

			</plugin>

		</plugins>

	</build>

</project>


Your help is much appreciated and thanks for your time. Hope for a reply soon.

Regards,
Swaroop

aslak hellesoy

unread,
Nov 21, 2014, 4:54:54 AM11/21/14
to Cucumber Users
On Fri, Nov 21, 2014 at 8:25 AM, Swaroop Swaroop <swaro...@gmail.com> wrote:
Hi Everyone,

The following error is comming on a windows 7 machine with 64bit operating system.

I have been working to find a way to execute Cucumber Feature files from Jenkins however i am getting the following error as below:

There aren't any errors in the output below. What do you consider an error?

Aslak
 

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pravakar Panigrahi

unread,
Nov 21, 2014, 5:33:43 AM11/21/14
to cu...@googlegroups.com
Seems like you have extra spaces in the step definations. Please have a careful look and correct that. Hopefully it should work after that.

Regards,
Pravakar

aslak hellesoy

unread,
Nov 21, 2014, 5:43:12 AM11/21/14
to Cucumber Users
On Fri, Nov 21, 2014 at 10:33 AM, Pravakar Panigrahi <pravakar...@gmail.com> wrote:
Seems like you have extra spaces in the step definations.

What makes you say that Pravakar?

Aslak
 

Pravakar Panigrahi

unread,
Nov 21, 2014, 6:19:47 AM11/21/14
to cu...@googlegroups.com
If you see, 24 of the step definitions are skipped while run. I guess that's the query of Swaroop, that execution is just getting completed. I, myself, has faced this issue while starting with CucumberJVM. Hence suggested.

My apologies, if the issue is something else!

Regards,
Pravakar

Björn Rasmusson

unread,
Nov 21, 2014, 6:41:48 AM11/21/14
to cu...@googlegroups.com

Unless you run Cucumber-JVM with the "--strict" option, its exit code will be zero also when having undefined and/or pending steps, only failed steps will make the exit code non-zero. So if you want Jenkins to show failure when there are undefined steps, you need to use the "--strict" option on Cucumber-JVM.

Best Regards
Björn
 

aslak hellesoy

unread,
Nov 21, 2014, 7:15:43 AM11/21/14
to Cucumber Users
On Fri, Nov 21, 2014 at 11:19 AM, Pravakar Panigrahi <pravakar...@gmail.com> wrote:
If you see, 24 of the step definitions are skipped while run.

I'm sorry, but your advice is wrong, and you're confusing Gherkin steps with Java step definitions.
It's always better to look at Cucumber's output rather than JUnit's output.

Cucumber says there are 19 undefined gherkin steps, and it's suggesting Java step definitions to define them.

So either the Java step definitions aren't defined at all, or they are in a package where Cucumber isn't looking for them. This can be fixed by moving them to the same package as the JUnit test running Cucumber, or by annotating that test with @CucumberOptions and specifying the glue parameter to point to the correct package for stepdefs.

Swaroop,
Let us know if that helps

Aslak

Swaroop Swaroop

unread,
Nov 24, 2014, 2:21:55 AM11/24/14
to cu...@googlegroups.com
Hi Aslak,

Thanks for the reply. I am trying it and check.

Regards,
Swaroop

Swaroop Swaroop

unread,
Nov 24, 2014, 3:47:05 AM11/24/14
to cu...@googlegroups.com
HI Aslak,

I tried creating the Feature file and the Java file again but still getting this error:

[INFO] Scanning for projects...
[INFO] 
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building CucumberSelenium 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ CucumberSelenium ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\SeleniumCucumber\CucumberSelenium\src\main\resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ CucumberSelenium ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ CucumberSelenium ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\SeleniumCucumber\CucumberSelenium\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ CucumberSelenium ---
[INFO] Compiling 1 source file to D:\SeleniumCucumber\CucumberSelenium\target\test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ CucumberSelenium ---
[INFO] Surefire report directory: D:\SeleniumCucumber\CucumberSelenium\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.cucumber.testSuite.SuiteRunnerTest
Feature: A random user clicks on a link in the website page

  Scenario: Open Express page and click on a Link [90m# ClickLink.feature:3 [0m

  Scenario Outline: Openning Express Page                               [90m# ClickLink.feature:14 [0m
    [33mGiven [0m [33mChoose the browser "*ff" [0m
    [33mGiven [0m [33mEcommerce webpage is Open in browser "http://www.express.com" [0m
    [33mAnd [0m [33mI click on certain element and wait for the page to load [0m

2 Scenarios ( [33m1 undefined [0m, [32m1 passed [0m)
3 Steps ( [33m3 undefined [0m)
0m0.000s


You can implement missing steps with the snippets below:

@Given("^Choose the browser \"(.*?)\"$")
public void choose_the_browser(String arg1) throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}

@Given("^Ecommerce webpage is Open in browser \"(.*?)\"$")
public void ecommerce_webpage_is_Open_in_browser(String arg1) throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}

@Given("^I click on certain element and wait for the page to load$")
public void i_click_on_certain_element_and_wait_for_the_page_to_load() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}

Tests run: 6, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 0.428 sec - in com.cucumber.testSuite.SuiteRunnerTest

Results :

Tests run: 6, Failures: 0, Errors: 0, Skipped: 4

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.289 s
[INFO] Finished at: 2014-11-24T14:08:12+05:30
[INFO] Final Memory: 17M/112M
[INFO] ------------------------------------------------------------------------



What i am confused here is that even after defining the step definitions in java file when we run it as maven test it gives the implementations option. I am just not able to figure out where is the issue because Jenkins is executing what it has to executed pom.xml. But somewhere the gherkin to Java conversion is giving error. Any suggestions please...

Regards,
Swaroop

You received this message because you are subscribed to a topic in the Google Groups "Cukes" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cukes/ZeTOeJfOHCg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cukes+un...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Thanks & Regards,
Swaroop

aslak hellesoy

unread,
Nov 24, 2014, 4:14:02 AM11/24/14
to Cucumber Users
On Mon, Nov 24, 2014 at 8:47 AM, Swaroop Swaroop <swaro...@gmail.com> wrote:
HI Aslak,

I tried creating the Feature file and the Java file again but still getting this error:


Did you create step definitions as I recommended? In other words, have you copied the stepdef snippets printed by Cucumber and put them in a class next to your unit test class? 

If not, I recommend you try to get this example running:

If you need step-by-step guidance, you'll get that here:


Aslak

Swaroop Swaroop

unread,
Nov 24, 2014, 6:54:03 AM11/24/14
to cu...@googlegroups.com
Hi Aslak,

Thanks for the support.

In the mean time i tried putting my Java class file in the same package as that of the Junit Suite package and executed from Jenkins. It worked.....

I have attached the report here. Maybe it shall help others. But still cucumber is very cumbersome based on my experience of working with it.


The attachment shows the 2 files inside the same package. Atleast this worked for me.

In the mean time are there any other benifits of Cucumber framework when integrated with Selenium Web driver. I am a newbie to Cucumber.

Thanks and Regards,
Swaroop


Mandatory for Cucumber to work with Maven.png

aslak hellesoy

unread,
Nov 24, 2014, 7:48:28 AM11/24/14
to Cucumber Users
On Mon, Nov 24, 2014 at 11:53 AM, Swaroop Swaroop <swaro...@gmail.com> wrote:
Hi Aslak,

Thanks for the support.

In the mean time i tried putting my Java class file in the same package as that of the Junit Suite package and executed from Jenkins. It worked.....

I have attached the report here. Maybe it shall help others. But still cucumber is very cumbersome based on my experience of working with it.


I'm going to assume that you're experienced in Java, and that whatever problems you have run into are about Cucumber and not the Java platform and build tools.

I'd love to learn more about what you find cumbersome so we can improve it. Care to share?
 

The attachment shows the 2 files inside the same package. Atleast this worked for me.

In the mean time are there any other benifits of Cucumber framework when integrated with Selenium Web driver. I am a newbie to Cucumber.


Selenium WebDriver is an automation tool.

If you're not using Cucumber to bridge the communication gap between product owners, business analysts, developers and testers, then please us a different test runner. Like JUnit.

Aslak

Swaroop Swaroop

unread,
Nov 24, 2014, 9:19:53 AM11/24/14
to cu...@googlegroups.com
Hi Aslak,

Thanks for asking. I am purely talking from a automation tester's
point of view here. I have worked on Selenium, QTP with selenium being
the most. However i was just wondering about the possible uses of
using cucumber with open source API's.

I was going through some of the videos and tutorials about cucumber
offlate and haven't been able to clearly understand the benifits and
implementations of cucumber framework specially when used with other
API's. I would be glad to know more about the frameworks capabilities
other than offering behavior driven approach.

Well some of the issues I have come across when using it in Eclipse
are as follows All these are experienced when integrating with
Selenium:

* I could not find a way to integrate cucumber scripts with excel/xml
which is most commonly used or i may be wrong here.
* I could only find Junit integrated with Cucumber but no information
about TestNG which could be helpful especially for Java people.
* Also How can we manage with multiple cucumber feature files if we
are to design an entire application module as Cucumber Features.
* Is it possible to call other cucumber features inside another so
that moving between features becomes easier.
* Can we Group these scenarios as Smoke, Regression etc......and
control them independently during execution.
* Cucumber Performance Plugin with jenkins crashes when integrated
with Cucumber project. May be the issue lies with plugin and not
cucumber.

But these were some of the things that i found intriguing and was just
curious to tryout if these were possible,


Thanks and Regards,
Swaroop
>>>>>>>>>> [INFO] *--- maven-resources-plugin:2.6:resources
>>>>>>>>>> (default-resources) @ CucumberSelenium ---
>>>>>>>>>> *[INFO] Using 'UTF-8' encoding to copy filtered resources.
>>>>>>>>>> [INFO] skip non existing resourceDirectory C:\Program Files
>>>>>>>>>> (x86)\Jenkins\workspace\SCucumber\src\main\resources
>>>>>>>>>> [INFO]
>>>>>>>>>> [INFO] *--- maven-compiler-plugin:3.1:compile (default-compile) @
>>>>>>>>>> CucumberSelenium ---
>>>>>>>>>> *[INFO] No sources to compile
>>>>>>>>>> [INFO]
>>>>>>>>>> [INFO] *--- maven-resources-plugin:2.6:testResources
>>>>>>>>>> (default-testResources) @ CucumberSelenium ---
>>>>>>>>>> *[INFO] Using 'UTF-8' encoding to copy filtered resources.
>>>>>>>>>> [INFO] Copying 2 resources
>>>>>>>>>> [INFO]
>>>>>>>>>> [INFO] *--- maven-compiler-plugin:3.1:testCompile
>>>>>>>>>> (default-testCompile) @ CucumberSelenium ---
>>>>>>>>>> *[INFO] Nothing to compile - all classes are up to date
>>>>>>>>>> [INFO]
>>>>>>>>>> [INFO] *--- maven-surefire-plugin:2.17:test (default-test) @
>>>>>>>>>> CucumberSelenium ---
>>>>>>>>>> *[INFO] Surefire report directory: C:\Program Files

David Kowis

unread,
Nov 24, 2014, 9:26:22 AM11/24/14
to cu...@googlegroups.com


On 11/24/2014 08:19 AM, Swaroop Swaroop wrote:
> Hi Aslak,
>
I'm going to quote someone else who just replied to someone else trying
to do something remarkably similar to what you're doing:

<quote author="paolo">
If you want to learn how to use Cucumber correctly, you must first
understand that it's not a testing tool. This is better expressed by
Aslak in this post:
https://cucumber.pro/blog/2014/03/03/the-worlds-most-misunderstood-collaboration-tool.html

Matt gave an easy and fun introduction on how to write good scenarios
at CukeUp 2011. This is one of my all-time favourites:
https://skillsmatter.com/skillscasts/2122-refactoring-your-cukes

I also suggest you read the excellent "The Cucumber for Java Book" (in
beta at the moment):
https://pragprog.com/book/srjcuc/the-cucumber-for-java-book

If instead you are looking just for a test automation tool, TestNG and
JUnit with a decent DSL are more than enough.
</quote>

The first link is the most important one. If you try to use Cucumber to
replace a testing framework built to use excel without going back to the
collaboration purpose of Cucumber, you're going to have a bad time.

--
David Kowis
signature.asc

aslak hellesoy

unread,
Nov 24, 2014, 9:31:57 AM11/24/14
to Cucumber Users
On Mon, Nov 24, 2014 at 2:19 PM, Swaroop Swaroop <swaro...@gmail.com> wrote:
Hi Aslak,

Thanks for asking. I am purely talking from a automation tester's
point of view here. I have worked on Selenium, QTP with selenium being
the most. However i was just wondering about the possible uses of
using cucumber with open source API's.

I was going through some of the videos and tutorials about cucumber
offlate and haven't been able to clearly understand the benifits and
implementations of cucumber framework specially when used with other
API's. I would be glad to know more about the frameworks capabilities
other than offering behavior driven approach.

Well some of the issues I have come across when using it in Eclipse
are as follows All these are experienced when integrating with
Selenium:

* I could not find a way to integrate cucumber scripts with excel/xml
which is most commonly used or i may be wrong here.

Do you mean replacing Scenario Outline Examples tables with Excel spreadsheets?
It's not possible, and it never will be. Why? Because hiding stuff away in an excel sheet
reduces the documentation value of a Gherkin document.
 
* I could only find Junit integrated with Cucumber but no information
about TestNG which could be helpful especially for Java people.

TestNG integration is poorly documented. You'd have to study the code to figure out how to use it. Start here: https://github.com/cucumber/cucumber-jvm/blob/master/testng/src/test/java/cucumber/api/testng/TestNGCucumberRunnerTest.java
 
* Also How can we manage with multiple cucumber feature files if we
are to design an entire application module as Cucumber Features.

I don't understand the problem. Why is multiple feature files a problem for you?
 
* Is it possible to call other cucumber features inside another so
that moving between features becomes easier.

No and it never will be, because dependencies between scenarios is a terrible idea. It's discussed on this list regularly - search the archives.
 
* Can we Group these scenarios as Smoke, Regression etc......and
control them independently during execution.

Yes, put tags on your features and/pr scenarios and specify which ones to run with --tags.
 
* Cucumber Performance Plugin with jenkins crashes when integrated
with Cucumber project. May be the issue lies with plugin and not
cucumber.


Never even heard of the plugin.

Swaroop Swaroop

unread,
Nov 25, 2014, 11:03:20 AM11/25/14
to cu...@googlegroups.com
Thanks aslak for the answers really appreciate it very much. Happy to see newer tools are being developed to improve documenting capability in testing. Great job.

Regards,
Swaroop

prasanna. purohit

unread,
Jul 20, 2015, 5:43:23 PM7/20/15
to cu...@googlegroups.com
Hi Swaroop,

 How could you solve the issue I am also facing the same as you explained above But only difference is executing the from buil.xml file. Waiting for your answers

Thanks in Advance 
Prasanna 
...
Reply all
Reply to author
Forward
0 new messages