David Prager Branner | 29 Aug 23:32 2014
Picon

[Cucumber] Exercises

I've been asked by a possible future employer to do the "exercises" on the cukes.info website, but apart from examples and a long list of tutorials I don't actually see anything so labelled. Am I missing it?

If not, does anyone have any suggestions as to suitable tutorials, in lieu of exercises, from among the many listed? I'm an experienced Python coder but I know the company would like me to be familiar with Ruby at our next meeting.

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
David Prager Branner | 30 Aug 00:02 2014
Picon

[Cucumber] [Ruby] exercises

I have been asked by a possible future employer to do "the exercises" on the cukes.info site. I see examples and I see a long list of tutorials, but I see nothing that I can believe is "exercises". Am I missing something?

If I'm not, can someone recommend a suitable tutorial for me, from among the many listed? I'm an experienced Python developer but I know I'm expected to be doing exercises in the Ruby version of Cucumber. I am aware of these Cucumber-like tools for Python, but right now I'm asking for suggestions for what the company may have intended in the way of "exercises" for Ruby-Cucumber. It's the start of a long holiday weekend in the U.S., and I know I can't reach the company again for several days.

Thanks for your help.

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Theo Marco | 29 Aug 17:51 2014
Picon

[Cucumber] Annoying deprecation warning

Hi Guys,

I am seeing this annoying deprecation warning in a step definition file:

*** DEPRECATION WARNING
*** You are calling a method named option at ../browsing_steps.rb:130:in `select_options'.
*** This method does not exist in page-object so it is being passed to the driver.
*** This feature will be removed in the near future.
*** Please change your code to call the correct page-object method.
*** If you are using functionality that does not exist in page-object please request it be added.


The line 130 in browsing_steps looks like this:

while <at> current_page.select_option_element.option(:index => opt_index).disabled do
...
...
end

The product_option_element points to a PageObject::Elements::SelectList
What am I doing wrong?

Please help, as this has been annoying me for months now.

Sincerely appreciate all your help her.

Thanks

Marco

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Matt Wynne | 29 Aug 17:16 2014
Picon

[Cucumber] [Ruby] Cucumber-Ruby 2.0.0.beta.2 released!

See https://cucumber.pro/blog/2014/08/29/cucumber-2-beta-2.html

Have a nice weekend!
Liviu Carausu | 28 Aug 23:33 2014
Picon

[Cucumber] Cucumber Jvm: Method examples() of gherkin.formatter.Formatter interface not called from JUnit tests

Hi,
  I try to implement a custom Formatter for Cucumber Jvm.

  When starting the test with Runtime.run() the examples() method of the Formatter interface is called but when running with the JUnitRunner,
the examples() method is not called.

  When starting the test using the Runtime.run() , this is my stack trace :
    at my.class.implementing.Formatter.examples()
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at cucumber.runtime.Utils$1.call(Utils.java:34)
    at cucumber.runtime.Timeout.timeout(Timeout.java:13)
    at cucumber.runtime.Utils.invoke(Utils.java:30)
    at cucumber.runtime.RuntimeOptions$1.invoke(RuntimeOptions.java:172)
    at com.sun.proxy.$Proxy18.examples(Unknown Source)
    at gherkin.formatter.model.Examples.replay(Examples.java:56)
    at cucumber.runtime.model.CucumberExamples.format(CucumberExamples.java:45)
    at cucumber.runtime.model.CucumberScenarioOutline.run(CucumberScenarioOutline.java:43)
    at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:154)
    at cucumber.runtime.Runtime.run(Runtime.java:120)
    at cucumber.runtime.Runtime.run(Runtime.java:108)
    at cucumber.runtime.Runtime$run.call(Unknown Source)

  So, everything starts with Runtime.run() , method which has as comment the following lines :

  /**
     * This is the main entry point. Used from CLI, but not from JUnit.
     */

   When starting with jUnitRunner, I have found no clue when my Example starts ...

  Does somebody please have an ideea how to deal with the Examples in the Formatters with JUnit ?


   Thanks,
     Liviu

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Heather Poole | 28 Aug 14:40 2014
Picon

[Cucumber] [RUBY][JAVASCRIPT] Cucumber test environment doesn't allow javascript to run

So continuing on with my development and testing and I continue to have an issue with javascript in my test environment.

Items like the alert/confirmation for a destroy link simply do not appear in when going through the test environment but work absolutely fine in the development and production environment.  I mean i am simply having to scoot around a test or two simply because it won't work so therefore i am forced to manually check that it works.

Is there something I am not looking at which is preventing javascript running in the test environment in rails 4?

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Jhonny E. | 28 Aug 10:33 2014

[Cucumber] [js] get the result of a feature in an after hook

I want to determine, after each feature, whether it has succeeded or not (in an 'AfterFeature' hook).
( I want to do this in order to delete the feature data from our DB if the feature passed, and leave it there for inspecting if it failed).

I wasn't able to find anything in the AfterFeature event handler to help me (the event object or the feature object).
any ideas?

I have a couple ideas on how to do this-
1. implement a listener that would listen to failed steps and scenarios, basically a copy of the StatsJournal listener
2. implement a visitor to visit the feature object on completion, but-  I don't think I understand the visitors mechanism well enough (looks like a step is executed for each visitor?), and I don't see where I can get the info on the step / scenario / feature result in that way.
but I'm sure there's a much easier way I'm missing here.

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Min Wang | 28 Aug 04:23 2014
Picon

[Cucumber] [JVM] Cucumber setup and tear down environment

would like to setup an environment, say create servers on Rackspace, before running Scenario Outline Examples, and then destroy the environment, say delete the servers that are created on Rackspace, after test cases are finished, it doesn't matter they are successful or failed.

I have tried to use Before and After, but it seems that it will create and then destroy the servers when it runs every single test case in Examples, what I want is creating the environment for all the cases in Scenario Outline Examples, not just every single one, and then delete it after all the test cases in Examples are done.

This is my code:

Feature: Radius Authentication
#Creating servers for the test cases below in the env.rb

<at> wip Scenario Outline: When the user authenticates <User> with different <MAC> <NAS-ID> via RADIUS
Then the user <User> should be logged in

Examples:
|User| MAC | NAS-ID |
| b1 |C0FFEE15F001 |testing-0 |
| b2 |C0:FF:EE:15:F0:02|testing-0 |
| b3 |C0-FF-EE-15-F0-03|testing-0 |
| b4 |C0FF.EE15.F004 |testing-0 |
| b5 |C0:FF:EE:15:F0:05| - |

#Deleting servers after the test cases above are done in the env.rb
 

Thanks in advance.

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Atmaram More | 27 Aug 13:21 2014
Picon

[Cucumber] [Ruby] Setting OS environment in steps file.

currently i have cucumber on local server so i have written OS-LOCAL=Type=OS for environment.

Now i want to one of the executable present on other unix server. when i am trying to execute that step i am getting below error.
Caused by: java.io.IOException: Cannot run program "cfg": CreateProcess error=2, The system cannot find the file specified

here cfg is executable name. 

van anybody tell me how to set environment so that i can run that executable from same steps.properties.

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Matt Wynne | 22 Aug 17:26 2014
Picon

[Cucumber] [Ruby] Cucumber-Ruby 2.0.0.beta.1 released!

In the great tradition of shipping things on a Friday afternoon, I’ve decided to release the first beta of Cucumber 2.0 just as I leave for the weekend!

We’re down to two, rather obscure, failing scenarios[1][2] in the master branch of Cucumber, and I’ve decided it’s time to get your feedback.

We’ve done our best to make Cucumber 2.0 entirely backwards-compatile with 1.0, so *in theory* you should be able to swap it in and get back to work.

Why would you want to upgrade? Cucumber 2.0 contains a re-write of the internals of Cucumber that runs your tests. We think the new model is much better, and less prone to those odd second-background-with-a-scenario-outline-on-a-tuesday type bugs we’ve had to tolerate on the current production version. Also you can —randomize your scenarios[3]!

This release is the future of Cucumber, and the sooner you can test it and help us iron out the remaining bugs, the sooner we can ship it!

This release has been something like 18 months in the making, and I’ll be amazed if we haven’t missed a lot of edge cases that aren’t covered by our test suite. So over to you, kindly cukers.

To install it, just change your Gemfile entry to:

    gem ‘cucumber’, ‘2.0.0.beta.1'

If you think you’ve found a bug, please raise an issue[4]. The best issues come with clear, concrete steps to help us reproduce the bug. Actually the best issues come as a pull request, with a tested fix!

A massive thanks to Tooky, Bjorn, Tom and everyone else who’s helped to get this release out. It’s been a massive piece of work, and this is a big milestone.

Wenxuan Zhou | 21 Aug 18:04 2014
Picon

[Cucumber] [Clojure] Unable to resolve symbol: Given in this context

Hi, I am new to cucumber and have written a cucumber step definition file in Clojure which works fine with its feature file counterpart, and by running "lein cucumber" it outputs what I expected(and Jerkins is also happy about that) . However when I try to compile the step definition file using the "headless REPL" in eclipse, I got an exception:

"Java.lang.RuntimeException: Unable to resolve symbol: Given in this context," 

Which suggested that the definition of cucumber keywords like "Given When and Then" are not found, I did searched in a few sample projects
like https://github.com/nilswloka/cucumber-jvm/blob/new-clojure-example/examples/clojure_cukes/test/features/step_definitions/cuke_steps.clj

However for the "import bit" it has only 

(use 'clojure-cukes.core) (use 'clojure.test)
Which doesn't really have the the definition of those keywords in it. And supposedly I need to find the file which the cucumber keywords are defined. Could anyone give me some pointers on that? Thanks!

Regards,

Wenxuan

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Gmane