acceptance-testing

Fitnesse automatic generate fixture class

房东的猫 提交于 2019-12-08 12:41:21
问题 I'm evaluating the Fitnesse as an acceptance test tool. Is there any way to automatically generate fixture class from fitness test pages? 回答1: No. In the fitness test pages you define the input data and the expected results but you have to write your fixture classes by your self or if you are lucky you may find something similar with what you need in the internet (for example you could find some oracle fixture and then you don't have to write that). 来源: https://stackoverflow.com/questions

ember-simple-auth, acceptance tests and waiting for async actions

爷,独闯天下 提交于 2019-12-07 12:18:45
问题 Struggling with acceptance tests. Started with basic login test: import { test } from 'qunit'; import moduleForAcceptance from 'static/tests/helpers/module-for-acceptance'; moduleForAcceptance('Acceptance | authentication'); test('login', function(assert) { visit('/'); click('.nav-bar__login-link'); andThen(function() { assert.notOk(find('.login-form__submit-button').attr('disabled')); }); fillIn('.login-form__email-block input', "ruz@email.com"); fillIn('.login-form__password-block input',

How to fill a rich text editor field for a Codeception Acceptance test

点点圈 提交于 2019-12-06 02:24:42
问题 I'm trying to fill a rich text editor field (TinyMCE) within my acceptance test in Codeception. Using the fillField() function doesn't work as this 'field' isn't really an input field. It's an iframe , styled to look like a fancy textarea. How can I set some text into the body of the TinyMCE box? I think I'm looking for the addition of a $I->setContent(xpathOrCSS) function. Or does something else already exist to do this? 回答1: It is best to do this by adding re-usable actions to your Actor

ember-simple-auth, acceptance tests and waiting for async actions

风格不统一 提交于 2019-12-05 21:51:19
Struggling with acceptance tests. Started with basic login test: import { test } from 'qunit'; import moduleForAcceptance from 'static/tests/helpers/module-for-acceptance'; moduleForAcceptance('Acceptance | authentication'); test('login', function(assert) { visit('/'); click('.nav-bar__login-link'); andThen(function() { assert.notOk(find('.login-form__submit-button').attr('disabled')); }); fillIn('.login-form__email-block input', "ruz@email.com"); fillIn('.login-form__password-block input', "qwe"); click('.login-form__submit-button'); andThen(function() { console.log("ftw"); assert.equal(find(

How to navigate to feature file from resharper test session window in Visual Studio 2012?

回眸只為那壹抹淺笑 提交于 2019-12-05 20:37:42
For acceptance testing I use TeckTalk SpecFlow in Visual Studio 2012. When I run all specflow scenarios, resharper unit test session windows is opened I can see all test results. Like on screen shot below. The question is, when I see failed test (scenario) in some feature file, how can I navigate directly to this feature file from resharper session window to edit it??? It seems to work perfectly well if run via the new VS2012 Test explorer, which on my machine worked automatically from "Run SpecFlow Scenarios" on the project menu. I can only assume Resharper is getting in the way on your

Acceptance testing preloading of data into GAE dev server datastore

霸气de小男生 提交于 2019-12-05 17:38:41
In my application I have a set of of DAOs which I inject into my application layer. For an acceptance test I'm writing, I want to preload the dev_server datastore with data, so I use the same Spring config in my JUnit test (using the @ContextConfiguration annotation) to inject an instance of the relevant DAO into my test. When I actually go to store some data eg: dao.add(entity) I get the dreaded "No API environment is registered for this thread." Caused by: java.lang.NullPointerException: No API environment is registered for this thread. at com.google.appengine.api.datastore

What JavaScript UI testing framework should I use for a simple HTML5 + jQuery app?

孤街浪徒 提交于 2019-12-05 11:32:16
I'm about to write a simple HTML5 + JavaScript (jQuery) app in my spare time in order to keep up with the latest web technologies (at work it's more advanced C# backend stuff). I'd like to develop in the same fashion that I've done for the last ten years or so, namely TDD style. Being new to the TDD/BDD/AcceptanceTDD world in HTML/JavaScript, my question is: is there a great framework or the like for writing test against a web page in a browser (out-of-the-box support for many browsers being a definitive plus)? The reason I'd like to use JavaScript is two-fold. 1. I'd like to learn more

Specflow test step inheritance causes “Ambiguous step definitions”

天涯浪子 提交于 2019-12-05 00:37:35
I want to have the following test step class structure: [Binding] public class BaseStep { [Given(@"there is a customer")] public void GivenThereIsACustomer(Table table) { HandleCustomer(table); } protected virtual void HandleCustomer(Table table) { } } [Binding] public class FeatureOneStep : BaseStep { protected override void HandleCustomer(Table table) { // feature one action } [Given(@"feature one specific step")] public void GivenFeatureOneSpecificAction(Table table) { // do something } } [Binding] public class FeatureTwoStep : BaseStep { protected override void HandleCustomer(Table table)

How detailed should a customer acceptance test be?

▼魔方 西西 提交于 2019-12-04 17:16:44
问题 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.

How to run tests after deployment using Maven?

对着背影说爱祢 提交于 2019-12-04 12:08:50
问题 I'm trying to decide how to create a set of Acceptance Tests for a Java-EE web application. Here's the setup: Maven is used to generate a WAR file and deploy it into Glassfish. On deployment, the MySQL database schema is automatically updated from model classes using Hibernate ("hbm2ddl=auto" option). The Acceptance Tests need to test the deployed code by invoking various methods and checking the results are as expected(*). We wrote an additional set of packages to hook into an existing