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

yii2 insert concatenated string into database with activerecord rules

I have a form, where users pick some options, and I would like to insert into DB an additional, concatenated field, based on user inputs. I need to do it on SCENARIO_CREATE (and update). E.g.: type: A size: 100 color: black concatenated:…
user2511599
  • 796
  • 1
  • 13
  • 38
0
votes
0 answers

Scenario Mapping from Sequence Diagrams

I use Sequence Diagrams to show how flows of Use Case are implemented. I would like lean on the Sequence diagram to map the possible scenarios to an Excel sheet. I mean: according to the conditions in the sequence diagram flow I will have an…
0
votes
1 answer

Python BDD logic in step definition issue

I have a scenario file that describes logging into an account; Scenario: Failed login with blank login details Given I go to "BBC Login Page" When I fill in the username textfield with "" And I fill in the password textfield with "" …
Carl Bruiners
  • 87
  • 3
  • 11
0
votes
2 answers

behat FeatureContext.php how to skip a scenario

I try to find a way to skip scenarios in the FeatureContext.php. I got a test which i only will execute if a Condition is right, else der just will be skipped. My idea was to check the scenario with a tag like "@weeksale" @weeksale Scenario:…
Fanor
  • 53
  • 2
  • 8
0
votes
1 answer

Import Scenario for Update

I want to create an import scenario to update some fields within the Contact table, I do not want to have duplicated records, how can I indicate what contact number to update?
0
votes
1 answer

How to run dependent cucumber scenarios with scenario outline

I want to use Cucumber to test my application which takes snapshots of external websites and logs changes. I already tested my models separatly using RSpec and now want to make integration tests with Cucumber. For mocking the website requests I use…
Juergen
  • 115
  • 1
  • 1
  • 5
0
votes
0 answers

Right click-running a single Cucumber scenario in IntelliJ with hard braces in the title causes nothing to be run

I'm using IntelliJ with the Java Cucumber plugin. The right click -> "Run 'Scenario: ..." feature works great - except when there are hard braces in the Scenario name. An example Scenario Outline: The user tries to access a hyperlink referring to a…
0
votes
1 answer

Yii 2.0 Scenarios - Dynamic Validation

I have a situation where I would like to validate a textbox input; however, the type of validation is dependent on the selection of a dropdown list on that page (there would be multiple of each of these on a page). So, the textbox can take a…
iKan
  • 1
  • 2
0
votes
2 answers

Cucumber: How to get list of executed steps after each scenario?

After each scenario I would like to list all steps of this scenario. There is any way to do that?
Kirill
  • 1,530
  • 5
  • 24
  • 48
0
votes
0 answers

Jbehave : Given for entire story

I was wonder if it possible to execute entire story as given steps for verification. I mean : Story 1 Given .. When .. Then .. Story 2 Given ... When ... Then Story1 passed Any way to achieve this scenario ?
Igal
  • 4,603
  • 14
  • 41
  • 66
0
votes
1 answer

how to combine scenarios in yii

I have an form that requires different scenarios based on selections on the form. For example: the user can choose to add a delivery address in a shop that's different from the billing-address (this is simple, in reality, I'll have like 3 or 4…
Swissdude
  • 3,486
  • 3
  • 35
  • 68
0
votes
1 answer

EXCEL VBA: how to count scenarios?

I am finishing a project and seems like the last part is the most difficult. I have 7 (6 + 1 optional) columns that have this sort data (some of them have only earlier/later/na, and some of them earlier/later/equals/na). For example three rows: OK…
user3812753
  • 79
  • 2
  • 8
0
votes
1 answer

Lettuce BDD: How to add 'Examples:' block in step.behave_as?

Environment: lettuce-0.2.23-py2.7 on Windows 8 For simple scenario (example from Lettuce documentation) everything works: @step('I am logged in') def is_logged_in(step): step.behave_as(""" Given I go to the home page And I…
pbaranski
  • 22,778
  • 19
  • 100
  • 117
0
votes
1 answer

Types of scenarios implemented by companies for Performance test a System

As a newbie to JMeter, I have created some scenarios like some number of users are logging in to the system, sending some HTTP Request, Requests are looped, etc. I would like to know what are the real world scenarios implemented by Companies to…
Anonymous
  • 858
  • 4
  • 27
  • 54
0
votes
0 answers

cucumber step undefine for http pattern

Here is my feature: Feature: Smoke tests Scenario: Check status code of all links Given I am logged in "https://myserver-product.domain.dom/" When I request every get route on the application Then I should see all the routes…
Robert
  • 10,403
  • 14
  • 67
  • 117