-
Notifications
You must be signed in to change notification settings - Fork 0
Various Examples of Writing Tests in DTF
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.
The following tests are written using the API documentation available from GitHub at here
- Writing a simple functional test for Github Repository APIs
- Writing a function library for Github Repository API testing
- Writing a test to measure the performance of the Github Repository APIs
- Writing a test suite for the various tests written to test the Github Repository APIs
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.
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:
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:
- Simple static map retrieval
- Validate equality for same maps across different image formats
- Validate equality for same maps but now with custom markers in place
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.
- Recording your first selenium test
- Making your selenium recording a function to be re-used for different operations
- Creating a real world test scenario with all of your available selenium recordings
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: