Unit Testing With TestComplete

Unit testing consists of running the test functions, procedures and methods that a source module makes available to the rest of the application. These test functions, procedures and methods test other classes of the application. A “unit” may be anything from a single function to an entire library. The essential point of unit testing is that only a small part of the application is tested with each unit test.

TestComplete supports unit testing and provides the following benefits:

Automate NUnit, JUnit, DUnit and MSTest tests. You may run unit tests created with these test frameworks directly from your TestComplete project. This allows you to easily re-use existing unit tests and include them into automated test batteries created with TestComplete. The feature also saves the time needed to adopt TestComplete to your automated testing processes.
Use TestComplete’s unit tests. The NUnit, JUnit and DUnit frameworks provide specific classes and interfaces which the testing code must support and implement in order for the automated testing tool to be able to call the unit testing functions that reside in the AUT. TestComplete provides similar classes and interfaces. By implementing them in your application, you will be able to manage unit tests visually and run them as part of your automated tests.

Unit testing with TestComplete

Create unit tests without using any special framework. TestComplete’s engine has access to internal object, methods and properties of tested applications. This feature lets you implement unit testing classes without using specific framework interfaces and call methods and properties of these unit testing classes from keyword tests and automated test scripts.
 
© 2010 AutomatedQA Corp. All rights reserved.
Home | Privacy | Terms of Use | About | Contact Us | Site Map | Print