Automated Software Testing

Once you have created your unit tests (or integration tests) you ideally want to be able to run them automatically whenever it suits you.

 

The process of executing the tests can be broken down into a number of steps, which may typically look something like this:

 

  1. Get the necessary files from the version control system
  2. Build the tests
  3. Load and run the tests
  4. Retrieve and store the results
  5. Possibly trigger some action depending on the results

 

The implementation of the different steps will vary depending on the software development tools you are using and the target hardware platform.

 

For example, if the target platform is a PC you can simply run the tests from a batch file and redirect the results to a text file.

 

On the other hand, if the target platform is a micro-controller connected to the PC via a JTAG interface then you need to use your IDE's scripting capabilities.

 

 

Automated Software Testing with Embunit

 

Embunit has a command line interface to allow you to generate the test harness source code automatically, but does not implement any of the other steps outlined above. The reason for this is to allow its use with the widest possible range of tools, rather than being tightly integrated with a limited set.

 

You are free to use your favourite scripting language such as perl or python, or even good old dos batch files.

 

You are also free to implement whatever steps you want; if you want to send an email if any of the tests fail then that is fine, just put it in your script.

 

Embunit allows you to retain control, fitting into your software development process rather than the other way round.

 

If you have any examples of automated software testing scripts that you would like to share with other users of Embunit, please send them to scripts@embunit.com.

Embunit is developed in the UK by

Apollo Systems Contracts Ltd.
Isis Business Centre
Unit 1 Sovereign Business Park
48 Willis Way
Poole
BH15 3TB
Sales contacts

Phone UK: 01202 373230

Phone outside the UK: +44 1202 373230

Email: sales@embunit.com
Stay in touch

Follow us on LinkedIn

Follow us on LinkedIn