Rational Robot Basic Manual (12)

xiaoxiao2021-03-06  77

V. Test application (1), test Delphi app

Rational Robot fully supports Delphi applications. Robot supports programs written in Windows NT, Windows 95, Windows 98, and Windows 2000 platforms with Delphi 3.0, 4.0, and 5.0.

Test third-party components with ROBOT, including:

VCL components;

Win32 control;

ActiveX control;

Data-aware control;

Invasible control;

Support for Internet control;

Visible inheritance form.

To test the Delphi application, you must run the Delphi Enabler and install Rational Object Testing Library for Delphi.

Installing Rational Object Testing Library for Delphi Steps

1, equipped Rational Object Testing Library for Delphi.

2. Install Rational Test Delphi Enabler.

3. Run Enabler and generate a line of code in the project and then recompile the project in Delphi.

Installing Rational Object Testing Library for Delphi Steps

1. Rational Suite CD-ROM is placed in the optical drive;

2, enter the run dialog;

3, type "(light drive letter): / setup.exe", click OK when Rational Setup Wizard is starting;

4. When the Rational Test Enablers list appears, select Rational Test Delphi Enabler;

5, complete the installation according to the screen instruction.

Join Rational Object Testing Library

1. Start the Rational Test Delphi Enabler under the Borland Delphi menu under the start menu;

2. Click Browse under Delphi Project to select the item that requires the Robot test, click the OK button;

3. Select the correct version according to the Delphi already installed on the computer;

4, choose to increase Rational Object Testing Library;

5, optional operation: If you do not want backup before the project file conversion, do not select Backup Project File;

6, optional operation: If you don't want to start Delphi after the conversion is completed, you do not select Launch Delphi After Conversion;

7. Click the conversion button to start the conversion (add "SQASRVR" in the USES);

8. Click on the Enabler's Close button. If you explore one information dialog box, click Yes to reload the project;

9. In Delphi, recompile the project.

Note: Rational Object Testing Library is not visible or inserted, and there is no license limit. Therefore, it can be retained when the application is distributed. However, if you want to delete it from the project, remove Rational Object Test Library according to the following steps.

Delete Rational Object Test Library

1. Start the Rational Test Delphi Enabler under the Borland Delphi menu under the start menu;

2, click Browse under Delphi Project, select the project that needs to delete the Robot test, click the OK button;

3. Select the correct version according to the Delphi already installed on the computer;

4, select Delete Rational Object Testing Library;

5, optional operation: If you do not want backup before the project file conversion, do not select Backup Project File;

6, optional operation: If you don't want to start Delphi after the conversion is completed, you do not select Launch Delphi After Conversion;

7. Click the conversion button to start the conversion (delete "SQASRVR" in USES);

8. Click on the Enabler's Close button. If you explore one information dialog box, click Yes to reload the project;

9. In Delphi, recompile the project.

Test Delphi component properties

Test the Delphi component properties There are two ways to test all properties displayed in the Delphi Object Inspector through way.

1. Object Properties Verification Point: Test Object Properties when recording or editing scripts, instructions about test object properties, see Creating An Object Properties Verification Point;

2, Object Scripting Commands: Used to test programmable properties while editing scripts, see SQA Basic Help.

(2) Test the Visual Basic app

Robot fully supports the 32-bit application compiled by Visual Basic 4.00 and higher, supports applications to Visual Basic version, and allows you to re-use the scripts of Windows NT 4.00, Windows 2000, Windows 98, and Windows 95. Robot uses object test technology to check the user's invisible data and properties, you can do the following:

Identify all Visual Basic objects, including objects with window objects (such as Edit Box) and "Draw" on the container form (for example, label);

Get the object name in the program (written in the Visual Basic source code) and use these object names to identify the object;

Use the object attribute verification point to capture the Visual Basic object attribute;

Use the object attribute verification point to capture potential Visual Basic data controls;

For example, assume that there is a label on Visual Basic Form. If you click on the label during the Robot recording, the name of the label will appear in the Robot script. If an object property verification point is set on the label, the name of the label is captured. The name defined by the Robot is the same as the name shown in the Visual Basic property window.

Test the Visual Basic 4.00 application, you need to add Rational ActiveX Test Control on the Visual Basic form.

Load IDE EXTENSITIONS

To test the Visual Basic application, you should first verify that Visual Basic Extension has been loaded in Robot.

1, start the Robot;

2, select the extension manager under the Tools menu;

3. Confirm that Visual Basic is selected; 4. In order to improve ROBOT performance, it is disabled without support;

5, exit Robot.

After re-entering Robot, only the selected environment is loaded.

Regarding Visual Basic 4.00 support, you must do special processing, please see you for details.

转载请注明原文地址:https://www.9cbs.com/read-88983.html

New Post(0)