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

Ruby on Rails functional testing with the RESTful Authentication plugin

I started writing functional tests for my rails app today. I use the RESTful authentication plugin. I ran into a couple confusing things I hope someone can clarify for me. 1) I wrote a quick login function because most of the functions in my rails…
Tony
  • 18,776
  • 31
  • 129
  • 193
8
votes
4 answers

How to testing nested attributes in rails?

I have a rails controller, defined here: https://github.com/abonec/Simple-Store/blob/master/app/controllers/carts_controller.rb On the cart page a user can specify the quantity of line_items by posting nested attributes. The parameters look like…
abonec
  • 1,379
  • 1
  • 14
  • 23
8
votes
4 answers

Functional testing automation tools for iPad/iPhone?

There doesn't seem to be many choices out there for running functional tests on the iPad/iPhone. A quick search brought up a few options: FoneMonkey, Frank, UI Automation. Does anyone have experience with any of these or have suggestions for better…
8
votes
3 answers

Has anyone used Minitest::Spec withing a Rails functional test?

The spec library in Minitest is great. I've been able to use it within Rails unit tests no problem. However, Rails functional test inherit from ActionController::TestCase which provides instance variables like @controller in it's setup. Has anyone…
user464839
  • 81
  • 3
8
votes
1 answer

Symfony functional testing asserting after redirect

I am currently trying to write functional tests but i'm getting stuck after logging in and redirecting to a new page. Everything works ok until last assert. The redirect works ok,the content page after redirect is ok, but i get an error on last…
Osmiumbin
  • 93
  • 1
  • 4
8
votes
3 answers

tdd - creating tests for 3rd party code

How do I create unit tests if the method or procedure I'm testing against relies on a piece of code from a 3rd party? Say, I have a method that uses classes from a third party source that requires setup that can only be done in a functional test.…
8
votes
4 answers

How to check if an element is not clickable with Protractor?

It's trivial to test if an element is clickable with Protractor, but I'm stuck scratching my head trying to figure out how to check if an element is not clickable. I've attempted to wrap the click function in a try/catch so that when an error is…
Seer
  • 5,226
  • 5
  • 33
  • 55
8
votes
3 answers

Functional testing in Swift. Simulate the Application flow

I'm trying to perform some really simple feature/functional testing in Swift but I have some doubts that I need to resolve to be able to create useful tests. I want to verify that a Controller presented by another Controller exists into the…
MatterGoal
  • 16,038
  • 19
  • 109
  • 186
8
votes
1 answer

In a Rails controller test, how to access a different controller action?

In a functional test, I want to call an action in another controller.
user664833
  • 18,397
  • 19
  • 91
  • 140
8
votes
2 answers

CasperJS, parallel browsing WITH the testing framework

Question : I would like to know if it's possible to do parallel browsing with the testing framework in one script file, so with the tester module and casperjs test command. I've seen some people create two casper instances : CasperJS simultaneous…
Fanch
  • 3,274
  • 3
  • 20
  • 51
8
votes
3 answers

Symfony2 Functional Testing - Click on elements with jQuery interaction

I'm doing some functional tests for an application done with Symfony2 (2.1) and I'm stuck with a problem. I have some parts of the website that load when the user clicks a link or other element, but these actions are performed using jQuery and…
8
votes
3 answers

Django Test framework with file based Email backend server

I have formulated test cases in Django framework. Use Case: I am using API that register user by sending them an Email and when they click on the link provided in the Email their account get activated. In my settings.py I am using EMAIL_FILE_PATH …
Anuj
  • 533
  • 1
  • 7
  • 14
7
votes
1 answer

Functional testing for Mac App

Is there any functional testing framework for Mac apps, similar to Cucumber framework?
Kiran Balegar
  • 916
  • 6
  • 16
7
votes
2 answers

How to test if correct layout was used in controller in Rails 3

In Rails 2 I would do def assert_layout(layout_name) assert_equal layout_name, @response.layout end and: assert_layout 'layouts/layout_name' This doesn't work in rails 3 anymore (undefined method `layout'). How should I change the custom…
deb
  • 12,326
  • 21
  • 67
  • 86
7
votes
2 answers

Symfony Codeception functional test: environment variable not found

I'm using Codeception v2.4.1 with PHPUnit 7.1.3 in a new Symfony 4 project. I created a functional test, and attempt to run it, and receive an error: ./vendor/bin/codecept run functional There was 1 error: --------- 1) CustomerControllerCest:…
Geoff Maddock
  • 1,700
  • 3
  • 26
  • 47