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
2 answers

How do I mock a REST server with with multiple endpoints in the same test in Java?

I'm trying to test a Java method that makes a request to a remote REST server to retrieve some JSON data, extracts an ID from that JSON, then uses the ID to make another request to the same server at a different endpoint. Using Mockito's…
AdvilPill
  • 341
  • 2
  • 6
7
votes
2 answers

How do you import config sync files in a Drupal 8 functional test?

I would like to know how to import config sync files in my functional tests for modules I am testing. For instance, I have some custom content types I would like to test against, and there are a number of files in config/sync that pertain to the…
7
votes
2 answers

In memory sqlite always empty despite setup

I followed sitepoints Testing Symfony Apps with a Disposable Database Tutorial. I added Fixtures in my Testcase and no Errors appear during SetUp. If i add an Error in the Fixtures (e.g. leaving a nullable=false field empty) the Error is shown, so…
Andresch Serj
  • 35,217
  • 15
  • 59
  • 101
7
votes
1 answer

Merging test coverage and test results from multiple Jenkins jobs

Background: We have a rather large REST API written in Java that we're testing with combination of unit and functional tests. There are many variations that are required when testing it, particularly at the functional level. While the unit tests…
swampfox357
  • 111
  • 6
7
votes
3 answers

Concourse CI - how to run functional tests?

we are in the middle of process migrating from Jenkins to Concourse CI and everything was pretty smooth so far. But now I have the issue, that I don't know how to solve. I would like to get any advices from the community. What I am trying to do is a…
7
votes
2 answers

Symfony functional test fail but the same request works in browser

I followed the Symfony documentation about functional tests in order to write my first one, but I have some issues. The response I get via browser works good: But when I run phpunit -c app/ in the shell I get a failure. 1) …
Francesco
  • 405
  • 3
  • 15
7
votes
3 answers

Showing server errors in test output during Django StaticLiveServerTestCase?

Is there a way to show the errors that occurred on the server during a StaticLiveServerTestCase directly in the test feedback? That being, when some server function call errors and page just doesn't show up, the test execution by default has no…
Jenny Shoars
  • 994
  • 3
  • 16
  • 40
7
votes
3 answers

Make protractor test occupy the entire screen

I have seen a couple questions online related to this issue (How to set default browser window size in Protractor/WebdriverJS) but they don't address my issue. I have the tests that I want to be able to run successfully on a laptop screen or desktop…
es3735746
  • 841
  • 3
  • 16
  • 40
7
votes
1 answer

How do I fake uploading a file when testing Ruby Rack without the server?

For testing, I send a Rack::Request straight to the app, not using the server. def request_via_API( app, method, path, params={} ) # app should be API env = Rack::MockRequest.env_for( path, {:method => method, :params=>params} ) app.handle…
Alistair Cockburn
  • 939
  • 1
  • 7
  • 6
7
votes
5 answers

Fitnesse- Should tests talk to the database?

We are trying to use Fitnesse for our Functional test. Should i be mocking dependencies or should it be testing against the database? What are the Pros/Cons of either of the approach? The whole issue of testing against the DB is setting up data…
Naveen
  • 4,092
  • 29
  • 31
7
votes
1 answer

How to test email in functional test (Symfony2)

I'm trying to test email in functional test... My source code is the same as the example of the cookbook, the controller : public function sendEmailAction($name) { $message = \Swift_Message::newInstance() ->setSubject('Hello Email') …
Ousmane
  • 2,673
  • 3
  • 30
  • 37
7
votes
2 answers

Codeception - Acceptance tests work but Functional test don't

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…
7
votes
3 answers

How to automate functional/integration tests and database rollbacks

In contrast to my previous question, i'll try to give my requirements. I am trying to find some framework/methodology/"thing" that would fit the following: Ability to write an automated test, preferably written in Visual Studio, using C#. Test…
7
votes
1 answer

Functional tests for flash messages after redirect

I'm not sure how to check flash messages with functional tests. My problem has something to do with redirect_to because my test for flash[:error] DOES pass. Here is what my create action looks like: def create @user = User.new(params[:user]) …
bentrevor
  • 268
  • 7
  • 14
7
votes
1 answer

How can Geb functional tests be used for performance/capacity testing?

Is anyone aware of any tools that would allow Geb functional tests to be used for performance testing? In the "Continuous Delivery" book, it's suggested that functional tests can be used for performance testing, just wondering if anyone has any…
AndrewW
  • 678
  • 6
  • 18