acceptance-testing

How to increase reusability between SpecFlow/Gherkin steps?

佐手、 提交于 2019-12-04 08:39:15
问题 I think I thoroughly understand the concepts and ideas behind SpecFlow, but even after reading the Secret Ninja Cucumber Scrolls, The Cucumber Book, and going through the various forums I'm still unsure about the path to reusability. Our scenarios already comply to various guidelines Self explanatory Must have a understandable purpose (what makes it different from the other scenarios) Are unique Represent vertical functional slices Uses Ubiquitous Language Written from the stakeholder

Fitnesse maven-classpath-plugin conflicting with Guava jar

核能气质少年 提交于 2019-12-04 05:48:53
问题 I am trying to setup Fitnesse in my project but I am facing some issues with Guava jars This is how my pom.xml looks like: <dependencies> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>23.0</version> </dependency> <!-- https://mvnrepository.com/artifact/org.fitnesse/fitnesse --> <dependency> <groupId>org.fitnesse</groupId> <artifactId>fitnesse</artifactId> <version>20161106</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org

How do we handle minor permutations of BDD scenarios?

拟墨画扇 提交于 2019-12-04 05:28:13
I'm loving the BDD approach to development, but I've bumped into a concern with how far to go. This comment from ThoughtWorks most recent Radar gives me pause: "The advent of behavior-driven design (BDD) testing frameworks like Cucumber, combined with browser automation tools like Selenium, has encouraged widespread use of acceptance testing at the browser level. This unfortunately encouraged doing the bulk of testing where the cost to run the tests is the greatest. Instead, we should test at the appropriate level, as close to the code as possible, so that tests can be run with maximum

NightwatchJS .elements returning string and not objects

孤街醉人 提交于 2019-12-04 05:01:53
I am using nightwatch and trying to iterate through a list of elements. However, when I don't get objects or elements, but I get an array of strings. CODE browser.elements("css selector", ele, function(r){ browser.perform(function(){ console.log("LIST", r); }) }) RETURN LIST { sessionId: 'b273b874-c084-4d17-8bbe-a911a170ef25', status: 0, state: 'success', value: [ { ELEMENT: '6' }, { ELEMENT: '7' }, { ELEMENT: '8' }, { ELEMENT: '9' }, { ELEMENT: '10' }, { ELEMENT: '11' } ], class: 'org.openqa.selenium.remote.Response', hCode: 995684858 } The value should be returning an object of webElements

How detailed should a customer acceptance test be?

懵懂的女人 提交于 2019-12-03 10:19:38
Here is a test description, testing the "Create New Widget" use-case. Confirm that you can enter a new widget into the system. Here is another test description, testing the "Create New Widget" use-case. Bring up the application. Create a new widget by the name of "A-008", with the description being "Test Widget for Acceptance Test 3-45". Confirm that the widget is now visible in the leftmost widget tree view. Select another widget in the tree view, then select the widget "A-008" again. Confirm that the values in the widget display equal the values you entered. Delete widget "A-008" and close

When to choose system test over integration test Rails 5.1?

不羁的心 提交于 2019-12-03 05:07:23
With the release of Rails 5.1, they included system tests. Which means we can test our JavaScript too in Rails. I see Rails guide explains a sample test creating article in both ways: via system test and via integration test. Now the question is: before Rails 5.1 I was writing complex test cases in integration tests. But now I have two options to write a test case. I can write test case like test: should create article in integration test, but I can also write the same test case in system test. So when should I choose system test to write a test case and when to choose integration tests ? The

Unit Tests vs. Acceptance Tests

风流意气都作罢 提交于 2019-12-03 00:46:58
问题 Are you for one or the other? Or both? My understanding is unit tests: validate the system from the developer's point of view help developers practice TDD keep code modular assist in detecting errors at low levels of granularity Acceptance tests: validate the system from the business and QC / QA points of view tend to be high level as they're often written by people not familiar with the inner workings of the code I feel both are necessary. However, for minimization of redundant work, is it a

Does Python have anything Like Capybara/Cucumber?

落花浮王杯 提交于 2019-12-03 00:29:47
问题 Ruby has this great abstraction layer on top of Selenium called Capybara, which you can use do functional/acceptance/integration testing. It also has another library called Cucumber which takes this a step further and lets you actually write tests in English. Both libraries are built on top of Selenium, and can be used to test against any major browser, but because of their abstraction layers it's super easy to write tests using them (well, as easy as functional testing gets at least). My

How to increase reusability between SpecFlow/Gherkin steps?

爱⌒轻易说出口 提交于 2019-12-03 00:25:59
I think I thoroughly understand the concepts and ideas behind SpecFlow, but even after reading the Secret Ninja Cucumber Scrolls , The Cucumber Book , and going through the various forums I'm still unsure about the path to reusability. Our scenarios already comply to various guidelines Self explanatory Must have a understandable purpose (what makes it different from the other scenarios) Are unique Represent vertical functional slices Uses Ubiquitous Language Written from the stakeholder perspective About business functionality, not about software design Grouped by Epics ARE NOT TEST SCRIPTS

Unit Tests vs. Acceptance Tests

岁酱吖の 提交于 2019-12-02 14:14:05
Are you for one or the other? Or both? My understanding is unit tests: validate the system from the developer's point of view help developers practice TDD keep code modular assist in detecting errors at low levels of granularity Acceptance tests: validate the system from the business and QC / QA points of view tend to be high level as they're often written by people not familiar with the inner workings of the code I feel both are necessary. However, for minimization of redundant work, is it a good idea to try to incorporate unit tests into acceptance tests? In other words, have the latter call