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
2
votes
1 answer

Repeat scenarios for different examples

I am trying to run some test written in specflow using Scenario Outlines where I have the input and out out parameterised, this is fine, and I can do it. However I also would like to then repeat all the tests across multiple browsers. This means…
MikeW
  • 1,568
  • 2
  • 19
  • 39
2
votes
1 answer

Can i make specflow do one last thing even if it fails in the middle of the scenario?

Because im changing in my specflow scenario important configuration I would like my specflow scenario to reset the configuration everytime it finish the scenario, even if it fails in the middle. [AfterScenario] do the work only if it didnt fails,…
Matan
  • 21
  • 2
2
votes
1 answer

cucumber (in Java): How can I run scenarios with both tags only

I have some feature files with multiple tags for each scenario. But I would like to run those who has both @a AND @b scenarios. How can I do that? tags = {"@a, @b"}, --> this will do @a OR @b scenarios Thanks.
Alex.Sang
  • 41
  • 3
2
votes
1 answer

Force Cucumber to execute the scenarios in a particular order

I have a feature file with 5 scenarios : @Scenario_1 @labelA Given.... @Scenario_2 @labelB Given.... @Scenario_3 @labelA Given.... @Scenario_4 @labelA Given... @Scenario_5 @labelB Given... On my system, it executes in the same order in which it…
sanaku
  • 309
  • 2
  • 6
  • 18
2
votes
1 answer

Can't get a scenario's filename from scenario.file in Cucumber 2.3.2

I have this code in Rails app /features/support/hooks.rb: After do |scenario| if scenario.failed? filename = "#{FAILED_DIR_PATH}/failed--#{scenario.file.gsub("features/","").gsub("/","-")}--#{scenario.line}.html" Capybara.save_page…
Foton
  • 1,197
  • 13
  • 24
2
votes
1 answer

Behavior Driven Development (BDD) scenario vs user scenario or use case differences?

I m new at BDD. So I had some questions about scenarios? What is the differences between BDD Scenarios and User scenario? Is there a clear difference from the conventional “user scenario” or “use case” so called? Can you please explain more?
Kle
  • 1,003
  • 2
  • 14
  • 24
2
votes
2 answers

Some questions about the process of BDD from a beginner

These days I've read several articles about BDD to find what it is talking about. Now I get a basic understandings, but still not clear about the whole process. The following is what I think to do in a BDD process: All the stakeholders(BA,…
Freewind
  • 193,756
  • 157
  • 432
  • 708
2
votes
2 answers

Yii2 Behaviors / Scenarios Modify Attribute

I have a model "Product" that I would like to modify or "mutate" one of its attributes for, but only in specific instances. I store attribute, price as an integer. So $1.99 gets stored as 199. I would like to incorporate this with the…
Jon Robinson
  • 861
  • 2
  • 10
  • 18
2
votes
1 answer

Protractor: problems with making scenarios

Before that day I always made isolated small tests. But now I want run them in one scenario. And I have the strange error. Some tests can't work together. For example. First one: beforeEach(function(){ …
2
votes
1 answer

Store a global variable for all features in a SpecFlow test run

I have been using FeatureContext for storing information about a specific feature that can be reused in all scenarios in that feature. However I have some things like login information that I don't want to recreate for every feature. I want to use…
User101
  • 748
  • 2
  • 10
  • 29
2
votes
1 answer

Can lettuce scenarios have more than one tag?

This is similar to the question how to specify which lettuce scenario to run In the question they give an example of one tag being used per scenario. I was wondering if I can add on more tags, like in TestNG you can add on multiple groups.
2
votes
2 answers

Regenerate steps for scenarios in specflow

Is there a way i can "regenerate" steps for the scenarios in specflow. Currently my feature file has steps which are already bound to it. I would like to generate steps again and write the code all over again without deleting my previous step…
AutomateFr33k
  • 562
  • 2
  • 8
  • 26
2
votes
1 answer

Searching for scenarios in Sparx EA

Does anyone have a query sql query allowing them to search for all scenarios under a given package? This is for SPARX Exterprise Architect 10.
Andrew Matthews
  • 3,006
  • 2
  • 29
  • 42
2
votes
3 answers

Specflow Feature-level Templates

I'm trying to execute an entire SpecFlow Feature using three different UserID/Password combinations. I'm struggling to find a way to do this in the .feature file without having to introduce any loops in the MSTest. On the Scenario level I'm doing…
Jeff Nall
  • 44
  • 1
  • 9
2
votes
1 answer

How write table inside of cucumber step with table

I'm writing scenarios for QA engineers, and now I face a problem such as step encapsulation. This is my scenario: When I open connection And device are ready to receive files I send to device file with params: | name | ololo | |…
bmalets
  • 3,207
  • 7
  • 35
  • 64