testing

get method for testing in rails

Hi, I'm following along with RailsSpace: Building a Social Networking Website with Ruby on Rails by Michael Hartl. Running rails v2.3.2. I've gotten to the 5th chapter in which testing is introduced. The following is supposed to match the title of the various pages to strings using the get method: require File.dirname(__FILE__) + '/../...

list Globalization testing tools... (automation tools)

Hi All, we are working on a Globalization testing, so if any of you have worked on the same using automation tools can you guys name the different tools used for Globalization testing in your earlier projects like Selenium, QTP…etc, please share the approach with me or mail me for [email protected]. Even if possilbe tell which com...

How to do a meaningful code-coverage analysis of my unit-tests?

I manage the testing for a very large financial pricing system. Recently our HQ have insisted that we verify that every single part of our project has a meaningful test in place. At the very least they want a system which guarantees that when we change something we can spot unintentional changes to other sub-systems. Preferably they want...

Dummy SMTP Server for testing apps that send email

I have a lot of apps that send email. Sometimes it's one or two messages at a time. Sometimes it's thousands of messages. In development, I usually test by substituting my own address for any recipient addresses. I'm sure that's what everybody else does, until they get fed up with it and find a better solution. I was thinking about cr...

Is it possible to test a sequence of asynchronous function calls with D.O.H

I am trying to use doh.Deferred to write a test that will check the following sequence of events: login with user A (asynchronous) log out (synchronous) login with user A (asynchronous) The return value of the second callback function is another doh.Deferred object. I was under the impression that the callback chain of d will wait f...

UISpec4J: Returning a Trigger from a Combobox selection?

This question is for the UISpec4J testing framework, for testing Java GUIs... I'm trying to test an error message pop-up window (modal) that results from making a selection from a ComboBox, but I'm not sure how to return a Trigger object from the select action. Here's a snippet: WindowInterceptor .init(window.getComboBox("ComboBox...

Branch testing

if(condition1) dosomething1(); if(condition2) dosomething2(); if(condition3) dosomething3(); Is it full branch testing if I have two test cases in this example condition1 = condition2 = condition3 = true; condition1 = condition2 = condition3 = false; Or have I misunderstood it? Trying to figure out the difference between branch ...

How can I easily add the uninstalled Perl modules in my development directory to @INC?

I'm writing Perl t/*.t tests for an existing project. During development, I'd like to use 'prove' to run select tests at arbitrary depths in the module directory hierarchy. I've created some t/ directories at the same depth as the *.pm files I'd like to test. Unfortunately, the lib/ at the base of the project's code is not in @INC. What...

Is edit-triggered testing the next step?

I have just read Michael C. Feathers great book Working Effectively with Legacy Code, the bible of introducing tests to legacy code. In this book he describes something called Edit-triggered testing: If it isn't out by the time this book is released, I suspect that someone will soon develop an IDE that allows you to specify a set of ...

Discovering other objects while doing TDD

I am trying to practice TDD. As I understand it, doing TDD should go like this I write a test list for the interface/class I am going to develop. I start with the easiest yet to implement test from my test list. The test gets written, no implementation code yet. The interface of the class gets written to make the code compile. The t...

Testing HTML email rendering

Are there any good tools to easily test how HTML email will look across different email clients? I prefer something with instant feed back rather than a submit and wait service like http://litmusapp.com Or at the very least a way to test the Outlook 2007/MS Word rendering? I found this related question but it doesn't specifically addres...

Load up the lib files when running Test::Unit tests in Rails?

I've added a few modules and dropped them in my /lib directory and I think the lib directory is loaded magically by Rails (unless I loaded the lib directory somewhere early in my project and forgot about it). However, when I run unit tests that require my additional modules, they are not loaded. Should the lib directory be loaded autom...

How to deal with setUp() addiction when writing tests?

I'm somewhat new to writing tests. I've find myself struggling with keeping my setUp's clean and concise, instead trying to accomplish too much with an uber-setUp. My question is, how do you split up your testing? Do your tests include one or two lines of independent step code? def test_public_items(): item1 = PublicItem() it...

Tool for finding ASP.NET tag errors?

Hi there, is there a tool that will run through an ASP.NET site, and reports on any pages that error? We're starting a new web app project at work, and I'm thinking over the things it would have been handy to have in the last. I'm looking to find those little mistakes that creep through the gaps with server tags - things like: Include...

Can a test class become a "God object"?

I'm working on a backend for an open source Python ORM. The library includes a set of 450 test cases for each backend, all lumped into one giant test class. To me, that sounds like a lot for one class, but I've never worked on a project that has 450 test cases (I believe this library has ~2000 test cases not including the test cases fo...

Regression testing in C++

I can't use unit tests for some parts of code so I'm falling back to regression tests. I would like to check whether my program behaves in the same way after some modifications. And by behaviour I mean mostly a state of data structures. So far I was serializing them into human readable text format and dumped to some files in the first r...

Extracting rows from a DB including depedent rows

I'd like to generate insert-strings for a row in my Oracle database including all its dependent rows in other tables (and their dependent rows). Example: CREATE TABLE a ( a_id number PRIMARY KEY, name varchar2(100) ); CREATE TABLE b ( b_id number PRIMARY KEY, a_id number REFERENCES a(a_id) ); When I extract the row from a wit...

Test IDs for Test Automation in HTML Markup?

We use automated tests to verify functionality of our web application. In order to make assertions in test cases less complicated and more flexible, we are considering the introduction of 'TestIDs', i.e. IDs in the HTML markup that help testcases find and verify elements on the page. Additionally, these TestIDs would allow more specific ...

How to verify a result of program that is hard to grasp?

How to verify a result of program that is hard to grasp? For example a year ago I had to wrote a B tree as schoolwork and I really struggled with that mainly because I was clueless how to verify proper result. What strategies do you use in such scenarios? Visualization? Robust input-->result sets of testing data? What do you do when is h...

Acquiring / accessing Citrix environment for QA purposes

We have a Windows Forms, .NET 2.0 application delivered via ClickOnce and driven by web services, that our customers occasionally wish to deploy into a Citrix environment. In some cases, the customer elects to allow our application to be deployed locally to user machines and bypass the Citrix server, in one case we've provided a static ...