testing

Software Testing Books

So I've recently read Test Driven Development by Kent Beck, which I found interesting (although it felt a bit light on details) and I've started using unit tests in my programming which I'm really enjoying the added peace of mind about code quality versus ad hoc testing, although I'm not at the stage of doing full fledged TDD (yet). I...

Unit testing with network-reliant code

I'm trying to be better about unit testing my code, but right now I'm writing a lot of code that deals with remote systems. SNMP, WMI, that sort of thing. With most classes I can mock up objects to test them, but how do you deal with unit testing a real system? For example, if my class goes out and gets the Win32_LogicalDisk object fo...

How can I avoid global state?

So, I was reading the Google testing blog, and it says that global state is bad and makes it hard to write tests. I believe it--my code is difficult to test right now. So how do I avoid global state? The biggest things I use global state (as I understand it) for is managing key pieces of information between our development, acceptance...

Are there conventions for function names when using the Perl Test::More?

Are there conventions for function names when using the Perl Test::More or Test::Simple modules? I'm specifically asking about the names of functions that are used to set up a test environment before the test and to tear down the environment after successful completion of the test(s). cheers, Rob ...

Automated Unit Testing Gen Tools for .NET

Looking to get your take on an automated testing tool (voting should bring good ones to the top) Ideal tool would: Eliminate the need to present a set of values to a method. employ techniques such as Interactive Exploratory Testing where the code is examined to determine what values are required to exercise all code paths. i.e. the ...

Best way to test interface implementations

Assume an interface, for example: public interface ISimple { void GetBytes(byte[]); void GetNonZeroBytes(byte[]); } Then one or more implementation of that interface. What is the best way to test those implementations wile still adhering to DRY? What I have been doing so far is creating a base test fixture will all the test ...

How do I become "test infected" with TDD?

I keep reading about people who are "test infected", meaning that they don't just "get" TDD but also can't live without it. They've "had the makeover" as it were. The question is, how do I get like that? ...

Becoming a programmer while working in Quality Assurance

Hi All, I am currently working as a Quality Assurance manager for a software development company. However, I am finding that what I really enjoy is programming. Unfortunately, I feel I do not have enough experience to actually be hired as a programmer. I have the opportunity to do some programming in my job (for example I am writing a...

Are there any good automated test suites for Perl?

Can someone suggest some good automated test suite framework for Perl? ...

Bad Smells When Reviewing Code Affects Approach?

G'day, I was thinking about a comment from Kristopher Johnson about my answer to this question regarding Software Development Quality. I'd posted a list of software quality metrics that I could think of off the top of my head that included: McCabe Cyclometric Complexity - basically a measure of the number of linear paths through code...

Virtual Serial Port for Linux

I need to test a serial port application on Linux, however, my test machine only has one serial port. Is there a way to add a virtual serial port to Linux and test my application by emulating a device through a shell or script? Note: I cannot remap the port, it hard coded on ttys2 and I need to test the application as it is written. ...

How do you make a build that includes only one of many pending changes?

In my current environment, we have a "clean" build machine, which has an exact copy of all committed changes, nothing more, nothing less. And of course I have my own machine, with dozens of files in an "in-progress" state. Often I need to build my application with only one change in place. For example, I've finished task ABC, and I wa...

How do you test the performance of a website?

Are there specific tools to perform the following job or there is a suite of tools that help me do the following: How can I check page load times? How can I track down a page that hogs memory? How can I track a page that consumes a lot of CPU cycles? I just want to glean from the experience of this forum and come across a holistic v...

Should I choose scripting or compiled code for small tasks?

I'm a Java programmer, and I like my compiler, static analysis tools and unit testing frameworks as tools that help me quickly deliver robust and efficient code. The JRE is pretty much everywhere I would work, too. Given that situation, I can't see a reason why I would ever choose to use shell scripting, vb scripting etc, no matter how ...

How can I test my web pages in Microsoft Internet Explorer on a Mac?

I want to test the web pages I create in all the modern versions of Internet Explorer (6, 7 and 8 beta) but I work mainly on a Mac and often don't have direct access to a PC. ...

Test an object for NOT being a type

I know how to test an object to see if it is of a type, using the IS keyword e.g. if (foo is bar) { //do something here } but how do you test for it not being "bar"?, I can't seem to find a keyword that works with IS to test for a negative result. BTW - I have a horrible feeling this is soooo obvious, so apologies in advance... ...

Users of Gallio, what Advantages and Disadvantages have you experienced using this Tool?

For those of you familiar with Gallio, what Advantages and Disadvantages have you experienced using this tool, a so-called Test Automation Platform? ...

How to find (and keep) a tester who is developer

I work for a software vendor whose market is developer tools and we have been looking for a QA person for our products. Since we are a small shop the position will be a combination of Support and QA however since we make developer tools, our support consists in large part of actual development (in that the person must read and understa...

Can you recommend low cost automated testing tools for a .NET Winforms application?

Looking for an automated testing tool to support functional/regression testing for a .NET Winforms client server commercial application. The top tier products: HP QuickTest Pro, Borland SilkTest, IBM Rational Functional Tester and Compuware TestPartner are in the 5-10K price range. Would you recommend a lower cost tool set for function...

How to test a WPF user interface?

Using win forms with an MVC/MVP architecture, I would normally use a class to wrap a view to test the UI while using mocks for the model and controller/presenter. The wrapper class would make most everything in the UI an observable property for the test runner through properties and events. Would this be a viable approach to testing a ...