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
12
votes
6 answers

difference between functional testing and system testing?

I heard that system testing has two types 1)functional Testing 2)Non functional testing But later in another website i have seen below statements In the types of functional testing following testing types should be cover: Unit Testing Smoke…
maho
  • 213
  • 2
  • 3
  • 8
12
votes
8 answers

Why are functional tests not enough? What do unit tests offer?

I just had a conversation with my lead developer who disagreed that unit tests are all that necessary or important. In his view, functional tests with a high enough code coverage should be enough since any inner refactorings (interface changes,…
Epaga
  • 38,231
  • 58
  • 157
  • 245
12
votes
3 answers

Android functional testing with Dagger

I’m trying to test an Activity with Mockito & Dagger. I have been able to inject dependencies to Activity in my application but when testing the Activity, I have not been able to inject mock to the Activity. Should I inject Activity to test or let…
12
votes
5 answers

How To Make a "Corrupt" File

Suppose, during testing, you wish to test how the software handles a "corrupt" file. I have two questions: 1. In general, how do you define a "corrupt" file? In other words, what constitutes a corrupt file? As an example: Suppose you need to test a…
user807566
  • 2,828
  • 3
  • 20
  • 27
11
votes
3 answers

How to organize and run unittests and functional tests separately using nosetests

I have the following typical python project file structure packageA +----subpackage1 +----classa.py +----subpackage2 +----classb.py +----test +----subpackage1 +----classa_test.py …
sasker
  • 2,221
  • 2
  • 21
  • 26
11
votes
3 answers

How to pause the test script for 3 seconds before continue running it? Playwright

I'm running a test called create admin. The test will first create admin, then check if the admin was created successfully. In the script, I have a part of code where I want to wait for 3 seconds before continuing because whenever the submit button…
jialeee17
  • 601
  • 2
  • 7
  • 12
11
votes
1 answer

Selenium Page Object Reuse

I really like how selenium 2 by convention pushes you towards using PageObjects as POJOs, and then simply using the PageFactory to instantiate the fields in this class. What I am finding limiting is that we reuse a lot of elements on many different…
Scott
  • 9,458
  • 7
  • 54
  • 81
11
votes
1 answer

How to test cookies state in functional tests in Rails?

How do I test a given controller action that uses cookies? How to set cookies in functional tests and how to get them?
Szymon Jeż
  • 8,273
  • 4
  • 42
  • 60
11
votes
3 answers

Hovering over a link in nightwatchjs

I have been using nightwatch.js and always clicked around elements. Is there a way we can hover over a link or button?
user461112
  • 3,811
  • 3
  • 20
  • 25
11
votes
2 answers

Nightwatch js how to assert multiple elements

i'm trying to assert/verify multiple elements for an attribute with Nightwatch.js. I tried to use the "elements" command by selenium but it seems to not actually return a tag. browser.elements('css selector','icon_checkmark', function (result) { …
11
votes
2 answers

LiveServerTestCase hangs at python-requests post call in django view

I'm writing a Django app that uses a REST api I created. The purpose is to prove api use cases using the web app. In my view, I therefore call the api using the python-requests library like so: def my_view_method(request): if request.method ==…
theraju
  • 461
  • 4
  • 13
11
votes
2 answers

How to make https requests in symfony2 functional test?

Hi i am using phpunit for testing and Symfony\Bundle\FrameworkBundle\Test\WebTestCase for unit testing. So far there were no problem but now we start to use https and my tests are not working anymore.I start to get 301 response code for my every…
Omer Temel
  • 804
  • 1
  • 7
  • 18
11
votes
2 answers

Symfony2 functional test to select checkboxes

I'm having trouble writing a Symfony 2 functional test to set checkboxes that are part of an array (i.e. a multiple and expanded select widget) In the documentation the example is $form['registration[interests]']->select(array('symfony',…
Craig
  • 8,093
  • 8
  • 42
  • 74
10
votes
3 answers

Looking for a comprehensive Java testing book covering unit, functional, integration and scenario tests

We're developing a data heavy modular web application stack with java but have little expert knowledge concerning tests. What we currently do is using JUnit to run a mixture of unit tests and functional tests. I described the problem in more detail…
Pete
  • 10,720
  • 25
  • 94
  • 139
10
votes
1 answer

How to find a text node element with Mink?

I was wondering, i have this HTML :
  • sf_tristanb
    • 8,725
    • 17
    • 74
    • 118