TestComplete 8

Source: http://www.automatedqa.com/products/testcomplete/

Note

This guide was started in may 2010 while trying the SmartBear TestComplete 8 30-day trial version.

Installation

Important: TestComplete needs about 1GB space on C:\-drive to unzip MSI-files, and 700MB free space on the drive you wish to install it on.
Installation is simple with only a few steps in the wizard.

Activation

To use the software you need to activate it. The software will automatically prompt for activation when started.
The activation process contacts the SmartBear server through TCP/IP
port 1947
[source]. If the activation fails, make sure that the port is open.

Usage

Here is a list of quick start video tutorials.

Running on virtual machine

If the software is installed on a virtual machine it is necessary to run with the following flag. This can be added to the shortcut. Change
<path to install folder>\Bin\TestComplete.exe
to
<path to install folder>\Bin\TestComplete.exe --disable-vm-check

Project types available

  • Generic Windows Application
  • Web
  • Adobe AIR
  • Java

Web tests

Here follows the steps for creating a test for a website. Most of the steps are from SmartBears video tutorial. According to the tutorial the Web test plugin is only available in the Enterprise (and trial) version.
  1. Create a new project [ctrl+shit+n]:
    1. On the first windows of the wizard enter project name. Change the location if you like.
    2. Tested Application Type: Select 'Web'.
    3. Web Testing Settings: Select 'Functional testing of web pages'
    4. Tested Web Pages: skip
    5. Test Visualizer Settings: Uncheck boxes if you do not need the visualizer.
    6. Project's Scripting Language: Choose the language you like.
  2. Right click TestedApps in the Project Explorer.
  3. Select 'Add' --> 'New Item...'.
  4. Find and select the browser executable you wish to use (Firefox, Internet Explorer...).
  5. In the Workspace area (right) click on the ellipse (...) on the right under Parameters.
  6. Enter the URL to the website in the 'Command-line parameters' text field. Click OK.

  7. Start recording a new test by clicking the icon with the red ball and a key.
  8. Click the arrow next to 'Run Tested Applications' and select 'firefox'.
  9. Create the test entries, which can be things like:
    1. Navigate to pages.
    2. Check properties of elements (text, drop down boxes...):
      1. Click on the arrow next to the 'Create New Property Checkpoint' icon.
      2. Select 'Create Property Checkpoint'.
      3. Drag'n'Drop the 'Use Finder Tool' or use the Select object with cursor to select the element to test.
      4. In the preview you can verify the element you selected. Click Next.
      5. On the list of properties for the element, select the innerText (or whatever you wish to test).
      6. Click next and change the 'Value' field if necessary. This is the value that the element must have to make the test pass.
  10. Close firefox.
  11. Stop the test.
For some reason a 'NcpBudgetGui' is showing up with a click on the escape button (Might be because of VirtualBox). These items need to be deleted or they will make the test fail.
Now you can run the test and see if it passes.

Script based tests

In addition to the regular tests, you can also make script based tests with the following script languages
[Source: TestComplete Tip 4 (email)]
  • VBScript
  • JScript
  • Delphi Script
  • C++Script
  • C#Script

Comments