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: SUCCESSAlso 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
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:
--
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.
Seems like you have extra spaces in the step definations.
If you see, 24 of the step definitions are skipped while run.
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.
HI Aslak,I tried creating the Feature file and the Java file again but still getting this error:
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.
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.
...