Tawus | 4 Aug 11:27 2015
Picon

[Cucumber] [Clojure] ANN: cucumber-alt, an alternate clojure interface for cucumber.

Hi Everyone,

Happy to announce an alternate clojure interface (library and a lien plugin) based on the core clojure support in cucumber (and lein-cucumber of-course)

Here is the repository


As I am new to cucumber, I might not be doing it the right way. So, any feedback is really welcome :) 

Please Note: It is just an initial attempt and things might change as I learn and use cucumber in future projects.

Thanks
Taha

--
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.
Aleksandar Kostadinov | 3 Aug 23:02 2015
Picon

[Cucumber] custom scenario filtering

Hello,

we want to track scenario selection based on a custom filter (that looks at an external system to get a list of scenarios). Is it possible to somehow hook our custom filter to cucumber ideally only changing `config/cucumber.yml`?

Any suggestions appreciated.

--
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.
Naren Nala | 2 Aug 00:49 2015
Picon

[Cucumber] Regex Help (would like to give caller the flexibility to either pass two specific words or not)

I define the step definition as follows:

the assertion for user(\\d+) (?:of account(\\d+)) has been created as (.*)

In the above highlighted regex, I am expecting that the whole string, for example, "of account2" can either be passed or completely skipped as follows:

the assertion for user1 has been created as org1.

In this case, I get the error asking for its implementation. Why is cuke not able to match the above call to the above step definition ? What am I missing ? Please let me know. 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.
Atali Daoud | 31 Jul 17:59 2015
Picon

[Cucumber] Support Espresso 2.2

Hello Guys,


I am trying to use Cucumber with Espresso 2.2, I have seen the documentation about the previous version of Espresso and Cucumber.
https://github.com/cucumber/cucumber-jvm/tree/master/android



But I didn't manage to run cucumber with the new release of Espresso:
now they use android.support.test.runner.AndroidJUnitRunner and annotation <at> RunWith(AndroidJUnit4.class)


You can check :
https://code.google.com/p/android-test-kit/wiki/EspressoSetupInstructions


Any advice or samples ?


--
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.
VIDYA SAGAR POGIRI | 31 Jul 09:54 2015
Picon

[Cucumber] Reg:Writing DRY steps in cucumber steps

Hi I.m new to cucumber so i need some help regarding the writing the Dry steps in cucumber scenarios and step definitions.Kindly help me.

--
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.
rakesh | 30 Jul 22:20 2015
Picon

[Cucumber] Clarity on cucumber best practices

Hi,

quite a few heavyweights in our industry (Martin Fowler, Uncle Bob, JB Rainsberger) have stated that testing your app through the UI is a bad thing.

I watched a youtube video with Matt Wynne the other day, where I think he was saying the same thing (at a Selenium conference!).

I don't think I need to say why they are bad (but will if its challenged).

So my question is why does cucumber make it so easy to do this? I have worked in numerous teams where they do this, thinking somehow its ok to do since there are soo many articles showing Cucumber with Appium/Selenium, etc.

I now work in Android development. When I looked at cucumber-android I saw that is uses Espresso. In order to use Espresso, you need a device/emulator. This is no different to testing web apps through a browser.

Just for the record, I believe that the best role for cucumber is to test the business rules, independently of the platform the app will run on (web, mobile). I'm talking about the Onion/Ports and Adapters architecture.

Regards

Rakesh

--
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.
SPK | 29 Jul 08:42 2015
Picon

[Cucumber] Before/After hooks for multiple feature files run one after the other

Hi,

I am new to cucumber and have created a java code using cucumber.

I created two different feature files. For both the features files, I have a corresponding step definition files, each having a Before and After hook.

When I run the code, I observed that before hook for one step file is called and then immediately before hook for the other step file is called, see output below

<at> search
Feature: Search for a part
BeforeResult
BeforeHome
AfterResult
AfterHome

  <at> search
  Scenario Outline: ...
  Given ...
  When ...
  Then ...


Any explanation for the above behavior as I expected the output to be
<at> search
Feature: Search for a part
BeforeHome
AfterHome

  <at> search
  Scenario Outline: ...
  Given ...
  When ...
  Then ...

Regards,
SPK

--
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.
SPK | 29 Jul 08:38 2015
Picon

[Cucumber] Before/After hooks for multiple feature files run one after the other

Hi,

I am new to cucumber and have created a java code using cucumber.

I created two different feature files. For both the features files, I have a corresponding step definition files, each having a Before and After hook.

When I run the code, I observed that before hook for one step file is called and then immediately before hook for the other step file is called, see output below

<at> search
Feature: Search for a part
BeforeResult
BeforeHome
AfterResult
AfterHome

  <at> search
  Scenario Outline: ...
  Given ...
  When ...
  Then ...


Any explanation for the above behavior as I expected the output to be
<at> search
Feature: Search for a part
BeforeHome
AfterHome

  <at> search
  Scenario Outline: ...
  Given ...
  When ...
  Then ...

Regards,
SPK

--
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 | 29 Jul 07:58 2015
Picon

[Cucumber] [ANN] Gherkin3 released

Are you building Cucumber-related tooling?

I'm pleased to announce that Gherkin 3.0.0 has been released!
https://github.com/cucumber/gherkin3

* JavaScript: https://www.npmjs.com/package/gherkin (lots of dependants already!)

The following are ready to be released as soon as we figure out how to do it:


Thanks to everyone who made this happen. I'm super excited about rolling it into the various Cucumber implementations. That won't mean much to most users, but it will make the installation of Cucumber/Gherkin a lot easier on Ruby/Windows. And it will make life a lot easier for all Cucumber developers and people who build tools around Gherkin and Cucumber.

Aslak

--
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.
pravinrane.study | 24 Jul 17:09 2015
Picon

[Cucumber] Running Cucumber jvm, Cucumber Spring from Multiple Threads

Hi,

I am using cucumber jvm with spring integration. I need to run same scenario on multiple browsers. I was trying to kick of multiple Cucumber tests using threads. I see that multiple spring context are instantiated. I have bean factory which understands about thread and created appropriate  beans with appropriate browser specific details (login details, browser driver etc). Below is a snippet how i am starting multiple cucumber tests.

public class SuitRunner {
public static void main(String[] args) {
Thread t2 = new Thread(new Runnable(){
public void run(){ JUnitCore junit = new JUnitCore(); junit.run(RunAdminRegression.class);
}
});

t2.setName("firefox"); t2.start();

Thread t2 = new Thread(new Runnable(){ public void run(){ JUnitCore junit = new JUnitCore(); junit.run(RunAdminRegression.class);
}
});

t2.setName("chrome"); t2.start(); }
}

After running cucumber tests i realized that cucumber is creating only one instance of StepDefinition class though multiple spring context were loaded.
I was going with the assumption that if i start multiple instances of Junit runs for cucumber they will start acting independently.
I would really appreciate any insites, directions, suggestions around how to go about it.
Regards~Pravin

--
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.
alisnilreb | 21 Jul 18:30 2015
Picon

[Cucumber] Change selected

Hi everyone,

I need to select an option in a menu, for example the "model 1".
I tried unsuccessfully to do this. Someone can help me?

This is the html of the page:
[...]
<div class="btn-group bootstrap-select open dropup">

    <button class="btn dropdown-toggle selectpicker btn-default" data-toggle="dropdown" type="button" data-id="modelOptions" title="Model" aria-expanded="true">

    <span class="filter-option pull-left">

        Select model

    </span>
    <span class="caret"></span>

</button>
<div class="dropdown-menu open" style="max-height: 362px; overflow: hidden; min-height: 92px;">

    <ul class="dropdown-menu inner selectpicker" role="menu" style="max-height: 350px; overflow-y: auto; min-height: 80px;">

                <li class="selected" data-original-index="0">
                    <a class="" data-normalized-text="<span class="text">Select model</span>" tabindex="0"></a>
                </li>
                <li data-original-index="1">
                    <a class="" data-normalized-text="<span class="text"> Model 1 </span>" tabindex="0"></a>
                </li>
                <li data-original-index="2"></li>
                <li data-original-index="3"></li>
                <li data-original-index="4"></li>
            </ul>
        </div>
    </div>

</div>

Thanks, have a nice day!

Vale

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