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

How to do functional testing of Rails routes with constraints?

I've got a Rails 3 application, and am trying to write tests for all the routing. Imagine this very simple route: resources :jobs, :constraints => {:id => /\d+/} I now wish to test this. In my functional test, it's easy enough to write an assertion…
Tom Morris
  • 3,979
  • 2
  • 25
  • 43
0
votes
1 answer

Android End to End testing with calabash

I am new to using calabash for android, which is a end to end testing framework for android. Iam trying to test a feature where on pressing a button in my app I am taken back to the android home screen. Could someone help me with the test for this…
Satyam
  • 645
  • 2
  • 7
  • 20
0
votes
1 answer

Making remote web requests in rspec

I have a php app that is going through a migration to rails. We are currently sharing the session from php to rails using memcached. The problem that has arisen is now testing has become difficult. I can't make remote requests using capybara to…
partkyle
  • 1,458
  • 1
  • 15
  • 25
0
votes
1 answer

Why Does Rails Function Test Fail When I try to Save Object To DB

I am trying to test my show action, but I first must save an object to the DB for it to show. test "should get show" do post :create, question: { question: 'apple'} get :show, {'id' => "1"} assert_response :success assert_not_nil…
Noah Clark
  • 8,101
  • 14
  • 74
  • 116
0
votes
1 answer

symfony 1.4 functional test report

I write a functional test for my symfony software and run it from command prompt. Now I want to get the result of functional test as a report(in a text file or word file etc). How can U resolve this issue ?
Chaity
  • 27
  • 1
  • 6
0
votes
1 answer

Functional testing with Jmeter

I want to check if the value of a cookie change after each reload of a web page. I've tryied to use beanshell for the purpose but haven't succeed yet. Any example or tutorial ?
Dinh
  • 1
  • 1
0
votes
1 answer

Ruby on Rails Functional Test

i've this code : def test_create assert_difference('Comment.count') do post :create, :comment => {:comment => 'Comment'} assert_not_nil assigns(:comment) assert_equal assigns(:comment).comment, "Comment" assert_equal…
0
votes
1 answer

How to automate actions performed on the iPhone simulator?

Right now I am automating tests for an app using UIAutomation class. But my app has certain features which, I believe, can't be tested using just UIAutomation. For example, there is a feature that if a new contact is added to the addressbook, a…
0
votes
1 answer

How to use the function ` performTaskWithPathArgumentsTimeout` of the UIAutomation class?

I am automating some test cases for an iPhone app and I am using the UIAutomation class. I want to use the function performTaskWithPathArgumentsTimeout, which I believe runs some external script. But I cant use it. I have the following code: #import…
0
votes
4 answers

Agile Web Development w/ Rails (4th e) Cart Issue

I'm working through Agile Web Dev w/ Rails book (4th ed) and I'm totally stuck... I'm running Rails 3.2.3 on Mac OSX. Im on task D-3: Adding a Button.... it started with the test:functionals not working at the end of the chapter... it gave me an…
0
votes
2 answers

How can I test if a link is opened from my app using UIAutomation?

I have this app that has a login screen with fields for username and password. Below the fields there is this 'Forgot password link'. I am testing this app using UIAutomation class. How can I test if, when clicked on that link, the linked page is…
0
votes
1 answer

Rails functional testing on has_and_belongs_to_many issue

I am relatively new to Ruby and rails and am stuck on a issue I cannot get my head around. I have two models PricingRuleType and PricingRule that are set up as shown below. class PricingRuleType < ActiveRecord::Base attr_accessible :type_of_rule …
kushaldsouza
  • 710
  • 5
  • 12
  • 36
0
votes
1 answer

assert_routing with method is giving an error instead of failing

In my rails 3.2.3 app, I have a topics controller, which is modeled as a resource. I want to write a functional test to verify that post on /topics is a valid route. This should fail first, and then I will add the code to fix it. However, I am…
Anand
  • 3,690
  • 4
  • 33
  • 64
-1
votes
0 answers

Access to item of desktop application

What I'm trying to do is some thing similar to rational functional tester. Recording step for functional testing (of desktop application, for example), save and run. This means that the functional test application would be access to all property of…
Kasper
  • 685
  • 2
  • 11
  • 30
-1
votes
1 answer

Testing the matlab application

I am doing the project in matlab. I want to test it. Is there any facility to test the matlab project online. I had .exe file for my project or is there any tool in matlab to test the project including the GUI and functions.
Prasad Pande
  • 488
  • 9
  • 24