[JVM] Tests were working with 1.1.2 cucumber, but not working with cucumber 1.1.3

123 views
Skip to first unread message

Jason Smiley

unread,
Apr 19, 2013, 3:44:33 PM4/19/13
to cu...@googlegroups.com
My code can be found here - https://github.com/JasonSmiley/testscripts

Currently I am getting the following output when I try to run using Cucumber 1.1.3:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running CucumberTest
log4j:WARN No appenders could be found for logger (org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager).
log4j:WARN Please initialize the log4j system properly.

@selenium @browse
Feature: Browse Tests
  As a user
  I should be able to browser through all products
  filter my results
  and click an item to view the Product Detail Page.
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 9.254 sec <<< FAILURE!

Results :

Tests in error: 
  Feature: Browse Tests: -1

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.680s
[INFO] Finished at: Fri Apr 19 15:07:15 EDT 2013
[INFO] Final Memory: 16M/146M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.2:test (default-test) on project Cucumber_Automation: There are test failures.
[ERROR] 
[ERROR] Please refer to /Users/jason/Desktop/shared github/testscripts/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:



When I use 1.1.2, I get this:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running CucumberTest
log4j:WARN No appenders could be found for logger (org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager).
log4j:WARN Please initialize the log4j system properly.

@selenium @browse
Feature: Browse Tests
  As a user
  I should be able to browser through all products
  filter my results
  and click an item to view the Product Detail Page.

  Background:                         # Finding_Browse_page_load.feature:8
    Given I navigate to the home page # Login_Steps.navigate_step(String)
    And I am not logged in            # Login_Steps.login_setup()

  @furniture @smoke-tests @finished @heart-beat @test
  Scenario: Browse Furniture Smoke Test - L1 category page load                                         # Finding_Browse_page_load.feature:13
    When I click the furniture main navigation link                                                     # Browse_Steps.click_link(String)
    Then the browse furniture page header is updated to match the clicked facet                         # Browse_Steps.browse_header_check(String,String)
    And there are search results on the page                                                            # Browse_Steps.verify_there_are_results(String)
    And the browse furniture page category l2 facets should appear                                      # Browse_Steps.facet_level_checker(String,String,String,String)
    And the price facet section is appearing on the browse furniture page left navigation               # Browse_Steps.facet_section_is_displayed_check(String,String,String)
    And the creator facet section is appearing on the browse furniture page left navigation             # Browse_Steps.facet_section_is_displayed_check(String,String,String)
    And the location facet section is appearing on the browse furniture page left navigation            # Browse_Steps.facet_section_is_displayed_check(String,String,String)
    And the dealer organization facet section is appearing on the browse furniture page left navigation # Browse_Steps.facet_section_is_displayed_check(String,String,String)
    And the browse url is correct                                                                       # Browse_Steps.the_browse_url_is_correct(String)
    And the "Display Measurements" checkbox is defaulted to true                                        # Browse_Steps.the_checkbox_is_defaulted_to_true(String,String)
    And the "Sold Items" checkbox is defaulted to true                                                  # Browse_Steps.the_checkbox_is_defaulted_to_true(String,String)
    And the "Only This Week's Items" checkbox is defaulted to false                                     # Browse_Steps.the_checkbox_is_defaulted_to_true(String,String)
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 33.612 sec

Results :

Tests run: 15, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 38.394s
[INFO] Finished at: Fri Apr 19 15:42:40 EDT 2013
[INFO] Final Memory: 16M/146M
[INFO] ------------------------------------------------------------------------


Based on the change logs it doesn't seem like anything was drastically changed or removed, but I am not sure why my tests aren't working anymore. Is this maybe a different plugin's issue? (Surefire cucumber report issue)

aslak hellesoy

unread,
Apr 19, 2013, 3:50:45 PM4/19/13
to Cucumber Users
Thanks for posting this in a new thread Jason.

I have managed to reproduce this with your code. I'll try to shrink it down to something simpler and faster so we have something to work with. It's definitely a regression.

Aslak 

--
-- Rules --
 
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
 
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cu...@googlegroups.com. To unsubscribe from this group, send email to cukes+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
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/groups/opt_out.
 
 

Jason Smiley

unread,
Jun 11, 2013, 3:27:15 PM6/11/13
to cu...@googlegroups.com
Has this been resolved yet?

Charlie Halford

unread,
Jun 17, 2013, 6:57:10 AM6/17/13
to cu...@googlegroups.com
Looks like you might be hitting this issue: https://github.com/cucumber/cucumber-jvm/issues/476. From the looks of that, there's a pull request to fix it that has already been merged. Can you try against a built-from-source version of cucumber-jvm?
Reply all
Reply to author
Forward
0 new messages