acceptance-testing

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

自作多情 提交于 2019-12-10 05:32:00
问题 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

seeInField finds the element, while fillField doesn't - CodeCeption

笑着哭i 提交于 2019-12-10 04:23:00
问题 I am totally new to CodeCeption. I have the below html inside the body, <div><input type="text" name="content_id" id="contentId" maxlength="10" value="123"></div> In CodeCeption acceptance test I have a this below code `<?php $I = new AcceptanceTester($scenario); $I->wantTo('fillfield test'); $I->amOnPage('/'); $I->seeInField('#contentId', 123); $I->fillField('#contentId', 222397); ?>` seeInField Test passes successfully, but fillField throws an error Sorry, I couldn't fill field "#contentId"

Specflow test step inheritance causes “Ambiguous step definitions”

…衆ロ難τιáo~ 提交于 2019-12-10 01:23:48
问题 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 } }

NightwatchJS .elements returning string and not objects

我怕爱的太早我们不能终老 提交于 2019-12-09 18:00:57
问题 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

How do we handle minor permutations of BDD scenarios?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-09 17:58:56
问题 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

Ember.js: Component attribute not reset while testing

纵饮孤独 提交于 2019-12-08 22:10:16
问题 I am currently attempting an acceptance test on a nested route, which makes use of the same component twice, but with different arguments. This works fine when I run it normally, however as I run the acceptance test, I notice that the component's arguments aren't being updated, which causes my test to fail. Here is some sample code: In index.hbs I have: {{index-view model=model type='location'}} My index-view component looks like this: <h1>{{title}} List</h1> {{listing-table model=model type

Can you review my Perl rewrite of Cucumber?

拜拜、爱过 提交于 2019-12-08 19:54:30
There is a team working on acceptance testing X11 GUI application in our company, and they created a monstrous acceptance testing framework that drives the GUI as well as running scenarios. The framework is written using Perl 5, and scenario files look more like very complex Perl programs (thousands of lines long with procedural-programming style) than acceptance tests. I recently learned Ruby's Cucumber, and generally have been using Ruby for quite a lot of time. But unfortunately I can't just shove Ruby to replace Perl because the people who are writing all of this don't know Ruby and it's

What can cause MSIExec Error 1619 'This installation package could not be opened'

浪子不回头ぞ 提交于 2019-12-08 19:53:31
问题 I'm attempting to automate a roundtrip install and uninstall of a set of MSI files (generated by WiX) from a pack of sample programs. For some reason, a .MSI file that's perfectly happy to install on a double click generates: This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package. when I invoke it with MSIEXEC in the following manner: <ItemGroup> <

Codeception - Acceptance tests work but Functional test don't

北战南征 提交于 2019-12-08 19:08:48
问题 I am running the latest version of Codeception on a WAMP platform - My acceptance is very basic however works fine (see below): $I = new WebGuy($scenario); $I->wantTo('Log in to the website'); $I->amOnPage('/auth/login'); $I->fillField('identity','admin@admin.com'); $I->fillField('password','password'); $I->click('Login'); In a nutshell - it checks the page is 'auth/login' fills out 2 form fields and clicks the login button. This works without any problems. Here is my identical functional

How do I prevent Selenium RC from stealing window focus while my tests are running?

拟墨画扇 提交于 2019-12-08 18:21:04
问题 I know I'm probably in a small minority, but I have to use my machine at the same time my tests are running. The thing that always gets in my way is that the browser window is always stealing focus when I run test cases using Selenium RC. Which prevents me from running my tests more than once a day, at the end of the day right before I log out. I tried Selenium Grid, but I can't get it to only listen for requests on localhost, not 0.0.0.0 (a requirement from my network admin). I've dug