Foundations/Webservice/TestingApiApplications

Not logged in - Log In / Register

Revision 1 as of 2010-10-08 17:49:33

Clear message

This page provides a guide to writing tests for Launchpad API clients.

Techniques

Point your application at the staging.launchpad.net web service

By writing data to the staging.launchpad.net web service you can observe how the application will behave against a copy of real, live data. You can also observe the application going over the network.

The data on staging.launchpad.net is copied from the production database every night. Copying overwrites any changes made to the staging data from the previous day.

Pros

Cons

An Example

Notes

The staging database always runs code that is released or soon-to-be released on the Launchpad production servers. The API version will be equal to or greater than the production API version.

The staging server goes down for approximately two hours on the weekend for automated database updates.

Give your application read-only access to the server

By giving your application read-only access to the server you can allow developers and users to test your application against live data without fear of it destroying data. By only reading data it also becomes possible to run the tests multiple times in a row.

Pros

Cons

An Example

Notes

Have your application generate its own test data on the staging server

This is an advanced technique that builds upon 'test your application against staging'. You can have your application generate its own test data on the staging server, then run its tests against said data.

Pros

Cons

An Example

Notes