automated-tests

Automated testing a game

Question How would you go adding automated testing to a game? I believe you can unit test a lot of the game engine's functionality (networking, object creation, memory management, etc), but is it possible to automate test the actual game itself? I'm not talking about gameplay elements (like Protoss would beat Zerg in map X), but I'm t...

Web Application Testing for .Net (WatiN Test Recorder)

I've been using WatiN as a testing tool for my current project. Besides the minor bugs with the Test Recorder, I've been able to use it and automate a lot of my tests in conjunction with NUnit. Anyone else out there with experience with different tools they might suggest? ...

Refactoring for Testability on an existing system

I've joined a team that works on a product. This product has been around for ~5 years or so, and uses ASP.NET WebForms. Its original architecture has faded over time, and things have become relatively disorganized throughout the solution. It's by no means terrible, but definitely can use some work; you all know what I mean. I've been pe...

Is there any way to automate windows forms testing?

I am familiar with nunit for unit testing of the business layer however I am looking now to automate the test of the win forms gui layer. I have seen watin and the watin recorder for automating tests on web application by accessing the controls and automating them. However I am struggling to find a watin equivalent for windows forms (...

How are you generating tests from specifications?

I came across a printed article by Bertrand Meyer where he states that tests can be generated from specifications. My development team does nothing like this, but it sounds like a good technique to consider. How are you generating tests from specifications? How would you describe the success your having in discovering program faults via ...

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

Is there a way to make WatiN click a link before the page finishes loading

We're using WatiN for testing our UI, but one page (which is unfortunately not under our teams control) takes forever to finish loading. Is there a way to get WatiN to click a link on the page before the page finishes rendering completely? ...

Pex users: what are your Impressions of Pex and Automated Exploratory Testing in general?

Those of you who have used Pex, what do you think its advantages and disadvantages are of Pex as a tool? Also, what do you think are the advantages and disadvantages of "Automated Exploratory Testing" in general, as a supplement to TDD/Unit Testing? ...

persistence.xml not found during maven testing

I'm trying to load test data into a test DB during a maven build for integration testing. persistence.xml is being copied to target/test-classes/META-INF/ correctly, but I get this exception when the test is run. javax.persistence.PersistenceException: No Persistence provider for EntityManager named aimDatabase It looks like it...

Is there a specification-based testing framework for C# .Net 2.0?

For example, Reductio (for Java/Scala) and QuickCheck (for Haskell). The kind of framework I'm thinking of would provide "generators" for built-in data types and allow the programmer to define new generators. Then, the programmer would define a test method that asserts some property, taking variables of the appropriate types as paramet...

Best automated testing tool for web applications?

Having repeatable automated tests of web applications lets one detect regression with very little ongoing labour cost (the main cost being writing the test scripts up front). However there seems to be a bewildering array of such tools available. We used eValid in the past but now use Sahi. Ideally we'd like a tool for which IT-literate ...

Automated integration testing a C++ app with a database

I am introducing automated integration testing to a mature application that until now has only been manually tested. The app is Windows based and talks to a MySQL database. What is the best way (including details of any tools recommended) to keep tests independent of each other in terms of the database transactions that will occur? (...

How do I get my Visual Studio Test Suite web test to iterate over my data source?

I have Visual Studio web test attached nicely to a data source, but I need to be able to iterate over each entry in the data source. How should I do this? ...

Mercury Quick Test Pro and Virtual machines: Works from one client machine but not another

I have a virtual machine (VMware) with Mercury Quick Test Professional 9.2 installed. I have a script to test an application, written in VB.NET using the Infragistics library. If I access this virtual machine using my laptop (using Remote Desktop), everything works fine, the script completes without a problem. My laptop runs XP, with Wi...

How to automate the test running process using TestComplete?

We are trying to integrate tests in our daily builds using TestComplete, so far we have a machine dedicated for testing and our build script copies to this machine everything TestComplete needs for its tests (Application, Database, Test script project and source files, etc). Basically we can open the TestComplete project manually and ru...

How do I do Dependency Injection in a test project (TFS 2008) using Castle

I'm using Castle Windsor for dependency injection in my test project. I'm trying to create an instance one of my 'Repository' classes. "It works fine on my machine", but when I run a nightly build in TFS, my tests are not able to load said classes. private static readonly WindsorContainer _container = new WindsorContainer(new XmlInterpr...

Integration Testing Http Proxy Server

I have written a simple HTTP Proxy server in C# that I would like to integration/functional test. Is there a product already created that I could use to do this? If not, what is the best way to write my own tests for this (I already have unit tests)? ...

How do you create automated tests of a Maven plugin using JUnit?

I've got a (mostly) working plugin developed, but since its function is directly related to the project it processes, how do you develop unit and integration tests for the plugin. The best idea I've had is to create an integration test project for the plugin that uses the plugin during its lifecycle and has tests that report on the plug...

Tools for automated GUI testing (on Windows)?

Does anyone have tools to recommend for automated testing of GUI applications on Windows? The tools must be language-independent and thus should be able to interact with any GUI, regardless of implementation language. In other words, I'm looking for something that can be scripted to press buttons, select menu items, check checkboxes, e...

Testing for Random Value - Thoughts on this Approach?

OK, I have been working on a random image selector and queue system (so you don't see the same images too often). All was going swimmingly (as far as my crappy code does) until I got to the random bit. I wanted to test it, but how do you test for it? There is no Debug.Assert(i.IsRandom) (sadly) :D So, I got my brain on it after waterin...