Rational Robot Basic Manual (3)

xiaoxiao2021-03-06  79

(2) Recording the GUI script In addition to object-oriented record technology, Robot also supports underlying recording technology, which is useful when tracking the functional test of mouse behavior details, such as drawing applications.

GUI record workflow

1. Follow the guidance to determine the predictable starting status and end state, install the test environment, create a module script, and make the application to measure.

2, set the record option, or after the record starts;

3, start recording;

4. Start the application in the test environment, you must start the application correctly according to the expected playback;

5. Execute a series of behaviors in the app;

6, join the necessary close-up, such as verification points, annotations, and timer;

7. If necessary, switch the object-oriented record to the underlying recording method;

8, end recording sessions;

9. Optional operation, define script properties in the Test Manager by the File Menu Property Menu item, and the script property can also be defined in Test Manager.

Record new GUI scripts

1. Follow the guidance to determine the predictable starting status and end state, install the test environment, create a module script in Test Manager, and make the application to measure the application;

2. If possible, make the application to measure, load IDE extensions;

3. Set the record option before recording, or set it after starting;

4. Click the "Record GUI Script" shortcut button on the shortcut bar;

5, enter the script name (up to 40 characters) or select one from the script list;

6. To change the record setting, click the "Options ..." button to complete the settings and click the OK button;

7, if you select a predefined or recorded script, you can set the script property through the Properties menu item, confirm with the settings

8, start recording, the following events occur again,

If you have existing scripts, the Robot is overwritten.

By default, Robot minimizes.

The floating GUI Record shortcut can be paused or stopped, and the Robot is re-displaced, and the closeup is inserted in the script;

9. Follow the steps below to start the application in the test environment:

Click the Display GUI INSERT TOOLBAR button of the GUI Record shortcut bar.

Click on the appropriate start button on the GUI INSERT TOOLBAR.

Start the application button: to launch the application (HTML, Java app), with Quantify or Pure Cover,

Start Java Application Button: Used to start Java app played back by Quantify or Pure Coverage

Start browser buttons: used to start HTML applications;

10. Perform a series of behavior in the application; , Click on the Stop Recording button on the GUI Record shortcut, the Robot main window displays the following information: Delivery points and underlying scripts appear on the left ASSET pane, text and scripts are displayed on the right script pane, compile or play back scripts, The compilation result is displayed on the build page of the Output window; 14, optional operation: set the script properties; restore the Robot main window 1 during the record, click the Open Robot Window button on the GUI Record shortcut; 2. Click the ROBOT button on the Windows task bar; 3, use the Ctrl Shift F hotkey display window, Ctrl Shift h hide the window; pause and wake up the GUI script record pause record: Click on the PAUSE button on the GUI RECORD shortcut, the robot indicates the operation pause. Click the pause button; the status bar displays "Recording suspended"; select the flag appears on the left side of the Record menu item PAUSE menu item. Wake-up Record: Click the Pause menu item again. When the wake-up operation and the operation, it should be in the same state in the application. During the GUI record, the Robot only recognizes the standard Windows GUI objects and some custom objects during the Unknown Object Record. You can set the record option so that the Robot is automatically connected to the unrecognized objects with universal types. If an option is not set, if you click Robot Can't recognize the pair, Robot opens the "Define Object" dialog box, map the object into a known object with the dialog box. Define Unknown Object 1 during recording, click on the object type 2 associated from the "Type" in the Define Object dialog box, click on the "OK" button to continue recording.

Switch to the underlying record 1, press the CTRL SHIFT R key; Low-Level Recording ON / OFF menu item; After switching to the underlying recording mode, Robot performs as follows: 1. Record the underlying behavior in the inable binary script, and save it in the project; 2. Assign continuous numbers to the underlying script, Displayed in the ASSERT pane of the Script Form, the number is located below the Low-Level Scripts; Behavior, this is different from object-oriented record, object-oriented logging mode checks the Windows objects of the application in the test environment, not the exact time and screen coordinates. End the GUI script record End recorded the GUI script by clicking the Stop Recording button on the GUI Record toolbar. At the end of the record, the test should be consistent with the status of the application and start recording. In this way, you can play back the script without being manually resetting. If the application starts from the Windows desktop, you should stop recording at the desktop. If the record is started from the main window, the record is stopped in the main window to determine the same main window status. For example, if the application makes an editor, start the application without any text, confirm that no document is opened when the recording is completed. Defining scripts After logging scripts in Robot, you can define script properties: 1. If you have already opened the script, click the Properties menu item under the File menu. If the script is not open, click the Open menu Script menu item under the File menu, select the script,. Click the Properties button; 2, in the Script Properties dialog, define attributes; 3, confirm exit. If the record covers an already existing script, the existing properties will be applied to a new script. Handmade GUI Script encoding the fastest GUI scripting method is to use the Robot record behavior and automatically generate scripts, however, you can write the GUI script using the SQA Basic scripting language. The steps to manually write scripts are as follows: 1. In Robot, click the Script menu item of the New submenu under the File menu; 2. Enter the script name (up to 40 characters), you can join the script description; 3, click GUI; 4, click Confirm, Robot produces an empty script with the main master header; 5, starting the GUI script encoding. SQA Basic language reference help. Creating a Shell Scripts Sequence Playback GUI Scripts Before you create a housing script, you should record the independent script that you need to reference first.

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

New Post(0)