Questions tagged [functional-testing]

Functional testing is a quality assurance (QA) process and a type of black box testing that bases its test cases on the specifications of the software component under test.

Functional testing is a quality assurance (QA) process and a type of black box testing that bases its test cases on the specifications of the software component under test.
Functions are tested by feeding them input and examining the output, and internal program structure is rarely considered (not like in white-box testing).
Functional Testing usually describes what the system does.

Functional testing typically involves five steps:

  1. The identification of functions that the software is expected to perform
  2. The creation of input data based on the function's specifications
  3. The determination of output based on the function's
  4. The execution of the test case
  5. The comparison of actual and expected outputs
1493 questions
35
votes
3 answers

What testing does Selenium cover over and above Karma?

I understand that Karma is a JavaScript test runner, which can run tests in real browsers. If that is the case, what kind of test coverage does Selenium provide over and above Karma.
32
votes
16 answers

Running a single test in maven -> No tests were executed

When I run a single test in Maven with this command: mvn test -Dtest=InitiateTest I'm getting the following result: No tests were executed! It worked a couple of minutes ago, but now it stopped working for some reason. I tried running mvn clean a…
John Manak
  • 13,328
  • 29
  • 78
  • 119
31
votes
8 answers

How to stop all tests from inside a test or setUp using unittest?

I'm extending the python 2.7 unittest framework to do some function testing. One of the things I would like to do is to stop all the tests from running inside of a test, and inside of a setUpClass() method. Sometimes if a test fails, the program is…
30
votes
4 answers

How can I load fixtures from functional test in Symfony 2

My DoctrineFixturesBundle is installed and I can load fixture trough the command-line but , how can I load fixtures from my functional test ?
Ousmane
  • 2,673
  • 3
  • 30
  • 37
29
votes
6 answers

Send keys control + click in Selenium with Python bindings

I need to open link in new tab using Selenium. So is it possible to perform ctrl+click on element in Selenium to open it in new tab?
micgeronimo
  • 2,069
  • 5
  • 23
  • 44
28
votes
7 answers

Test Driven Development (TDD) for User Interface (UI) with functional tests

As we know, TDD means "write the test first, and then write the code". And when it comes to unit-testing, this is fine, because you are limited within the "unit". However when it comes to UI, writing functional tests beforehand makes less sense (to…
Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
28
votes
8 answers

Unit Testing or Functional Testing?

I have recently heard of Functional Testing over Unit Testing. I understand that Unit Testing tests each of the possibilities of a given piece of code from its most atomic form. But what about Functional Testing? This sounds to me like only testing…
Will Marcouiller
  • 23,773
  • 22
  • 96
  • 162
27
votes
7 answers

Robolectric: IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity

I'm new to Robolectric and instrumentation testing in general on Android. I followed along the guide for Robolectric for testing my first test. However I'm getting: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or…
timr
  • 6,668
  • 7
  • 47
  • 79
26
votes
4 answers

Functional testing with Rails and Devise. What to put in my fixtures?

Hi I'm wanting to do some functional testing of my Rails 3 app that uses Devise and CanCan. In my User model I have the users age, I want to test that a user can only visit a certain page if they are: Logged in Over 35 I have seen in the Devise…
Jez Caudle
  • 331
  • 1
  • 3
  • 6
25
votes
3 answers

Android IllegalStateException No instrumentation registered! Must run under a registering instrumentation

I am struggling to make this functional test with Espresso work on Android. My App is a Multdex app so I am following the instructions written at this link as follows : (https://developer.android.com/tools/building/multidex.html). I have already…
24
votes
3 answers

How to test the update method in Rails

I am struggling with testing the update method in Rails. I am using the standard built in testing framework (test::unit) and Rails 3.0.8. I have created a minimum application for testing this now, but I can't get it to work. Here is what I do: I…
Atle
  • 330
  • 1
  • 2
  • 7
24
votes
3 answers

Difference between functional test and end-to-end test

What is the difference between functional test and end-to-end test? Techopedia says that end-to-end test is a methodology used to test whether the flow of an application is performing as designed from start to finish. The purpose of carrying…
Brian
  • 12,145
  • 20
  • 90
  • 153
23
votes
3 answers

In Rails 3, I'm getting a NoMethodError for the recycle! method during testing

I've got a functional test that's using fixtures. I also am using fixtures in my Unit tests, but they work without flaw. When running the functional tests, I get a: NoMethodError: undefined method 'recycle!' for #
21
votes
5 answers

Testing File uploads in Symfony2

In the Symfony2 documentation it gives the simple example of: $client->request('POST', '/submit', array('name' => 'Fabien'), array('photo' => '/path/to/photo')); To simulate a file upload. However in all my tests I am getting nothing in the…
20
votes
2 answers

Skip an RSpec test case at runtime

I'm running RSpec tests against a website product that exists in several different markets. Each market has subtly different combinations of features, etc. I would like to be able to write tests such that they skip themselves at runtime depending on…
andrewdotnich
  • 16,195
  • 7
  • 38
  • 57