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
7
votes
1 answer

How do I test multipart form data requests for file uploads in Play Framework 2.0 using Java?

I understand that you can do this using the Scala API as suggested here: https://groups.google.com/forum/?fromgroups=#!topic/play-framework/1vNGW-lPi9I But there seems to be no way of doing this using Java as only string values are supported in…
7
votes
3 answers

In Geb, what is the difference between displayed and present?

I am writing functional tests and dealing with a modal window that fades in and out. What is the difference between displayed and present? For example I have: settingsModule.container.displayed and settingsModule.container.present where…
ontk
  • 942
  • 1
  • 10
  • 24
7
votes
4 answers

Devise warden error thrown for authenticate_user in functional Rails test

I have a resource where the new action requires a user to be logged in to view. If a user tries to create a new resource without being logged in, they are redirected (302'd) to the login page. My functional test looks like this: test "should not…
Gerard
  • 4,818
  • 5
  • 51
  • 80
7
votes
3 answers

How to continue testing an iOS app, using UIAutomation instrument, even after the app exits?

I have an app. There is a button in the app, which, if clicked, exits the app. I am testing the app using UIAutomation instruments. I want to test this button. But after the app exits, the instrument stops giving an exception. What I want to do is…
6
votes
4 answers

How to test application controller before filter methods in Rails 3?

I have a before_filter on my ApplicationController class and I want to write a test for it? Where should I write this test into? I do not want to go into every subclass controller test file and repeat the test about this filter. Hence, what is the…
6
votes
2 answers

DRY controller specs with RSpec

I'm currently struggling a bit trying to keep my controller specs DRY and succinct and down to one assertion per example. I'm running into some difficulties particularly with where to place the actual controller request call within a structure…
Chris Vincent
  • 258
  • 3
  • 13
6
votes
3 answers

Android functional test; send geo location to emulator

Our android application is getting fairly big and we would like to use functional tests for our application to prevent regression. We are looking in to options to achieve this. We make use of geo locations, so now we test the app by entering…
jgeerts
  • 641
  • 8
  • 17
6
votes
3 answers

.net MVC functional testing

How do I functional test a .net mvc controller/action. I just came from many years of Rails development into a gig where I'm hacking on .net mvc. It hurts but I'm hoping that a large part of this is just the learning curve. What's not immediately…
Cory
  • 2,538
  • 2
  • 18
  • 19
6
votes
1 answer

Functional Testing Events and Subscribers in Symfony 4

I need to functionally test the a subscriber in Symfony 4 and I'm having problems finding how. The Subscriber has the following structure /** * Class ItemSubscriber */ class ItemSubscriber implements EventSubscriberInterface { /** * @var…
Belen
  • 673
  • 2
  • 10
  • 25
6
votes
2 answers

What is the best tool for functional testing of a complex web application

I have a fairly complicated web application that is written using Grails. I am trying to set up a functional testing framework, initially using Selenium, but have run into two problems. Part of the page I wish to test involves a treelike data…
mojones
  • 1,640
  • 3
  • 15
  • 26
6
votes
3 answers

Publishing test assemblies with artifacts in order to use them during functional tests on VSTS

I am having a really hard time trying to figure out how to properly configure functional tests on my realease pipeline. I have a solution that contains some web projects being built using the default build configuration in VSTS. The artifact is ok…
6
votes
3 answers

Unit tests and functional tests in CodeIgniter

Is there any testing framework for CodeIgniter?
Laura
  • 88
  • 6
6
votes
1 answer

To what extent is clojure.spec intended to replace traditional functional automation testing?

As screencasts and blogs start to appear around the new clojure.spec feature in Clojure 1.9, it's becoming clear that clojure.spec is capable of doing a lot of the risk mitigation that's previously been performed by more "traditional" automated…
monch1962
  • 5,151
  • 5
  • 31
  • 38
6
votes
2 answers

PHPUnit test code inside catch block

I have a Symfony controller using try...catch. I use phpunit to test my application. I have searched but havent found a way how to test the code inside a catch exception. How can I force php unit to pretend that something went wrong and enters the…
6
votes
1 answer

how to automate the functional testing in yii2?

I use the codecept functional testing for test my APIs in yii2.I put the arguments hardcoded for testing like this use tests\codeception\backend\FunctionalTester; $I = new FunctionalTester($scenario); $I->wantTo('Check when…
Anway Kulkarni
  • 261
  • 2
  • 11