This post contains a step-by-step example of how to record a simple test and playback with TestComplete 9.2.

Recording

We will use Windows Calculator as an example here to record mouse clicks and keystrokes. If you are a beginner with TestComplete, it is the easiest way for you to start with creating a base script by recording a script.

Steps To record the script:

Step 1: Start TestComplete and create a new project by selecting File > New> New Project, Accept all defaults for the new project, We will use VBScript as the language here.

Step 2: Click the Record button on the toolbar to start recording all the actions

Step 3: Launch Windows Calculator

Step 4: Perform some calculations, for example, let’s add two numbers and get the result and close the windows calculator.

Step 5: Click the Stop button on TestComplete’s recording toolbar

Playback

The recording was easy, isn’t it? Playback is even easier.

To playback the recorded script, you need to Select the Unit recorded (unit1) and click the Run Script button in the Project Explorer.

After the script runs, the test results display:

 

 

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.