Janine Roe | 30 Aug 15:46 2015
Picon

[Cucumber] Running Cucumber tests with Parameterized Junit?

Is it possible to use junits <at> RunWith(Parameterized.class)?
I need to run our tests with different browser configurations (i.e. IE8, IE9, IE10, IE11, FF, Chrome).
I have built out our test automation framework around the ability to run them parameterized WebDriver browser capabilities.
However adding Cucumber into the mix, I don't see how to keep this in place as to run cucumber tests you need the 
<at> RunWith(Cucumber.class)
And according to junit, you can't have multiple <at> RunWith options.

Has anyone had this same problem and if so is there a solution to accomplish this.

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.
Janine Roe | 30 Aug 16:05 2015
Picon

[Cucumber] Running Cucumber test with <at> Parameterized??

Is there a way to run cucumber tests with junit Parameterized? 
I have built out a selenium framework that allows you to run your tests in different browser configurations utilizing
<at> RunWith(Parameterized.class) functionality.

Adding Cucumber into the mix, uses  <at> RunWith(Cucumber.class) and according to Junit you can't have multiple <at> RunWith options.

So has anyone had this same scenario and if so how did they come up with a solution?


--
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.
damian.publicemail | 29 Aug 11:17 2015
Picon

[Cucumber] Structure of json report file

Hi,

I'm parsing json report file and to make this correctly I need to know what is the structure of this file. I found difference between what I have in sample json file and what is in someone's report.

Where can I confirm if my report is correct or someone's or structure has changed between versions?

Thanks,
Damian

--
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.
sree | 27 Aug 19:28 2015
Picon

[Cucumber] Selenium Webdriver+Cucumber+Eclipse_Sequential TestExecution

Hi,

I'm new to Selenium webdriver and would apologize if my question doesn't make sense but would every effort to make
it as clear as possible.

Currently I'm building out Project in Eclipse using Cucumber+Java. I have a single feature file, runner and java class(Step Def) which
run perfectly fine when executed.

My question is if we have two feature files and two different Javaclasses(Step Defs) how can i run two feature files sequentially. Typically
it should follow like this


-------------------------
google.feature
googe.java


Yahoo.feature
Yahoo.Java

---------------------------------------
I would like to have a runner which could start executing 'google' and after it is completed it will execute 'Yahoo' bucket.


Is this possible.If so how can I set it up.

--
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.
erwin.entwickler | 25 Aug 19:28 2015
Picon

[Cucumber] [ANN] Aruba 0.9.0 released

We are pleased to announce `aruba` version 0.9.0. For a detailed list of
changes, please have a look at our
[`History.md`](https://github.com/cucumber/aruba/blob/master/History.md) or use
the diffing feature of
[Github](https://github.com/cucumber/aruba/compare/v0.8.0...v0.9.0).

## Notable Changes

### Add console

Now `aruba` includes a console to play around with it's API. You can start the
console by running `aruba console` in your commandline.

### Add documentation

Starting with `0.8.0` we added more and more documentation to `aruba` - and
more is about to come. We also decided to use our very own `cucumber`-steps to
document how to use `aruba`.

### Replace all "assert_*"- and "check_*"-methods by "RSpec"-matchers

With `0.9.0` all `assert_*`- and `check_*`-methods are replaced by
"RSpec"-matchers internally and the old methods are labeled as deprecated. It's
recommended to use our new matchers.

### New "cucumber"-hooks

We added a new ` <at> announce-output`-hook which outputs both, `STDERR` and
`STDOUT`.

### New matchers

There are new `RSpec`-matchers to check the output &ndash; `STDOUT`, `STDERR` or
both &ndash; of a command.

### Access to commands

Now you've got access to the last command started by using
`#last_command_started`. Additionally there's a `#last_command_stopped`-method
as well.

### Logging with aruba

We added a logger to our API. It's available via `#aruba.logger`.

### Report file size and disk usage

Using `#file_size` you can gather information about the size of a file. This
works more or less similar to `ls -al` on UNIX/Linux-operating systems. `#disk_usage`
reports the amount space allocated on the disk. Be aware, that the value of
both methods is different for sparse files. The `#disk_usage` is a
UNIX-/Linux-only method. The methods used internally are not implemented by
Ruby Core on Windows.


### Split Up of "unescape"-methods

We decided to split up `#unescape` into `#extract_text` and `#unescape_text`.
The first method removes all ANSI escape sequences and the latter converts
newlines and the like given as escaped strings into valid strings &ndash; '\n'
&#8594; "\n".

### Working around a Bug in JRuby

In JRuby <= 1.7.21 and 9.0.0 there's a
[bug](https://github.com/jruby/jruby/issues/3162) which cause problems when we
cleaned up the `ENV`. We added a workaround for that.

### Running commands

Now we make the process started via `SpawnProcess` the leader of the group to
kill all sub-processes more reliably.

### Changes to options handling ANSI escape sequences

Please use `aruba.config.remove_ansi_
escape_sequences` or `Aruba.configure {
|config| config.remove_ansi_escape_sequences = <true|false> }` instead of
`...keep_ansi`.

## Known issues

### Windows

There are still failing tests of our test suite on Windows. We're working on
that.

## Upcoming changes

### Better documentation

We're going to improve our documentation. Starting with `0.10.0` or `0.11.0`
you can expect to find our documentation on
[relish](http://www.relishapp.com/). So please stay tuned.

### Extend "aruba" command

We're going to add some kind of initializer to the `aruba`-command. `aruba
init` can be used to create all files needed to use `aruba` within your
project.

--
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.
knoll2roll | 26 Aug 18:03 2015
Picon

[Cucumber] [CucumberJVM] [CUKE] RegEx used for Scenario Outline variables

Hi Guys,

I was wondering what the ReqEx would be in the step definition stub for finding this value:

hacking(is.very(bad))

My scenario outline looks like this:

Scenario Outline: A test
  Given I am about to do a search for "<searchTerm>"
  Then I can see the correct results

Examples:
  | searchTerm              |
  | hacking(is.very(bad))  |

I have tried to use \"(.*)\" in my step definition stub but what gets entered into the search box is:
bad)).

Full step definition stub is:
<at> Given("^I am about to do a search for \"(.*)\"$)

The beginning part does not get entered in or captured.

Would anyone out there be able to help me correct what i need to write in my step definition stub??????

Any help would be great or suggestions. i have tried many different regex stubs but have been unsuccessful. 

kind regards and thank you for your help,
Knoll


--
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.
knoll2roll | 26 Aug 12:18 2015
Picon

[Cucumber] Scenario Outline not reading in full text if it contains brackets

Hi Guys,

Really weird behaviour that i have not previously experienced before.

Here is my Scenario:

Scenario Outline: Testing 123
  Given I have a browser
  Then I can search for "<searchTerm>"

Examples:
  | searchTerm |
  | cars trains   |
  | cars(trains)  |

The first search term is fully entered into the search box.
but the second search term is not. What gets entered into the search box is: trains) ONLY.
The first part cars( is missing.

Does anyone know why this happens? and how i can rectify this so that the full text cars(trains) is entered into the text box?

Much appreciated,
Knoll

--
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.
aslak hellesoy | 25 Aug 15:48 2015
Picon

[Cucumber] Cucumber School free previews

Hi all,

Lots of people told us they wanted to see previews of the Cucumber School videos, so they knew what they were buying. Makes sense, so all videos have previews now (and the first one is free).


It's a total of 170 min of video, and each minute took us 3.5 HOURS to make (that's writing the script, recording the audio and the video and lots of other tidbits).

Enjoy!

Aslak, Matt and Julien

--
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.
Anthony Green | 25 Aug 11:29 2015
Picon

[Cucumber] Cucumber in Docker containers

Any plans for some official cucumber containers on Docker hub?

--
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.
Ryan Bedino | 24 Aug 16:40 2015
Picon

[Cucumber][JS] Console Output Not Verbose...by Design?

Just out of curiosity, my console output is similar to:

1 scenario ( [32m1 passed [0m)
13 steps ( [32m13 passed [0m)

It doesn't say nearly as much as, say, the Java flavor of Cucumber execution. Is this by design, or am I missing something that could be make this more verbose?

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.
Anurakti Nigam | 22 Aug 15:03 2015
Picon

[Cucumber] initializationError : java.lang.NoClassDefFoundError

I'm running Cucumber Test.

Properties in my pom.xml

        <properties>
               
<outputDir>tests</outputDir>
               
<junit.framework.version>4.11</junit.framework.version>
               
<org.aspectj.version>1.6.8</org.aspectj.version>
               
<org.springframework.version>4.1.0.RELEASE</org.springframework.version>
               
<org.apache.batik>1.6</org.apache.batik>
               
<org.hibernate.version>4.3.6.Final</org.hibernate.version>
               
<!--<org.hibernate.annotation.version>3.3.1.GA</org.hibernate.annotation.version>-->
               
<org.codehaus.jackson>1.9.4</org.codehaus.jackson>
               
<com.sun.jersey>1.7</com.sun.jersey>
               
<jmockit.version>1.13</jmockit.version>
               
<nextag.custom.version>UNKNOWN</nextag.custom.version>
               
<com.sun.grizzly>1.9.9</com.sun.grizzly>
               
<org.eclipse.birt>2.6.2</org.eclipse.birt>
               
<info.cukes.version>1.1.5</info.cukes.version>
               
<main.basedir>${project.basedir}/../main</main.basedir>
               
<cucumber.basedir>${project.basedir}/../cucumber-temp</cucumber.basedir>
               
<traffic.hadoop.version>2.0.0-cdh4.1.2</traffic.hadoop.version>
               
<spring.boot.version>1.1.6.RELEASE</spring.boot.version>
               
<querydsl.version>3.5.0</querydsl.version>

       
</properties>


When i run my test using below command, it got failed with an Exception.

 mvn clean integration-test -Djob.allowed.max.runtime.in.ms=60000000 -Dcucumber.options="--format pretty --format html:target/cucumber/cucumber-html1 --tags <at> tool --glue classpath:data src/test/resources" -Djob.host.name=v-tauto3 -Dsurefire.report.location=target/result1/ -Prepo-nexus-sm -Djob.log.debug=true -Dis.a.corp.machine=true -e


initializationError(com.wizecommerce.traffic.RunCukesTest)  Time elapsed: 0.007 sec  <<< ERROR!
java
.lang.NoClassDefFoundError: org/apache/hadoop/hbase/client/HConnectable
        at java
.lang.Class.getDeclaredMethods0(Native Method)
        at java
.lang.Class.privateGetDeclaredMethods(Class.java:2521)
        at java
.lang.Class.privateGetPublicMethods(Class.java:2641)
        at java
.lang.Class.getMethods(Class.java:1457)
        at cucumber
.runtime.java.MethodScanner.scan(MethodScanner.java:40)
        at cucumber
.runtime.java.JavaBackend.loadGlue(JavaBackend.java:73)
        at cucumber
.runtime.Runtime.<init>(Runtime.java:89)
        at cucumber
.runtime.Runtime.<init>(Runtime.java:67)
        at cucumber
.runtime.Runtime.<init>(Runtime.java:63)
        at cucumber
.api.junit.Cucumber.<init>(Cucumber.java:64)
        at sun
.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun
.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun
.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java
.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at org
.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:29)
        at org
.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:21)
        at org
.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
        at org
.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
        at org
.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
        at org
.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26)
        at org
.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:234)
        at org
.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)
        at org
.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)
        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 org
.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
        at org
.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
        at org
.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
        at org
.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
        at org
.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.client.HConnectable
        at java
.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java
.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java
.security.AccessController.doPrivileged(Native Method)
        at java
.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java
.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun
.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java
.lang.ClassLoader.loadClass(ClassLoader.java:357)
       
... 32 more


--
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