Rational Robot Basic Manual (2)

xiaoxiao2021-03-06  76

First, GUI scripts (1), setting, and predefined

It should be first developed early in the application development and testing process to use Robot. If there is any Windows GUI object (such as a menu, dialog) in the application initial version, you can use Robot to record the corresponding verification point.

Preparation before writing scripts

1. Estably the expected start and end state is established for scripts;

2, install the test environment;

3, create a module script;

4. Converting applications to test it.

Load IDE EXTENSITIONS

Load IDE EXTENSIONS. Always load support for C applications.

Set the GUI record option

The GUI record option provides how to record and generate the Robot instruction for the GUI script. These options can be set early in the recording process before recording.

1. Open the GUI RECORD OPTIONS dialog as follows:

Click on the Tools menu before you start the record;

Click the Record GUI Script button on the shortcut bar to start the record, click on "Opitions ..." on the Record GUI Script dialog;

2, set the option on each page tab, you need to help you click on the top of the dialog box, then click the project;

3. Click the OK button.

Some important features in the option settings

Script automatically naming;

Control the Robot response unknown object;

Select an object reference order.

Script automatically naming

1. Open the GUI RECORD OPTIONS dialog box;

2, in the General page, enter the prefix in the prefix box, if you do not want to have a prefix, clear the edit box, and you need to enter the name each time you record the new script;

3. Click the OK button.

control

Robot response unknown object

1. Open the GUI RECORD OPTIONS dialog box;

2. In the General page, the Define Unknown Objects as Type "gener" operation is selected, and when the Robot encounters an unknown object, it will be processed as a general purpose object, otherwise the Robot hangs when the record is recorded, open the Define Object dialog box to associate an object to class ;

3, click OK.

You can also map object types as well as classes before starting a record.

Category Name to Object Type Custom Mappings are shared for all users of the project.

Select an object reference order

Robot has two predefined references, default identification sequences, and C identification order (for testing C applications). Changing the object reference sequence steps are as follows:

1. Open the GUI RECORD OPTIONS dialog box;

2, click the Object Recognition Order page;

3. Change the object identification reference order;

4. Click the OK button.

Set the ROBOT window option

You need to change the default behavior of the Robot main window during your recording, follow these steps:

1. Open the GUI RECORD OPTIONS dialog box;

2, select the Robot window;

3, click on the option under During Record;

4. Click the OK button.

Change the default behavior of the Robot main window when playback:

1. Open the GUI PLAYBACK OPTIONS dialog;

2, in the Playback page, click the option button under Robot WINDOW;

3. Click the confirmation button.

Change the hotkey

You can hide and display the Robot Window with a hotkey and switch between object-oriented and low-level recording. The Robot hot button is activated during recording and does not record the script, and the hotkey has a default. Change the hot key steps as follows:

1. Open the GUI RECORD OPTIONS dialog box;

2, click the Robot window;

3, change the hotkey;

4. Click the OK button.

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

New Post(0)