Questions tagged [scenarios]

In Behavior-driven development (i.e. BDD), a scenario (also known as acceptance criteria) is a description of each specific case of the narrative.

See the Wikipedia entry for Behavior-driven development for more information about scenarios.

279 questions
3
votes
2 answers

Nested examples in cucumber scenario outline - List or Map values

I have recently seen a cucumber scenario outline like this. sorry for my bad example below. But the format is in this way. I really wonder if this type of format is supported by cucumber? The nested Data tables. Has any one used this type of nested…
npp
  • 45
  • 2
  • 6
3
votes
2 answers

Grouping steps or concatenating scenarios in Gherkin

I'm defining a feature to be used in a BDD workflow with tools such as Behat or Cucumber, using the Gherkin language. This is the feature definition so far: Feature: Save Resource In order to keep interesting resources that I want to view later …
swahnee
  • 2,661
  • 2
  • 24
  • 34
3
votes
2 answers

How to create scenario in Yii2 with no validation rules active?

I have MyEntity.php model. As a part of the model script, there are some rules and some scenarios defined: public function rules() { return [ [['myentity_id', 'myentity_title', 'myentity_content', 'myentity_date'], 'required'], …
delux
  • 1,694
  • 10
  • 33
  • 64
3
votes
2 answers

Use the same examples in multiple Cucumber scenario outlines

How do I structure tests for the following program: I'm writing a unit test framework for simulated combinatorial circuits. This framework will support multiple digital logic simulators (JLS, Logisim, TKGate, etc.) Thus, each test should be run…
Zack
  • 6,232
  • 8
  • 38
  • 68
3
votes
2 answers

Scenario outlines in Xamarin Test Cloud

I try to run my calabash tests on Xamarin Test cloud - I realized that there are problems with running Scenario outlines which contains Example table. Scenario Outline: Examine Landing Page #Given I open application Then I see the button…
3
votes
2 answers

UML scenario example

How are scenarios expressed? I think they're linked to use-cases but I'm not sure and I'm seeking some good examples or a document that can serve as a template.
James P.
  • 19,313
  • 27
  • 97
  • 155
3
votes
2 answers

Use Zabbix web scenario status for notification

I've created a web scenario with three steps within my zabbix installation. In case of an error I want to get a more detailed information about the error in the notification. I'm getting this: PROBLEM: www.mywebsite.tld.Fail : Failed step of…
Karl Ramseier
  • 31
  • 1
  • 3
3
votes
1 answer

Why multiple scenario are not working in Yii?

I am using multiple scenarios in my application but facing a problem that every time the last scenario overrides the first one. Model: public function rules() { return array( [...] array('cost_spares', 'cost_spare_func', 'match', …
Kapur
  • 173
  • 3
  • 10
3
votes
1 answer

Multiple scenarios within a specification feature file?

After having gotten more comfortable in Behaviour-Driven Developement using SpecFlow, I was wondering about having multiple scenarios for the same feature as follows: Register.feature Feature: Register a new user In order to use the system, …
Will Marcouiller
  • 23,773
  • 22
  • 96
  • 162
3
votes
2 answers

Specflow - Correct way to test grid data

So in my application I have grid with a list of all users registered to site. Now I would like to test it using specflow and WatiN. I came up with following scenario: Scenario: List of users Given I am logged in as "Admin" user And There…
mersadk
  • 337
  • 5
  • 19
3
votes
2 answers

readonly textfield using scenarios yii

How can I disable textfield using scenarios in yii? I have 3 classes of accounts superadmin, admin and normal users. All 3 classes of users have access to update information about them but one of the field accountId can be updated by superadmin and…
prattom
  • 1,625
  • 11
  • 42
  • 67
3
votes
1 answer

Using hooks in Feature files in Specflow

For me to execute something at the TestRun, Feature, Scenario or Step level.. I understand we can use Hooks. What i would like to find out is how these can be writte in the feature file when I am writting the spec. Based on my understanding I can…
Vino
  • 33
  • 1
  • 3
3
votes
0 answers

lettuce: run code before scenario outline

I am using lettuce 0.1.35 with Python 2.6 and I noticed that when I define a scenario outline, the code defined with an @lettuce.before.each_scenario decorator is not run before each instance of the scenario outline - when I repeat each scenario…
Weier
  • 1,339
  • 1
  • 10
  • 20
2
votes
2 answers

Cucumber: background fails still exits with code 0

I was wondering about something, cucumber returns an exit code 0 (which means "ok" as far as i know) when a Background fails. Now failing steps shouldn't probably be in the Background (at best in a 'before'-hook i guess??). But does anybody know…
Len
  • 2,093
  • 4
  • 34
  • 51
2
votes
1 answer

Getting "not defined" error while calling a feature file from another feature file (Karate framework)

Whenever I try to call the feature file(one.feature) from another feature file(starter.feature), I am not able to access the info(caller) in specific scenario But It is working fine and I am able to access info(caller), when I run one.feature file…
1 2
3
18 19