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
5
votes
4 answers

How would I best express this time-dependent scenario in Cucumber?

I've been trying to learn about Cucumber in Ruby and I thought that the best way to do that would be to make my own project. However, I'm wondering what constitutes a good "Given" clause. As far as I understand, "Given" is basically a set up, "When"…
Dan
  • 10,282
  • 2
  • 37
  • 64
5
votes
1 answer

scenario for validation rules in yii

I was wandering is there any chance to use scenario for rules, in my model I have public function rules() { return array( array('delivery, firstNameBilling, lastNameBilling, addressBilling, cityBilling, countryBilling, …
Ime Prezime
  • 55
  • 1
  • 1
  • 4
5
votes
4 answers

Maven JBehave : encoding stories UTF8

We managed to create and run tests with internationalized stories using JBehave within eclipse. Everything went fine. But when we tried to run them using the maven plug-in, we cannot get rud of the encoding problem (for example, instead of reading…
antoine
  • 618
  • 7
  • 16
4
votes
4 answers

JBehave & Maven - how to skip scenario tests

I'm using jbehave and the jbehave maven plugin to run a set of scenario tests. Have my test class extending JUnitStories, and everything works nicely. Only issue is, I can't stop running the tests... Every time I run the maven install goal, it runs…
john.harvey
  • 49
  • 1
  • 2
4
votes
3 answers

How to use same set of examples in multiple scenario outlines in cucumber features

I tried finding this solution but no luck. Its very simple requirement and I think cucumber has solution which I am not aware of. I want to use same set of examples of scenario outlines to the multiple features. Every time I don't want to copy…
Bhavik Shah
  • 140
  • 4
  • 16
4
votes
2 answers

Problem creating bioclimatic variables using dismo packages

I would like to get all the bioclimatic variables of future scenarios for species distribution modelling. So I run the "biovars" function in "dismo" packages using the three variables from worldclim database, and I got a RasterBrick of 12…
Marco
  • 505
  • 9
  • 18
4
votes
1 answer

BDD naming: when does it stop being about the user experience?

I'm drawn to MSpec with the hopes of one day sharing my test reports with non-developers*, but that is most valuable (right?) if I discuss the business (the user experience) in the test/scenario names (instead of the individual C# objects/members…
lance
  • 16,092
  • 19
  • 77
  • 136
4
votes
4 answers

Scenario Outline generating incorrect step code

I have the following feature file Feature: Employee_EditEmployeeFeature Check Edit Employee Page @Employee_EditEmployeeFeature Scenario Outline: Verify invalid format field error displayed (Email Address) Given I enter an invalid…
4
votes
1 answer

Behat: use variable between the steps in a scenario

How can I use variable between the steps within one scenario in behat? I need to store the value of $output and then use it in the second step. Let's say I have the following structure: class testContext extends DefaultContext { /** @When /^I…
laechoppe
  • 232
  • 3
  • 14
4
votes
2 answers

How can we retrieve/get the feature and scenario title in step definitions?

How can we retrieve/get feature, scenario title and tag name in step definitions? For example I have a feature file booksearch with a feature: Feature: Book Search Scenario: Title should be matched I perform a simple search on…
shiv
  • 497
  • 3
  • 17
4
votes
1 answer

Excel Scenario Manager on Multiple Worksheets

I'm trying to use Scenario Manager across multiple worksheets. I have all of my inputs on one worksheet and outputs on another. I'd like to set up multiple scenarios of the inputs and then show the resulting cells (on the other worksheet) in the…
Chris Y
  • 121
  • 2
  • 12
4
votes
1 answer

Running a login scenario once then multiple scenarios

I want to log in once then run a couple of scenarios (lets say 7 scenarios) before closing the browser. I used Background instead of having a Given i am loggedin in each scenario but it seems that every time a scenario is run it starts by logging in…
fancypi
  • 97
  • 1
  • 7
3
votes
9 answers

Virtual Constructors

Is there any need of Virtual Constructors? If so can any one post a scenario?
Diwakar
  • 71
  • 1
  • 3
  • 7
3
votes
2 answers

Yii2 rules work only use scenario

I write two scenario in Yii2 comment model, when user logged on or is guest. my rules is: public function rules() { return [ [['user_id'], 'required', 'on' => self::SCENARIO_USER], [['name', 'email'], 'required',…
Masoud92m
  • 602
  • 1
  • 8
  • 24
3
votes
1 answer

Is there a way to recreate an ODI package using ODI Scenario?

I mistakenly deleted an ODI package from my project which is very large in size. Is there a way to recreate the same package if I have a previously exported scenario for the same project?
1
2
3
18 19