Rational Robot Basic Manual (11)

xiaoxiao2021-03-06  78

Third, VB script

Deleting the VB script removes the VB script from the project to delete the corresponding class module file (.cls), project file (.vbp), resource script file (.rc), resource file (.res) and Windows dynamic link library files ( .dll). Fourth, SQA Basic (1), custom SQA Basic scripts to customize the channels of SQA Basic scripts L Directly add custom SQA Basic subroutines, functions, or library files, other files (scripts, or other library files) Custom subroutines for files; LETATISTICE STATISTICS, SQA Basic header files, SQA Basic header files declared by other scripts and library files; L through the script template contains each new script and. The information required by the REC library file. Library file: The library file of the project range, but does not support the verification point, stored in the project's SQABAS32 folder; l.rec file: project scope library file, support verification point, stored in The project's Script folder. .rec files are often used as a GUI script. The library file is used to save a custom subroutine that needs to be accessed by multiple scripts. If the subroutine has only one script access, it is recommended to put it in this script. You can also call subroutines in the dynamic link library in the SQA Basic script and library files. However, Robot can't create or edit dynamic link libraries like .sbl and .rec. Create, edit .sbl library file creation .sbl file: Click the SQA Basic File menu item of the New submenu under the File menu, select Library Source File in the Chart dialog box, confirm it. The library file cannot be the same name with the script file called it. For convenience, Robot provides a blank library file (Global.SBL), you can add the sub-definition subroutine to the file or create a new library. Edit. SBL library file: Click the SQA Basic File menu item of the Open submenu under the File menu, in the Open File dialog box below, select Library Source Files (* .sbl), select a file to edit, click " Open (O) ". Create, edit .Rec library file, create a .rec library file: Click the Script menu item of the New submenu under the File menu, enter the file name in the dialog shown below, select the GUI, confirm. Edit .Rec library file: Click the Script menu item of the Open submenu under the File menu, select the file name in the dialog shown below, determine. Add a subroutine in Global.SBL to open the Global.sbl file with the editing .sbl library file, edit it. Use the library file to use the SQA Basic library file at runtime. 1. Add a custom subroutine in the library file; 2. Compile the file: Two SQA Basic library files (.sbl library files and .rec library files) are compiled into .sbx files at runtime; 3, in SQA Basic Documents or scripts or library files declare that the files you need to call the custom subroutine. SQA Basic supports .sbx library files and .dll library files. The SQA Basic header file can declare a custom subroutine, constant, and variables in the SQA Basic header file. When the default, the SQA Basic file is stored in the SQABAS32 folder, which can be set in the General Options menu item of the Tools menu, as shown below. In the Preferences page, use the Browse button to specify a new folder.

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

New Post(0)