Questions tagged [acceptance-testing]

Acceptance testing is a test conducted to determine if the requirements of a specification or contract are met

Acceptance testing is a term used in agile software development methodologies, particularly Extreme Programming, referring to the functional testing of a user story by the software development team during the implementation phase.

The customer specifies scenarios to test when a user story has been correctly implemented. A story can have one or many acceptance tests, whatever it takes to ensure the functionality works. Acceptance tests are black box system tests. Each acceptance test represents some expected result from the system. Customers are responsible for verifying the correctness of the acceptance tests and reviewing test scores to decide which failed tests are of highest priority. Acceptance tests are also used as regression tests prior to a production release. A user story is not considered complete until it has passed its acceptance tests. This means that new acceptance tests must be created for each iteration or the development team will report zero progress.

Source

591 questions
3
votes
2 answers

Testcafe+Nightmare: Why is element not in DOM?

I have the following test: fixture('Minimal reproduction') .page('http://www.sport-conrad.com/'); test('Navigate to item-details', async t => { await t .click('.dropdown-toggle') .click('.productData:first-of-type a') }); When I run…
AvantiC
  • 367
  • 3
  • 17
3
votes
2 answers

How to log in in an acceptance test without actually navigating to the login page and entering your credentials?

In functional tests for Yii2, there is a method amLoggedInAs($user) $I->amLoggedInAs( User::find()->where('id = 1')->one() ); But for acceptance tests, there is no such method. Most of my tests require the user to be logged in, and the only way…
gvlasov
  • 18,638
  • 21
  • 74
  • 110
3
votes
2 answers

Use the same examples in multiple Cucumber scenario outlines

How do I structure tests for the following program: I'm writing a unit test framework for simulated combinatorial circuits. This framework will support multiple digital logic simulators (JLS, Logisim, TKGate, etc.) Thus, each test should be run…
Zack
  • 6,232
  • 8
  • 38
  • 68
3
votes
1 answer

ember acceptance test error 'assertion failed' because of rootElement

does anyone have experience with acceptance test errors? i am getting the error "Error: Assertion Failed: Unable to add 'ember-application' class to rootElement. Make sure you set rootElement to the body or an element in the body." can't find any…
Micki T
  • 71
  • 5
3
votes
0 answers

Ember addon. Acceptance test: undefined is not a constructor

I'm building an addon from an Ember app that I built and passes all the tests. When I try to use the same acceptance tests for the dummy app and I run the tests I get this error for lots of tests (only in PhantomJS. All the tests pass in with any…
3
votes
2 answers

How can I access browser extension's popup using selenium?

I want to write an acceptance test for my browser extension. I've tried to initiate an extension via selenium but I can't seem to access a content of popup. Can someone suggest how can I do it with selenium or any other way to write UI/acceptance…
3
votes
2 answers

How can an element be grabbed with codeception?

Let's say we have the following HTML code:

Apple

How do I grab #fruit and check its inner HTML via codeception?
Alex Lomia
  • 6,705
  • 12
  • 53
  • 87
3
votes
1 answer

Codeception - Depend on a test within a parent class

Is it possible to have Cest files that extend a parent class and make use of a common test "login" that other tests depend on using the @depends So my Cest file looks similar to the one found in this post which explains how to login and re-use the…
Carlton
  • 5,533
  • 4
  • 54
  • 73
3
votes
2 answers

How should I implement this specflow step?

Okay, I've decided to try and get to grips with the whole TDD process from start to finish. I'm writing a simple blog in ASP.NET MVC 2 Application and have started with doing acceptance tests to test my fetaures as I implement them. I'm using…
Sekhat
  • 4,435
  • 6
  • 43
  • 50
3
votes
1 answer

Testing error responses with ember-cli-mirage

I'm reading through ember-cli-mirage's docs about creating mock responses but can't figure out how to test error responses for the exact same request. For example: test("I can view the users", function() { var users = server.createList('user',…
David
  • 10,418
  • 17
  • 72
  • 122
3
votes
2 answers

Codeception won't run any tests. Fails with no errors, quits before running any tests

I go to run an acceptance test, but it only outputs Codeception PHP Testing Framework v2.0.12 Powered by PHPUnit 4.5.1 by Sebastian Bergmann and contributors. Then it quits with out any error message. No tests run, no error message. Browser tests…
3
votes
1 answer

Using SLIM to write Fitnesse tests using Python

I downloaded and ran the fitnesse-standalone to test how does the SLIM protocol work. Below is the directory structure /Users | -redmont | -fitnesse-standalone.jar | -Calc.py | …
Abhinav
  • 992
  • 2
  • 11
  • 26
3
votes
1 answer

Ember Acceptance Test Failing in PhantomJS but Passing in Chrome

I'm trying to write an acceptance test for my Ember app and I seem to be having some trouble when it comes to PhantomJS and the Ember test server. I'm running the following versions: Ember : v1.13.6 Ember Data : v1.13.7 PhantomJS is failing…
Mike George
  • 521
  • 3
  • 11
  • 27
3
votes
2 answers

nightwatch testing: .sendKeys and .keys not sending key clicks

I am using node.js with nightwatch. It works great, my only issue is that my current application needs to be tested by 'pressing' all the arrow keys, and making sure the class name on the elements changes. I CANNOT get the sendKeys function to…
galas0330
  • 31
  • 1
  • 1
  • 2
3
votes
2 answers

What's the meaning of page and page.body in Capybara

I'm a newbie try to test my Rails project using Capybara, but I'm confused with the meaning of page and page.body, when I try to detect some string from my div: (in :js=>true mode)
"some content"
Some of my test will pass…
林鼎棋
  • 1,995
  • 2
  • 16
  • 25