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
0
votes
2 answers

Combinatorial analysis to maximize a value in R

I have the following table: df = structure(list(test_id = c(1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4), person = structure(c(1L, 2L, 3L, 2L, 3L, 1L, 2L, 3L, 4L, 1L, 3L), .Label = c("a", "b", "c", "d"), class = "factor"), points = c(1, 5, 2, 6, 5, 3, 4, 5,…
John
  • 802
  • 2
  • 9
  • 19
0
votes
2 answers

Behat Gherkin: how to get Title of Scenario Outline

I am using Behat with Mink in PHP. I'm writing a class to create Json logs for every test run including failed/passed steps and so on. Now we are using Scenario Outlines a lot because we run the tests on multiple websites and put the URLs into the…
yeaitsme
  • 91
  • 1
  • 9
0
votes
2 answers

How to call a scenario from other scenario present in separate feature files? i.e. Feature1.feature Scenario1 Feature2>>scenario2

In Behave, for python How to call a scenario from other scenarios present in separate feature files? i.e. In Feature1.feature file Scenario1 Feature2.scenario2 Feature3.scenario3
Shalini
  • 23
  • 3
0
votes
1 answer

Cucumber Scenario Parallelization instead of by .feature?

In order to maximize the parallelization of tests runs, I've separated out all tests to have their own feature file and I run the Parallel_Cucumber Gem with great success but while my tests are relatively speedy, I find repeating myself a lot... So…
Oxi Ros
  • 11
  • 3
0
votes
2 answers

Cucumber Data Table to validate table data

I have a table that and I would like to validate the data shown on the table using a cucumber Scenario Outline. I know you can use one to repeat a similar series of steps, but is it possible to use the data table to validate what is on say a 4x4…
Tree55Topz
  • 1,102
  • 4
  • 20
  • 51
0
votes
2 answers

How many steps(Gherkin lines) in a scenario in cucumber BDD should have?

As there is no restriction on number of lines(Steps/Gherkin) that a scenario should have , but still did anybody face issues in having more number of steps in a scenario (may be 15 or 20 steps) . Is anywhere it mentioned that using particular number…
0
votes
1 answer

Cucumber scenario outline examples' parameters not being used

I have got a scenario outline Scenario Outline: When I type "" in the search bar With examples Examples: |text| |laptop| |camera| And its Step Definition @When("^I type \"([^\"]*)\" in the search bar$") public void…
ltcolumb
  • 73
  • 1
  • 7
0
votes
0 answers

how can I capture the value from the scenario which loaded from scenario library

Here is the case: I create scenario library, the test page include the scenario library, I want to use var1 in scenarioA as scenarioB's para. How can I do that?
rossisy
  • 53
  • 3
0
votes
1 answer

Multiple expects within scenario test

I have a scenario test: scenario 'displays the form' do # Build the setup for user coming from an external site. expect(page).to have_selector('#braintree-dropin-frame', count: 1) # User reloads the page expect(page).to…
thank_you
  • 11,001
  • 19
  • 101
  • 185
0
votes
2 answers

Spring Dependency Injection Scenario

I am have a confusion on how to go about with above scenario in Spring (dependency injection context) class Login { String username; String password; UserAuthService userAuth; /* assume getter and setter methods for above…
0
votes
2 answers

Dynamic scenario dispatcher for Python Behave

I am running multiple scenarios and would like to incorporate some sort of dynamic scenario dispatcher which would allow me to have specific steps to execute after a test is done based on the scenario executed. When I was using PHPUnit, I used to be…
nnja
  • 325
  • 3
  • 15
0
votes
2 answers

Save default values in Yii2 not working

I want to save the this following datetime while update or create so I wrote this in rules() ['createdon','default','value'=>date('Y-m-d H:i:s'),'on'=>'insert' ], ['updatedon','default','value'=>date('Y-m-d H:i:s'),'on'=>'update' ], and I declare…
Jackhad
  • 411
  • 3
  • 8
  • 19
0
votes
1 answer

How do I make scenarios dependent on each other in Gherkin using C#

I have two different scenario's running in MS Visual Studio. I have to make scenarios dependent on each other (say, implementing a simple login Page and making it dependent to its dashboard page). Some say Hooks are best methods in JVM. Help me out…
cashanzlo
  • 121
  • 2
  • 5
  • 13
0
votes
2 answers

Is there a more efficient way of creating versions of an array than brute force?

I have a bool[] and from that original array I want to generate versions/scenarios of the array and save it to a list. If the array looks something like {true,true,false,true,true,true}. The idea is that if bool[0] and bool[1] both are true…
Billy
  • 41
  • 7
0
votes
1 answer

Yii2: ActiveRecord events that only trigger on a scenario

Has anyone ever needed to bind an ActiveRecord event handler in a way that it only triggers on certain scenarios? In an ideal world the ActiveRecord on() method would also take a $scenarios parameter and trigger the handler only if the ActiveRecord…
mae
  • 14,947
  • 8
  • 32
  • 47