ruby on rails - How to write common gherkin for Given,And,Then in cucumber -


I have to write a definition that is applicable and then, given. What format is that?

Cucumber really does not care that you have "given", "and", "when "Or" then "

For example:

A feature: Basically any step given with any given / and / when / again mailing regex will call definition , Whether it says / and / when / again says. All given / and / when / then using the same regex:

  Feature: Shared step scenario: and then the normal steps given and the normal steps when the normal steps are then the general step   

A single step definition that corresponds to regex:

  given / normal step does 'shared phase' end   

gives the following result, which indicates that all are using the same phase definition, even if the definition of the phase is 'given':

  Scenario: And then when the normal step # features / step_definitions / steps.rb: 1 shared / normal step # gestures / step_definitions / steps.rb: 1 shared step when viewing #quality test test.feature: 3 Common Step # Features / Step_definitions / steps.rb: Shared steps 1 General step # Features / step_definitions /steps.rb:1 Shared step 1 scenario (1 location d) 4 steps (4 passes) 0m0.011s    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -