phil.kursawe | 27 Apr 03:48 2015
Picon

[Cucumber] 2 scenarios (Phone and Desktop), none of them should fail but one silently skip

I have to test my app for phone and the desktop/tablet. Since it behaves slightly different on both platforms one feature may have different scenarios.
So I guess I will describe 2 scenarios, one for the phone and one for the other platforms.

Scenario:
  Given I am using a phone

Scenario:
  Given I am not using a phone


Both scenarios should run, but one should silently skip (but not fail) depending on the first step. I know I could set the stop to "pending" but I am not sure that this is the smartest way to do that.

Any ideas?

--
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.
Mark Olliver | 24 Apr 17:47 2015
Picon

[Cucumber] How to state OR in a test

Hi,

I am looking to use Gherkin/Cucumber to check is servers that are provided to me meet predefined settings before I accept them to work on.

For example one test I want to do is check if the server has a supported OS from a list of versions that I support. Looking at it normally this would be a scenario with a table of options, but as far as I could tell that would then run a test for each scenario which would see at best all bar one fail whereas If one combination passes then the test is a pass as you can not have all the supported OS's on the same server. 

My issue is I am unsure how to define this as a test. So far I have:

Feature:
  Scenario: Check Supported OS
  Given a file named "/etc/redhat-release" exists
  When I read the contents
  Then I see one of "CentOS 6.5|CentOS 6.6|Redhat 6.5|Redhat 6.6"

Thanks

Mark

p.s sorry if this issue appear twice but it looks like my first attempt did not appear.

--
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.
Mark Olliver | 24 Apr 17:36 2015
Picon

[Cucumber] How do I specify OR in a Feature

Hi,

I am looking at using Gherkin/Cucumber to check machine setups pre-install to ensure they meet desired specification. Due to this there could be a range of valid options. Example

Feature:
  Scenario: Check OS is supported by us
    Given A file name "/etc/redhat-release":
    When I read the content
    Then if one of Centos|Redhat|OEL 6.[5|6]

So if the machine is of a Redhat based distro and the version is 6.5 or 6.6 then the test should pass, obviously I dont want to run the test for each release combination as only one could pass and I would get a lot fail. Ideally I would want to supply a list of supported releases as we could say we support X rhel based releases and Y debian based ones but anything outside of that list should fail the test.

Thanks

Mark

--
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.
Muhammad Khan | 24 Apr 06:38 2015
Picon

[Cucumber] Need to learn Java Script

Hi, 

I'm a manual tester, and would want to jump in automation. And for that I want to learn Java Script (not Java). Can somebody please help me out a website where I can learn it from. w3school.com is good but I would wanna learn from the scratch. 

Any help will highly 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.
Rinky Mangal | 24 Apr 09:32 2015
Picon

[Cucumber] [JVM] How can I create a cucmber datatable having an object in one of the datatable column ?

Hi All,

I have a feature file say:

         Given user adds following details:
             |user_name |User_details                                                                                             |
             |xyz_user    |details{firstName=firstname, middleName=middileName, lastName=lastname} |

I want to map it to say:

    <at> Given ("^user adds following details:$")
    public void createUser(final String List<Users> users) throws Throwable { }

Where,
Users is the pojo like:

class Users {
    private userName;
    private Details details;

   // Along with the setters and getter
}

Here Users is further having an object reference "Details".

How to create and handle such datatables having an object in one of its column?

I tried to create the DataTable with:
        DataTable.create(usersList);
But it create the datatable with one one property. Like:

             |user_name |User_details |
             |xyz_user    |firstname     |

But i want the complete object.

Is there any way to do this?

Regards,
~Rinky

--
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.
sudhakar nallamaru | 22 Apr 17:58 2015
Picon

[Cucumber] Installation as standalone

HOw would business users create / modify a feature file with out using any developer IDE which they dont have access to?
 
Thanks in advance
sudhakar

--
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.
grumbler_chester | 21 Apr 16:17 2015
Picon

[Cucumber] [JS] Table parameter data transformation

Hello
For example I have next simple scenario step with data table parameter:
Scenario: The simplest scenario
 
Given next data is available:
   
| value |
    | null  |
    | 1     |

Here is step definition:
this.Given(/^next data is available:$/, function (data, callback) {
 
console.log('data:', data.hashes());
  callback
();
});

As a result I get next data values:

data: [ { value: 'null' }, { value: '1' } ]


The question is: how to perform data transformation to get data in next form:

data: [ { value: null }, { value: 1 } ]

 
It there a way to perform data conversion from strings to real values? Are there available any escape option or data transformation utils out of the box?

PS.: I now the way below and I want to avoid it. I do not want to iterate trough collection and update data manually like this:
this.Given(/^next data is available:$/, function (data, callback) {
 
var dataNew = [];
 
for (var i = 0; i < data.hashes().length; i++) {
   
var item = data.hashes()[i];
   
if (item.value === 'null') {
     
item.value = null;
   
} else {
     
item.value = parseInt(item.value);
   
}
   
dataNew.push(item);
 
}
 
console.log('data:', dataNew);
  callback
();
});



--
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.
Roberto Lo Giacco | 21 Apr 12:19 2015
Picon

Re: [Cucumber] Thoughts on layout testing

Il giorno lunedì 20 aprile 2015 21:07:12 UTC+2, apremdas ha scritto:


On 20 April 2015 at 19:30, Cuker <rahulsh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Just want to know what people using cucumber for a front end project do to test how a website looks. Cucumber scenarios for such projects are mainly functional. So if a link moved from top to bottom the test would still work functionally. Of course one can identify links in selenium using scopes but only for cases where it really matters and even in those cases, the scoping is not too strict. Most of my stakeholders ask QAs to write tests that would tell you if for example a heading was not present or the position of fields in a registration form moved up or down etc. Of course all of these things can be tested in a number of ways but writing tests to such level of detail (for text, images etc) could be an overkill. At the end of the day such requirement only come in from stakeholders because they would like to be alerted if something has changed and not because it is very important for customers in most cases. I know there are tools that would allow screenshots to be compared with baseline images etc. Then there's also an argument that one could test styes by accessing style attributes of the elements. But then again, this can't be done for everything and screenshot comparison doesn't seem a great solution. So, in short, how do people make sure that if Address line 1 moved below Address line 2 in a registration form for example?

Personally I don't, the cost of writing, and even more so, running such tests is just not worth it. Cucumber is best used for validating/assesing the functionality of a website, i.e. WHAT you can do, not HOW you do it.

Fundamentally if you want to ensure you have a pretty and consistent front end you need to have real people using that front end frequently. Some good people to do this are

1. Users, (of course you have to make it easy for them to give you feedback, and reward them for this)
2. Stakeholders, customer, product owner
3. Designers
4. Front end devs
...

A good way to ensure this happens is to deliver to production as frequently as possible.

 I agree on all the line

--
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.
Samuel S | 21 Apr 01:57 2015
Picon

[Cucumber] A way to get Rerun scenarios to no longer show up as failures in the reports

Hi all,
The option to rerun failed tests at the end is useful, but I don't see way for it to properly report the results.

Expected Result: If I run 5 tests during the first round and 1 fails... then the second round that I run it, AND the failed test passes, then the results should show all 5 tests as passing

Actual Result: The results overwrite each other instead of smartly appending to the past results, so the result now only shows that 1 test passed and ignores the fact that 4 other tests passed during the previous run.

mvn -e verify -Pintegration-tests -Dcucumber.options=" <at> rerun.txt"


<at> RunWith(Cucumber.class)
<at> CucumberOptions(format = {"rerun:rerun.txt", "com.trulia.infra.WebDriverInitFormatter",
"json:target/cucumber.json","html:target/cucumber"})
public class RunCukesIT {
}

Advice about this 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.
Cuker | 20 Apr 20:30 2015
Picon

[Cucumber] Thoughts on layout testing

Just want to know what people using cucumber for a front end project do to test how a website looks. Cucumber scenarios for such projects are mainly functional. So if a link moved from top to bottom the test would still work functionally. Of course one can identify links in selenium using scopes but only for cases where it really matters and even in those cases, the scoping is not too strict. Most of my stakeholders ask QAs to write tests that would tell you if for example a heading was not present or the position of fields in a registration form moved up or down etc. Of course all of these things can be tested in a number of ways but writing tests to such level of detail (for text, images etc) could be an overkill. At the end of the day such requirement only come in from stakeholders because they would like to be alerted if something has changed and not because it is very important for customers in most cases. I know there are tools that would allow screenshots to be compared with baseline images etc. Then there's also an argument that one could test styes by accessing style attributes of the elements. But then again, this can't be done for everything and screenshot comparison doesn't seem a great solution. So, in short, how do people make sure that if Address line 1 moved below Address line 2 in a registration form for example?
 

--
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.
Ayesha Hassan | 20 Apr 14:23 2015
Picon

[Cucumber] Integration of bamboo with cucmber-jvm

Hi,

I need to make plans on bamboo to run cucumber junit tests. Repository containing the project code exists on stash. How do I integrate cucumber with bamboo such that when test cases are added/modified all test cases are run on bamboo. Can I get a plugin?

Thanks,
Ayesha Hassan

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