testing

What does unit testing mean to you?

G'day, I am working with a group of offshore developers who have been using the term unit testing quite loosely. Their QA document talks about writing unit tests and then performing unit testing of the system. This doesn't line up with my interpretation of what unit testing is at all. I am used to unit testing being a test or suite o...

Network simulator?

Do you know of software which is capable of emulating networking conditions such as constrained bandwidth, latency, closed ports, congestion, collision? Platform-specific is fine, but I'd like to be able to emulate hundreds or thousands of nodes under varying network conditions. ...

How do you measure the quality of your unit tests?

If you (or your organization) aspires to thoroughly unit test your code, how do you measure the success or quality of your efforts? Do you use code coverage, what percentage do you aim for? Do you find that philosophies like TDD have a better impact than metrics? ...

Temporary backup / restore of data while testing

I need to backup the original data from a table so I can fill it with test data, then restore it again after deving / testing etc.. Anyone know any quick ways to achieve this? I'm on SQL Server 2005. Thanks. ...

Is there a public secure FTP site for testing?

I'm working on automating a process that downloads a file from a secure FTP server. I've had problems with the vendor's security certificate and I want to find a clean secure FTP server to test against. Does anyone know if there is a publicly available secure FTP site that can be used to test programs against? ...

How can I test views in a Rails plugin?

I'm writing a Rails plugin that includes some partials. I'd like to test the partials, but I'm having a hard time setting up a test that will render them. There's no associated controller, so I'm just faking one: require 'action_controller' require 'active_support' require 'action_pack' require 'action_view' class MyTest < Test::Unit...

Is there anything like a small version of TFS?

Is there anything that has features of TFS(Like Source Control, Debug, Testing,...) that we can use in a workgroup with a small team(say 1-6 persons)? BTW: we are using VS 2008 Team Suit ...

Best tool to Stress Test a dynamic website?

We're looking for a cheapish, easy-to-use stress testing tool to record a user's flow through our website and then hammer it with that script until it falls over. Our requirements are: 1) Certain URL's need to be called with a Session Id that is returned in previous calls. So there must be some way of generating dynamic URL's based on d...

Are there any tools for checking symbols in cross compiled .so files?

I've got an application that loads .so files as plugins at startup, using dlopen() The build environment is running on x86 hardware, but the application is being cross compiled for another platform. It would be great if I could (as part of the automated build process) do a check to make sure that there aren't any unresolved symbols in ...

How would I go about figuring out the maximum load my server(s) can handle?

In Joel's article for Inc. entitled How Hard Could It Be?: The Unproven Path, he wrote: ...it turns out that Jeff and his programmers were so good that they built a site that could serve 80,000 visitors a day (roughly 755,000 page views) How would I go about figuring out the maximum load my server(s) can handle? ...

Testing HtmlHelpers in ASP.NET MVC

Is there any way to (unit) test my own HtmlHelpers? In case when I'd like to have custom control (rendered by HtmlHelper) and I know requierements for that control how could I write tests first - and then write code? Is there a specific (nice) way to do that? Is it worth? ...

What should I do while I'm waiting for the build / the tests / the database migrations to run?

As best-behaved as I try to be about keeping my unit tests disconnected from the database, etc. etc, it still seems inevitable that my day will be interrupted by small regular enforced breaks while I wait for my machine to do something boring. I personally find swordfighting makes me lose my train of thought. I'm often 'in the zone' w...

Testing Web Services Consumer

Here are some tools that I have found to test web services consumers: http://www.soapui.org/ https://wsunit.dev.java.net/ Are there any others? I would prefer testing frameworks that are written in Java or Python. ...

Is there a way to install all versions of all browsers on one machine?

Is there a way to install all versions of all browsers on one machine? ...

Mocks... and Verifiers?

Hello, currently, I am looking deeper into testing techniques, even though I am not sure if I still reside in the unittest-land or left it into the land of integration tests already. Let me elaborate a bit, Given two components A and B and A uses B, then we have a certain "upwards-contract" for B and a certain "downwards-contract" for ...

Do you have any SQL Injection Testing "Ammo" ?

When reading about SQL Injection and XSS i was wondering if you guys have a single string that could be used to identify those vulnerabilities and others. A string that could be thrown into a website database to black box check if that field is safe or not. (going to do a large test on a few inhouse tools) Rough example, wondering if y...

Simulating connection problems for .NET HttpWebRequest

Are there ways to programmatically simulate connection problems (slow connection, response does not complete, connection gets dropped, etc.) when using the HttpWebRequest class? Thanks EDIT: To elaborate more, I need this for debugging but would want to turn it into a test eventually. I'm using the async methods BeginGetRequestStream, ...

Which tools or methods would you suggest for creating large amounts of SQL test data?

I'd like to stress test some of my SQL queries and find out about bad query plans and bottlenecks. I plan to fill some tables with random test data. Are there tools or a set of scripts available for this purpose, preferably for SQL Server? Thanks! UPDATE: Sorry, didn't know these two question already existed: Data generators for SQL...

How do I test my pages in the AOL browser without installing AOL?

How can I test my site in AOL without installing AOL? I did that once on my machine, and it killed it... ;) I know, I know... I can use a Virtual Machine, but I'm really just looking for an AOL Browser... a separate browser install. ...

How do I write unit tests in PHP?

I've read everywhere about how great they are, but for some reason I can't seem to figure out how exactly I'm supposed to test something. Could someone perhaps post a piece of example code and how they would test it? If it's not too much trouble :) ...