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

Where to test links in cucumber features?

Assume that I arranged my cucumber features in files like that: features/ ├── add_project.feature ├── list_projects.feature In my application on the page where I can list all projects I also have a link that points to the page where I can create a…
sebastiangeiger
  • 3,386
  • 7
  • 29
  • 37
2
votes
3 answers

What is the difference between Scenario and Scenario outline?

I have been reading the difference between scenario and scenario outline from different resources, but everywhere I could able to find is that ' Scenario works with single values, where you can use Scenario outline to run the same scenario for…
Sumit Jain
  • 77
  • 1
  • 4
2
votes
1 answer

Want to execute background tag only once per feature file with multiple scenarios in specflow C#

Below is the code: Background: Navigate to mail from inbox Given I login into gmail as valid user When I click on mail from Inbox Then mail should be open Scenario: Delete mail from Inbox When I open mail from Inbox page And I click on Delete…
Shruti Shinde
  • 43
  • 1
  • 6
2
votes
1 answer

Java Cucumber : Combine outline scenario and data tables

im asking if is there any way to combine outline scenario and data tables like the example bellow: Feature: User Sign UP Scenario Outline: User tries to signup with improper combination of password Given the user has browsed to…
AHmedRef
  • 2,555
  • 12
  • 43
  • 75
2
votes
1 answer

Datatables with different amount of items under scenario outline with multiple examples in Cucumber. Is it possible?

I have four very similar sections on my application and am trying to group tests together that are similar enough using scenario outline to facilitate maintenance and am giving the section (page) they're to be under as a parameter. However, these…
Francislainy Campos
  • 3,462
  • 4
  • 33
  • 81
2
votes
2 answers

Best practise for many steps in one scenario outline

So I have a page where I have many buttons/ sliders/ inputs etc. I need almost every one of these buttons/slider... to create some form at the end of the page. How can I handle that situation in BDD when I have several steps needed to finish the…
ranger
  • 637
  • 2
  • 9
  • 18
2
votes
1 answer

Gherkin Scenario Outline using the same table multiple times

I'm writing a Scenario Outline in Specflow for Visual Studio. The objective is to test a Person Name comparer feature, in order to choose the best name between the two. In my case, I have properties that belong to the names and properties external…
Josef Ginerman
  • 1,460
  • 13
  • 24
2
votes
1 answer

Karate : How to use response of scenario in afterScenario

What is the best way to use the response of scenario in afterScenario?? Background: * configure afterScenario = function(response){if(response.key){ karate.log('key is present');} else{karate.log('key is not present');} } Scenario: get…
2
votes
1 answer

karate dsl - running parallel features and scenarios

in new release(0.9.0),I saw that karatedsl able to run parallel tests in scenario level (each feature will be breakdown into scenarios and run as 1 scenario per thread).. so for example, I have 4 features, for feature 1 and 2 I want to run parallel…
2
votes
2 answers

SpecFlow - Context Injection vs Scenario Context

Anyone using SpecFlow will likely have come across Context Injection and Scenario Context for storing data across different binding classes. (For more detail see: https://specflow.org/documentation/Sharing-Data-between-Bindings/) As a Developer, the…
Charlie S
  • 4,366
  • 6
  • 59
  • 97
2
votes
1 answer

Use the same examples for multiple Cucumber js scenarios

I'm finding it difficult to use multiple Scenario Outlines to use the same example and run in a sequence. My use case is for a feature to test like this: Scenario Outline: Time consuming login process When I enter login credentials for
2
votes
1 answer

Implement Scenario outline in a cucumber-protractor through step definitions and page objects

Does anyone know why this step might be showing as "undefined" when I try to run it. below you will see an example where I am trying to experiment with cucumber scenario outline and my "examples:" section has 1 entry. Also, the page objects and step…
Monnie_tester
  • 439
  • 1
  • 6
  • 20
2
votes
1 answer

Specflow scenario outline not working as expected

Visual Studio 2017 C# I have found that running a scenario outline it will run the test multiple times, so when i build and i can see in the test runner all the tests from the examples lines. When i execute one of these tests, it seems to execute…
Brian Mitchell
  • 345
  • 3
  • 21
2
votes
2 answers

A business scenario that could involve integration of a number of IT systems using JMS?

Can anyone give me some suggestions of a business scenarios where I can implement Java Messaging Services (JMS). The message can be sent either by queue(point-to-point) or topic (regular/durable subscription). I will be using JMS (enabled through…
dwyane
  • 21
  • 4
2
votes
1 answer

Best practice to compare integer values in Cucumber test scenarios

I need to compare numbers which is greater than or lesser than count in cucumber test. How should I write scenario for this to do it in effective manner? Scenario: Search and Compare count value. Then I Search and Verify "user" count is "less than"…
Pez
  • 1,091
  • 2
  • 14
  • 34