cucumber

Is it possbile to have a null value on Example table on Cucumber Scenario Outline? [duplicate]

左心房为你撑大大i 提交于 2020-01-14 22:44:52
问题 This question already has an answer here : Cucumber Scenario Outline: Passing empty string “ ” as value in Examples table (1 answer) Closed 2 years ago . Here is my example table on my scenario outline, some does not have value, is this possible? Examples: |ID | UserName | Password | Contact1 | Number | |ID1 | username1 | password1 | Phone | 111 222 4444 | |ID2 | username2 | password2 | | | |ID3 | username3 | password3 | Email | a@a.com | |ID4 | username4 | password4 | | | 回答1: The empty

Is it possbile to have a null value on Example table on Cucumber Scenario Outline? [duplicate]

余生颓废 提交于 2020-01-14 22:43:01
问题 This question already has an answer here : Cucumber Scenario Outline: Passing empty string “ ” as value in Examples table (1 answer) Closed 2 years ago . Here is my example table on my scenario outline, some does not have value, is this possible? Examples: |ID | UserName | Password | Contact1 | Number | |ID1 | username1 | password1 | Phone | 111 222 4444 | |ID2 | username2 | password2 | | | |ID3 | username3 | password3 | Email | a@a.com | |ID4 | username4 | password4 | | | 回答1: The empty

Can features be called from other features in Cucumber?

天涯浪子 提交于 2020-01-14 19:38:09
问题 I want to create a feature file that will call other feature files. Is this possible? For example, I'd like a high level feature file that says something like this (only in proper formatting): call feature1 call feature2 call feature3 and each call goes to a feature file containing, for example: Scenario Outline: Given this Then that And more So with this example, you'd have 1 high level feature file, with 3 lower level feature files. Each sub-feature will probably be a scenario outline.

Can features be called from other features in Cucumber?

隐身守侯 提交于 2020-01-14 19:38:06
问题 I want to create a feature file that will call other feature files. Is this possible? For example, I'd like a high level feature file that says something like this (only in proper formatting): call feature1 call feature2 call feature3 and each call goes to a feature file containing, for example: Scenario Outline: Given this Then that And more So with this example, you'd have 1 high level feature file, with 3 lower level feature files. Each sub-feature will probably be a scenario outline.

Reusing cucumber data tables

纵饮孤独 提交于 2020-01-14 13:58:47
问题 How to reuse cucumber test data across several scenarios or feature files? I would like to bypass table data code duplication. My current feature file: Scenario: At begining unable to click on first When On Sidebar page I click element basic table pagination And On PaginationTable page I click element first Then On PaginationTable page label pagination info value is Showing 1 to 13 of 1497 rows And I check table result pagination for PaginationTable page |noId|first_name|last_name|email| |1

Reusing cucumber data tables

喜夏-厌秋 提交于 2020-01-14 13:58:11
问题 How to reuse cucumber test data across several scenarios or feature files? I would like to bypass table data code duplication. My current feature file: Scenario: At begining unable to click on first When On Sidebar page I click element basic table pagination And On PaginationTable page I click element first Then On PaginationTable page label pagination info value is Showing 1 to 13 of 1497 rows And I check table result pagination for PaginationTable page |noId|first_name|last_name|email| |1

Cucumber: pipe output without losing color

余生长醉 提交于 2020-01-14 10:08:34
问题 I'm using cucumber to run some tests. It colorizes its output using ANSI escapes. This is great, but currently its producing more output than I care about, and shoving things I do care about off the screen. There doesn't seem to be a way to eliminate the other lines from within cucumber, but I can pipe the output through grep to pare down to the ones I care about. The downside of this solution, though, is that all the colors are lost. I know it's not my shell or grep's fault, because % echo "

Want to load seed data before running cucumber

淺唱寂寞╮ 提交于 2020-01-14 02:57:08
问题 I want cucumber to load my seed data in "db/seeds.rb" before starting to test. Not before each scenario or feature, but only once before running the tests. And also after each scenario, the seeds must remain in db. Is that possible? I've tried creating a file "features/support/seed_data.rb" and requiring my db/seeds.rb in there, but it seems that file is not loaded at all. I tried to require my seeds in env.rb - no affect. Please, can anybody suggest me the solution? Thanks in advance! 回答1:

Why does cucumber keep failling on jenkins, although tests pass?

时光怂恿深爱的人放手 提交于 2020-01-14 02:25:02
问题 My cucumber test work well on command line, but when I run them in Jenkins/Hudson continuous integration, I get the following, but am not sure how to fix it: 11 scenarios (3 skipped, 3 pending, 5 passed) 78 steps (51 skipped, 3 pending, 24 passed) 0m3.238s Build step 'Execute shell' marked build as failure Recording test results Failed to send e-mail to kamilski81 because no e-mail address is known, and no default e-mail domain is configured Failed to send e-mail to i.wooten because no e-mail

Why does cucumber keep failling on jenkins, although tests pass?

别来无恙 提交于 2020-01-14 02:24:46
问题 My cucumber test work well on command line, but when I run them in Jenkins/Hudson continuous integration, I get the following, but am not sure how to fix it: 11 scenarios (3 skipped, 3 pending, 5 passed) 78 steps (51 skipped, 3 pending, 24 passed) 0m3.238s Build step 'Execute shell' marked build as failure Recording test results Failed to send e-mail to kamilski81 because no e-mail address is known, and no default e-mail domain is configured Failed to send e-mail to i.wooten because no e-mail