Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 20 13:12

    luke-hill on protobuf-accessors

    (compare)

  • Aug 19 12:02

    luke-hill on CI-Use-jruby-9.2.8.0

    (compare)

  • Aug 19 12:02

    luke-hill on master

    CI: Use jruby-9.2.8.0 Merge pull request #173 from cu… (compare)

  • Aug 19 12:02
    luke-hill closed #173
  • Aug 19 12:02
    luke-hill commented #173
  • Aug 16 18:51
    olleolleolle opened #173
  • Aug 16 18:50

    olleolleolle on CI-Use-jruby-9.2.8.0

    CI: Use jruby-9.2.8.0 (compare)

  • Aug 16 12:30

    aslakhellesoy on v5.0.1

    (compare)

  • Aug 16 12:30

    aslakhellesoy on master

    Release 5.0.1 (compare)

  • Aug 16 11:55

    aslakhellesoy on gherkin-7

    (compare)

  • Aug 16 11:55

    aslakhellesoy on master

    Update/prune dependencies restore coveralls Build all branches and 5 more (compare)

  • Aug 16 11:55
    aslakhellesoy closed #172
  • Aug 16 11:54
    aslakhellesoy commented #172
  • Aug 16 11:43
    aslakhellesoy synchronize #172
  • Aug 16 11:43

    aslakhellesoy on gherkin-7

    Require ruby 2.3 (compare)

  • Aug 16 08:25
    aslakhellesoy commented #172
  • Aug 15 23:54
    aslakhellesoy review_requested #172
  • Aug 15 23:54
    aslakhellesoy review_requested #172
  • Aug 15 23:00
    aslakhellesoy synchronize #172
  • Aug 15 23:00

    aslakhellesoy on gherkin-7

    Downgrade bundler (compare)

Brian Carlson
@Carlbc18
specifically where within the cucumber run time do the feature files get loaded in? is it part of load_files! here /runtime/support_code.rb?
blueice349
@blueice349
gem version: 2.6.6
cucumber version: 2.4.0
Matt Wynne
@mattwynne
@aef have you looked at the aruba gem?
Eric Kessler
@enkessler
@JESii @blueice349 Cucumber is not inherently aware of what someone is using it for. You'll get a fresh World object for each test but that's about it. Anything else is domain specific and something else must handle that kind of intelligent wiring.
Andrea Nodari
@nodo
Hi everyone, I am new to the project. I have just created a issue for a suggestion about World feature (cucumber/cucumber-ruby#1005). What do you think?
blueice349
@blueice349
how can I run all my .feature test and exclude certain tags?
nixfreak
@nixfreak
I have a question if I have a text_field and the field requires a new request id every time, how would you go about looking to see if the request id was taken or not , and if it was taken, then you would enter a new one in. I am trying to figure this out without every time adding a static requestid in the code
Sakib Mahmud
@isakib
This message was deleted
Sakib Mahmud
@isakib

@mattwynne sorry to tag you directly.

Into very critical situation. In our project, we have some data input states. While user in this states, such as “Save, Cancel, Close” — If user want to close Browser or Tab, we show them popup messages "This page is asking you to confirm that you want to leave - data you have entered may not be saved”

Which is fine.

Now, all of our scenario are isolated from another scenario. In case of, in between (while input field in state of save, cancel, close) is opended — somehow response hasn’t come to client side or ajax request has not procced properly — timeout occurred, and that scenario has failed. It’s time for webdriver to quit the browser and re-run the webdriver browser to run next scenario.

Now, browser is holding the end user with this message "This page is asking you to confirm that you want to leave - data you have entered may not be saved”. Not allowing to move on to next scenario script automation execution. We don’t handle or can’t handle such sudden situation and even by accepting or dismissing the js popup — as far as I understand.

As it occured, all the time webdriver trying to close the browser and it fails to close. So, all the scenario run through the current situation (popup is cont flickering), as cucumber it attempting to run the next scenario and popup is opening to close it first.

Now, as of this change — we have about 1100 scenario, about 90% of them are isolated scenario and most of them are failing — if that failure occured “once”, that popup arises once!

I’ve prepared a very small demo for you http://screencast.com/t/84E9B321VDg — if you can grab the issue

Any idea what to do, in such situation?

nixfreak
@nixfreak
I have a question if I have a text_field and the field requires a new request id every time, how would you go about looking to see if the request id was taken or not , and if it was taken, then you would enter a new one in. I am trying to figure this out without every time adding a static requestid in the code
blueice349
@blueice349
Is there anyway to have more then one window or tab running for a test? so what I want would be this:
Scenario: I do everything in window one then open a new window / tab

                    When I navigate to "([^\"]*)"
                    And I open new window / tab?????

Scenario: I do things in the new window

                    When I navigate to "([^\"]*)"
                    And I close new window / tab????
                    And I go back to previous window / tab????

Scenario: I do things in previous window / tab ( first window / tab )
                     When I navigate to "([^\"]*)"

I seen these canned steps, but not sure what they are doing?

To switch between windows use following steps :

Then I switch to new window
Then I switch to previous window
Then I switch to window having title "(.*?)"
Then I close new window
Then I switch to main window

To switch between frames use following steps :

Then I switch to frame "(.*?)"
Then I switch to main content

nixfreak
@nixfreak
yes its frame
frame for frame or iframe
blueice349
@blueice349
could you give me a simple test not sure I understand how its working
b.frame(:id => "content_ifr").send_keys "hello world"
Matt Wynne
@mattwynne
@isakib I would disable the pop-up. Add a feature toggle into the code for the pop-up, and disable it by default for your test runs (you may want one scenario to test the pop-up, where you can turn it on). Options for toggling are various - talk with the other developers on the team about the best way to do it. You can use webdriver’s executeJavaScript for example, or you can use a secrete querystring parameter, or something else.
Matt Wynne
@mattwynne
@/all does anyone have the time / energy to help me fix the build? We have problems with Ruby 1.9 / JRuby. I’ve started looking into it here: cucumber/cucumber-ruby#1009
nixfreak
@nixfreak
Looks like something wrong with the gem tins
Make sure that gem install tins -v '1.12.0' succeeds before bundling.
hasherCGI
@hasherCGI
Is is possible for gherkin to read in a csv file and use this data for the Examples section in a scrip
Matt Wynne
@mattwynne
Not at the moment @hasherCGI. I'd be interest in someone working on that though.
hasherCGI
@hasherCGI
@mattwynne I found a blog on how to use external data in gherkin, but can't get it to work https://shvets.github.io/blog/2014/10/19/adding_source_to_gherkin_script.html
nixfreak
@nixfreak
is it possible to put in logic using watir::webdriver ?
or will I have to use pure ruby in order to put logic in ?
nixfreak
@nixfreak
scenario would be to recognize a text field and if the text field was populated and a duplicate then I would like watir::webdriver to alert that person and either manually put in another request id or have the program fill it when another request id based on a regex statement
has anyone had experience with this type of scenario before?
blueice349
@blueice349

can someone help with a custom step problem I am having?

custom step:

def getLabelElementByLabel( label )

   return $driver.find_element( :xpath, '//label[translate(normalize-space(text()),"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ")="' + label.upcase + '"]' )
end

Then( /^I enter "([^"]*?)" into the textbox labeled "([^"]*)"$/ ) do | text, label |

  label_element = getLabelElementByLabel( label )
  clear_text( 'id', label_element.attribute( 'for' ) )
  enter_text( 'id', text, label_element.attribute( 'for' ) )
end

using the custom step:

Then I enter "Update" into the textbox labeled "ENTER NEW ENTRY LABEL (DEFAULT IS \"COMMENT\" OTHER POSSIBLE VALUES MAY BE LOG, UPDATE, ETC.)"

the problem is the "" does not get read as a string

the next line is the whole string:
ENTER NEW ENTRY LABEL (DEFAULT IS "COMMENT" OTHER POSSIBLE VALUES MAY BE LOG, UPDATE, ETC.)

Dave McNulla
@dmcnulla
@nixfreak - I wouldn't do that if it could. It won't run in CI. Better to get your data cleaned up between scenarios.
nixfreak
@nixfreak
@dmcnulla Ok so your saying to change it before , i guess i'm not following your explanation
nixfreak
@nixfreak
@dmcnulla what if your scenario is to run 50 of these tests ? I don't want to keep switching the request id for 50 samples
blueice349
@blueice349
does anyone see where I have a syntax error in this xpath?
Then element having xpath "//*[ @id=\'edit-vtabs-actions\']//a[ contains( text(), \'Add action\' ) ]" should be present
nixfreak
@nixfreak
try checking that xpath in FF xpath checker
Dave McNulla
@dmcnulla
@nixfreak If I had so many tests, I would ask myself if I were testing functionality or content. There are ways to test content more effectively. Clean up means transactional records are deleted so the request id doesn't exist at the start of each test.
@nixfreak It's not dogma, it's maintainability.
Dave McNulla
@dmcnulla
@blueice349 Why would you make the technical implementation details viewable in your cucumber scenario?
Then the Actions tab contains "Add action"
and keep the xpath hidden in the step definition.
Peter Sergeant
@pjlsergeant
Very random question: I need to illustrate my paper with a picture of Cucumber's colorized output. Rather than generate something new, I'd really like a picture of it, that shows some of its features off. Google is not giving me high quality results. Any recommendations on where to find such a thing that I can include (attributed, of course)?
Steve Gibson
@stevegibson
@dmcnulla @blueice349 Dave's on the right track, but I would even push the xpath down a layer to the page class and reference that page object in your step definition.
lfberge
@lfberge
Hi, i'm having getting an error while running some of my tests. When executing a feature with a scenario outline with four inputs PhantomJS crashed with a Fatal Windows error and fails most subsequental tests. With chromedriver everything is hunkydory, but that doesnt really solve my problem. I can get the test to stably run if I only have two inputs to the scenario outline or if I remove the header-settings like user agent and window resize. Does anyone have an idea how I can get this to run stably with user agent and multiple inputs to the scenario outline?
blueice349
@blueice349
@dmcnulla cuz that is the text for the xpath. There is more then one button and I make my things so you can just call the same step and change the text in the step
Peter Sergeant
@pjlsergeant
Can I access information the RbStepDefinition from inside a step?
Matt Wynne
@mattwynne
@pjlsergeant what info do you want?
Peter Sergeant
@pjlsergeant
Nothing specifically I'm just writing a paper on how Ruby Cucumber differs from the Perl one
Anyway, I concluded it wasn't possible - specific pieces of information might be
But not the object itself
Eurico Vidal
@euricovidal
I'm using cucumber on rails, I write a background step to create a Term (terms of use), in test context the Term exist (it has generated an id), but in the app context the term doesn't exist :/
blueice349
@blueice349
Got a example code?
Brian Carlson
@Carlbc18
is there a way to set a debug flag within cucumber to give some additional logging/output for when finding and loading steps which are matched?