Skip to content

Various Examples of Writing Tests in DTF

Rodney Lopes Gomes edited this page Feb 3, 2011 · 4 revisions

Here you'll find various examples of how to write tests in DTF from the basic set of tests to actual examples of writing tests for GitHub APIS and Yahoo web search APIs.

Basic DTF Tests

GitHub API Tests

The following tests are written using the API documentation available from GitHub at here

Yahoo! Search API Tests

In this section we will be going through a few test scenarios that would be written to test the Yahoo Web Search API, found here.

Yahoo! Query Langauge Tests (YQL)

Here we'll go into the details of testing YQL not just from a functional perspective but also being able to actually measure the performance of YQL as we increase the amount of threads/agents used in our test. This is done to products so they can have a better understanding of how well their individual components scale to help with calculations during capacity planning for production deployments. To start read up on YQL and how it works here. Then you can star to look at the following write ups:

Google Static Maps API Tests

As part of demonstrating some of the Advanced Language Features there were a few tests written using DTF to test the Google Static Maps API. The API itself is quite simple but was a good candidate to show how you can easily use XSL to convert tests between API changes. Here are the few tests written:

Selenium Tests

In this section we'll cover a real world scenario of using the existing Selenium formatter to and the Selenium Firefox plugin to automated your Web UI tests while using DTF to drive these tests in a distributed fashion as well as being able to make an existing pre-recorded test more robust and flexible allowing you to re-use the same recordings to do slightly different things.

Box.net WebDAV Tests

As part of demonstrating some of the Advanced Language Features there were a few tests written to demonstrate some advanced features of DTF. In this section we'll also walk through the writing of a few tests that show how you can easily use the HTTP tags to talk to a WebDAV server:

Clone this wiki locally