integration-testing

What is the difference between integration and unit tests?

I know the so-called textbook definition of unit tests and integration tests. What I am curious about is when it is time to write unit tests... I will write them to cover as many sets of classes as possible. For example, if I have a Word class, I will write some unit tests for the Word class. Then, I begin writing my Sentence class, a...

Creating test data in a database

I'm aware of some of the test data generators out there, but most seem to just fill name and address style databases [feel free to correct me]. We have a large integrated and normalised application - e.g. invoices have part numbers linked to stocking tables, customer numbers linked to customer tables, change logs linked to audit informa...

Automated Web Service Testing

I would like to do some integration testing of a web service from within NUnit or MBUnit. I haven't delved into this too deeply yet, but I am pretty sure I will need to spin up WebDev.WebServer.exe within the "unit test" to do this. (I know it's not really a unit test). Yes, I can test the underlying objects the web service uses on thei...

Model Based Testing Strategies

What strategies have you used with Model Based Testing? Do you use it exclusively for integration testing, or branch it out to other areas (unit/functional/system/spec verification)? Do you build focused "sealed" models or do you evolve complex onibus models over time? When in the product cycle do you invest in creating MBTs? What so...

What is the best way to setup an integration testing server?

Setting up an integration server, I’m in doubt about the best approach regarding using multiple tasks to complete the build. Is the best way to set all in just one big-job or make small dependent ones? ...

User Interface Testing

We are working on a large project with a measure of new/modified GUI functionality. We've found in the past that we often introduced new problems in related code when adding new functionality. We have non-technical users perform testing, but they often miss parts and allow bugs to slip through. My question: Are there any best practice...

What is a good markup language to use for tests?

I'm writing a tool to run a series of integration tests on my product. It will install it and then run a bunch of commands against it to make sure its doing what it is supposed to. I'm exploring different options for how to markup the commands for each test case and wondering if folks had insight to share on this. I'm thinking of using Y...

How to setup a RAILS integration test for XML mehtods

Given a controller method like: def show @model = Model.find(params[:id]) respond_to do |format| format.html # show.html.erb format.xml { render :xml => model } end end What's the best way to write an integration test that asserts that the return has the expected XML? ...

What Makes a Good Unit Test?

I'm sure most of you are writing lots of automated tests and that you also have run into some common pitfalls when unit testing. My question is do you follow any rules of conduct for writing tests in order to avoid problems in the future? To be more specific: What are the properties of good unit tests or how do you write your tests? L...

Database integration tests

When you are doing integration tests with either just your data access layer or the majority of the application stack. What is the best way prevent multiple tests from clashing with each other if they are run on the same database? ...

Integration testing with White

Has anyone got experience with the white framework? www.codeplex.com/white ? I'm thinking about using it for the next project for basic smoke tests of our windows client. I'd like some advice on articles or your own experiences. Thanks. ...

Before and After Suite execution hook in jUnit 4.x

I'm trying to preform setup and teardown for a set of integration tests, using jUnit 4.4 to execute the tests. The teardown needs to be run reliably. I'm having other problems with TestNG, so I'm looking to port back to jUnit. What hooks are available for execution before any tests are run and after all tests have completed? Note: we're...

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

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

Spring.net + Nhibernate Integration Tests Pass When They Should Not

I'm using Spring.net with NHiberante (HibernateTemplate) to implement my DAO's. I also have some integration tests, that extend from 'AbstractTransactionalDbProviderSpringContextTests '. DI is working fine, and all test pass BUT sometimes they pass even when they shouldn't. For example if my hbm.xml files have an error like this: <...

In which cases do you test against an In-Memory Database instead of a Development Database?

When do you test against an In-Memory Database vs. a Development Database? Also, as a related side question, when you do use a Development Database, do you use an Individual Development Database, an Integration Development Database, or both? Also++, for unit testing, when do you use an In-Memory Database over mocking out your Reposito...

Which is better for web testing? Record-Play automation or coding?

I am working on a new project and I wanted to know which automation tool is the best to use. Should I record-play or code? ...

What is the single best open source automation tool for functional web testing

I wanted to check out a new open source tool for automated testing of a website. I prefer multi-browser support, even multi-platform. ...

How do I access a MessageBox with white?

I have a simple message box in a WPF application that is launched as below: private void Button_Click(object sender, RoutedEventArgs e) { MessageBox.Show("Howdy", "Howdy"); } I can get white to click my button and launch the message box. UISpy shows it as a child of my window I couldn't work out the method to access it. How do ...

Stratagies for Data Loading and DB Initialization for Integration Tests

I'm developing an integration testing framework for a data intensive J2EE enterprise application and I'm trying to decide upon a strategy for initializing and populating the database. We have a fairly complex model. The system will have to: Initialize the system itself Load users Load application test data The test data won't be a...