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

Calling step from another step throws Object reference not set to instance error

I have these SpecFlow step definitions: [Given(@"I am on the (.*) page")] public void GivenIAmOnThePage(string url) { Given(@"I go to https://daringfireball.net/ page"); } [Given(@"I go to (.*) page")] public void…
Matt W
  • 11,753
  • 25
  • 118
  • 215
0
votes
1 answer

Structuring SpecFlow tests as features

Given that Before/After-Scenario are instance method attributes but Before/After-Feature are static method attributes, is there a way to structure scenarios in a feature file so that they can benefit from each other? I assume that if there is no way…
Matt W
  • 11,753
  • 25
  • 118
  • 215
0
votes
1 answer

Flat file export in Acumatica creates space lines in the file

I've created an export scenario using "ACH Provider" in ACUMATICA, the problem is when it creates the file, at the end of the data, it creates lines without data (space lines)... I would appreciate any suggestion to avoid this kind of issue. Flat…
Pedro
  • 21
  • 2
0
votes
1 answer

need help on this scenario , what is standard?

I have the scenario in my online exam asp.net mvc application. where, as student logged in-> he selects test/Exam -> then load the set of questions. Now I am populating the questions one by one like in wizard. this wizard is totally on the fly…
Red Swan
  • 15,157
  • 43
  • 156
  • 238
0
votes
2 answers

In Node-JS Selenium, How to get the Name of the Cucumber Scenario and embed text top my report from the Step Definition

I am able to get this in the cucumber version 1.X but upgrading cucumber to higher version not able to use (this) and it says scenario.getName() is not a function. I require this because my test depends on the Scenario Name as it involves common…
Saravanan
  • 23
  • 1
  • 5
0
votes
1 answer

Does JBehave based negative-scenarios grow exponentially?

In behavior based testing, it looks like the number of error scenarios grow exponentially. As per Aslak Hellesøy, BDD was created to combine automated acceptance tests, functional requirements and software documentation. In 2003 I became part of a…
lkamal
  • 3,788
  • 1
  • 20
  • 34
0
votes
0 answers

Taking webpage screenshot on completion of a Cucumber Step Definition

I'm currently researching a way in which I can implement a screen capture method in my acceptance test suite in Scala Cucumber after each step definition is completed in the scenario. I have already implemented a method that will take a screenshot…
0
votes
2 answers

Yii2 - Set safe attributes on scenarios

How can I safe my attributes for a massive assignment when I'm using a scenario (in my example 'update' scenario)? Here is my rules: public function rules() { return [ [['user_id', 'type', 'name', 'status'], 'required'], …
Samir IZZA
  • 23
  • 1
  • 6
0
votes
1 answer

asynchronously submit values to controller? yii2

So here's the deal. The ActiveForm below is supposed to receive two variables: $tt (radio) and $value (string numeric input) and send them to controller. $value needs to be validated based on different rules and scenarios, which are defined in…
aidar_ms
  • 68
  • 1
  • 7
0
votes
1 answer

Scenario Based Query: Skipping validation for a class without using IF condition

Consider you have the following classes: Class1, Class2 .... Class1000. All the classes are inheriting interface IClass. All the classes can be validated using below code Validate(IClass class) { } How can we skip validation for class 200 to…
Venkatesan
  • 13
  • 3
0
votes
0 answers

Watir / Cucumber time out in the middle of Scenario

So I'm brand new to Watir / Cucumber and I'm doing a tutorial that involves writing a script to go to a fake puppy adoption website and then adopt a puppy. When I wrote this just as a Watir script it worked fine, but now I'm trying to run it as a…
Race Morel
  • 11
  • 4
0
votes
1 answer

Run examples with more data rows in one test with Cucumber

I have 4 scenarios, for example: Scenario: test single unit transaction Given Scene is set When We did something Then | header1 | unit | etc. | | data1 | data2 | ... | Scenario: test multiple unit transaction Given Scene is set When We did…
monami
  • 594
  • 2
  • 9
  • 32
0
votes
0 answers

scenario generating programming language

I am trying to remember the name of a programming language I stumbled upon maybe a month ago. I totally forget the name, that's why I'm asking you. It had something to do with generating stories/scenarios. Example: you'd set a variable "events" and…
Ben
  • 123
  • 1
  • 1
  • 5
0
votes
2 answers

Cucumber Scenario Outline with data tables - Capybara element not found

How do I write a scenario outline to test a calculation based on one variable which outputs 10 different variables? I've tried various options and getting various errors including: Unable to find option ""…
margo
  • 2,927
  • 1
  • 14
  • 31
0
votes
2 answers

LR custom log files: How can I get them from the generator machines?

Suppose I have a VUGen C test which writes results to some data log file, i.e. it lists processed IDs or something like that in a file that is created (or appended) upon init, written to in the main action, and closed upon shutdown. Then I wonder if…
TheBlastOne
  • 4,291
  • 3
  • 38
  • 72