bdd

Not able to skip scenarios in Jbehave with JunitStory

谁说我不能喝 提交于 2019-12-11 02:41:28
问题 I have been following lot of posts & threads based on which have integrated the logic to skip scenarios. Still not able to get it working successfully. When i put the "configuredEmbedder().useMetaFilters(Arrays.asList("-skip"));" OR "configuredEmbedder().useMetaFilters(Arrays.asList("+skip"));" in the storyrunner,java file, none of the scenarios are executed. And when I remove the line, all the scenarios are executed. My .story file has "Meta skip" in 2 of the 4 scenarios. Can someone please

Always wait for the page to load on PageObjects

孤者浪人 提交于 2019-12-11 02:30:32
问题 So, I was just creating a simple selenium/JBehave code when a question appeared. I'll first post the code simplified and then explain what is my question later. So here we have a simple AbstractClass that will be inherited on my PageObjects. This class only contains a method to wait for certain elements on the page to be loaded. You can see how Im using it in the PageObject class (added a comment there). AbstractPage.java public abstract class AbstractPage { public void waitPageLoad() {

SpecFlow Teardown Opens and Closes Multiple Blank Browsers

岁酱吖の 提交于 2019-12-11 02:30:05
问题 I am in the process of converting a bunch of selenium test cases over to SpecFlow. Everything is working well but what is driving me crazy is that I am using an after scenario to do a driver.quit. When that executes, I have roughly 4-6 browsers opening and closing. In looking at the task manager, it is killing all of the chromedriver.exe (a second one is opened somewhere) and chrome.exe processes successfully which is great. If I run the same test in selenium, I just have one browser and it

Having Tables in Example Table in SpecFlow

此生再无相见时 提交于 2019-12-11 01:21:17
问题 I am using SpecFlow with VisualStudio 2013 to test a particular web form which has the following layout ******************** Start: Form ****************** Name:________________ Age:_________________ Experience: Work place | Number of years | ___________ | _________________ | ___________ | _________________ | ___________ | _________________ | ___________ | _________________ | ******************** End: Form ****************** How do I write it so that I can feed from Example? Given ... When

StoryQ When() calling task C#

∥☆過路亽.° 提交于 2019-12-11 01:01:22
问题 I want to convert this unit test into BDD using storyQ working unit test [Test] public async void CreateNewProjectAndDatabase() { StartParametersAndAteEngineDlls(); await TheNewDatabaseAndProjectIsCreated(); TheDataBaseViewModelIsCreated(); TheMainViewModelIsCreated(); } private async Task TheNewDatabaseAndProjectIsCreated() { .... } converted to BDD [Test] public async Task CreateNewProjectAndDatabase() { _story.WithScenario("Create a new bla bla") .Given(StartParametersAndAteEngineDlls)

BDD cycle - how to join backend with frontend

大城市里の小女人 提交于 2019-12-10 23:55:38
问题 I'd like to know how you connect frontend BDD (i.e. Jasmine) with backend BDD (rspec, cucumber). How these two relate and form one cohesive BDD cycle? What would be the correct steps of this cycle? 回答1: To create a cohesive BDD cycle you would use the "outside-in" development technique, and then take the approach of "faking it until you make it" i.e. using mock objects until you write concrete implementations. Lets say you have the following cucumber scenario: Given I am on the home screen

BDD or TDD? Which do you prefer? and why? [closed]

故事扮演 提交于 2019-12-10 23:33:13
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I see many developers disagree on which style of test to use while starting a new project. I'd like to know why you choose this particular style over the other. 回答1: TDD v BDD is really a state of mind. The way I see it is, in TDD a lot of emphasis is on what should this

How do I run my Specs with the previous version of Rspec?

只谈情不闲聊 提交于 2019-12-10 22:15:01
问题 I have been following an RSpec tutorial on one of my machines, in the hope of learning more about BDD and TDD. My setup was with Rails 2.2.2 and Rspec 1.1.12 Tonight I decided to continue on my primary machine and moved my code from my portable to my desktop. Not having RSpec, i installed the gem . . . sudo gem install rspec sudo gem install rspec-rails Strife and Calumny! The new version of Rspec installed! 1.2.0! And now my tests are failing all over the place! While I fully intend to

Sinon's fake server is not responding

烂漫一生 提交于 2019-12-10 20:14:13
问题 There are a number of other questions asking about Sinon failing to respond, but they all seem to resolve with something mundane, like invalid response data or a toggled configuration option. My situation is as follows: In the main application (at /js/app/ ) requireJS is used to load website application modules. For testing (at /js/test ) requireJS is also used to load the same modules, but adds Mocha, Chai, and Sinon. This is the bootstrap of the test application: define( "testRunner", [

How can I run automated bdd UI tests using NUnit and SpecFlow in particular order driven by categories

懵懂的女人 提交于 2019-12-10 18:46:12
问题 I need help running an automated UI tests by Continuous integration. I have around 200 test cases but they are not written following some good practices and they are depending each other. I am a dev not a QA and I don't know what is happening in details so excuse me if i am not right for something. This is what i can see : 1. The tests are BDD 2. They are written with SpecFlow 3. NUnit is used as test executor The system is a bit complicated and it is hard to write tests without dependencies