functional-testing

Difference between acceptance test and functional test?

What is the real difference between acceptance tests and functional tests? What are the highlights or aims of each? Everywhere I read they are ambiguously similar. ...

Problems with redeclaring classes when using PHP's class_alias in a functional test

Hi I'm using PHP 5.3's class_alias to help process my Symfony 1.4 (Doctrine) forms. I use a single action to process multiple form pages but using a switch statement to choose a Form Class to use. public function executeEdit(sfWebRequest $request) { switch($request->getParameter('page')) { case 'page-1': class_alias('MyFor...

mime type not found for file upload in Symfony functional test

When I run my functional tests through Symfony, the uploaded file is not being supplied with a mime type. My test case shows: $browser->info('1 - Test Upload Form')-> get('/formpage')-> setField('myform[file]', sfConfig::get('sf_upload_dir').'/example.doc')-> click('input[type=submit]')-> end ; And is executed on the command ...

Solve ExtJs dynamic Id generation problem when using Selenium Tool

I am new-bie when it comes to testing and right now I am trying to test a web application and its UI is developed using EXTJS. The problem I am facing is when I try to Record a Macro and automate the Test I have one major problem. 1) ExtJs Ids are dynamic (Say the first time when I record the macro the Id is extj-343 the next time when ...

Grails 1.3.3 and Functional Test plugin 1.2.7 issues

Has anyone had any trouble getting Functional Test plugin working in Grails 1.3.3? I've used it in previous projects with no problem, but just tried installing it into my latest project with no luck. Installation seems to go fine. Running the script: grails create-functional-test XXXXX results in no test file. Here's the output: ...

QTP - JCoverage tool

Hi All, I need to integrate qtp with Cobertura, if i can do that. Just what i want is to place cobertura instrumented class on the server. Then I would be performing functional testing by qtp on this instrumented bytecode and at the same time what i want is to cobertura to capture the result so as to get code coverage. CAN I DO THIS?...

How can I simplify testing of side-effect free methods in Java?

Functions (side-effect free ones) are such a fundamental building block, but I don't know of a satisfying way of testing them in Java. I'm looking for pointers to tricks that make testing them easier. Here's an example of what I want: public void setUp() { myObj = new MyObject(...); } // This is sooo 2009 and not what I want to wr...

I want to dynamically generate software test procedure documents, what tools should I use?

In order to keep our software test procedures in line with our requirements documentation, I want to generate test procedures from smaller tests. Basically I want each statement in a lower level requirements document to be linked to a very atomic series of steps to test that requirement for pass/fail. Each of these short descriptions of...

How to create admin user in django tests.py

I'm trying to create an admin user as part of my tests.py to check on persmissions. UPDATE: The tests.py is standard format that subclasses TestCase and the code below is called in the setUp() function. I can create a normal user but not an admin user. If I try this: self.adminuser = User.objects.create_user('admin', 'admin@test....

distributed unit testing/scenario based unit testing with boost.test

Hello, I am developing unit test cases for an application using Boost.test libraries. There are certain APIs which can directly be tested. But, there are APIs which require interaction between test machines. So for example, execution of a certain API in machine 1 should trigger an API in test machine 2 and its response needs to be use...

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? ...

Best way to test CRC logic?

How can I verify two CRC implementations will generate the same checksums? I'm looking for an exhaustive implementation evaluating methodology specific to CRC. ...

Good examples of Android projects covered by tests?

Could you point some good examples of Android projects that have unit testing in action? It would be great to learn by example from those. ...

What are the pros & cons of functional testing frameworks for a new grails application?

I've got analysis paralysis looking at all the different functional testing options for a new grails (v1.3.4) application. I've looked at WebDriver/Selenium (which I've used before) WebTest/Canoo Geb Tellurium Grails Functional Test and there must be others. I think some of the criteria that I would use to make a decision include (in...

What makes a good test procedure for functional requirements?

I'm the lead developer on a new project and have the opportunity to work with the system engineers to create our template for testing functional requirements. I was wondering if anyone had input on what makes a good test procedure template or had an example of a great template. Thanks! ...

Web-based test plan tracking tool?

I see a lot of questions about test management tools, but none of them seem to do quite what I want them to do. Can anyone help me find what I'm looking for? Here are the kinds of features that I want in a test management tool: Must-have: Easy to add and review test plans with execution steps Tag tests to associate with a particular f...

Web-based test plan tracking tool?

I see a lot of questions about test management tools, but none of them seem to do quite what I want them to do. Can anyone help me find what I'm looking for? Here are the kinds of features that I want in a test management tool: Must-have: Easy to add and review test plans with execution steps Tag tests to associate with a particular f...

Testing a ApplicationController before_filter in Rails

I have an application that detects the subdomain on a request and sets the result to a variable. e.g. before_filter :get_trust_from_subdomain def get_trust_from_subdomain @selected_trust = "test" end How can I test this with Test::Unit / Shoulda? I don't see a way of getting into ApplicationController and seeing what's set... ...

Software Testing

After completion of the testing process in a software product, there is no defect.. then what is our next step?? ...

how can I stop all tests from inside a test or setUp using python's unittest framework

I'm extending the python 2.7 unittest framework to do some function testing. One of the things I would like to do is to stop all the tests from running inside of a test, and inside of a setUpClass method. Sometimes if a test fails, the program is so broken it is no longer of any use to keep testing, so I want to stop the tests from runn...