"WHEN Developing Our Test Strategy, WE Must Minimize the Impact Caused by Changes in The Applications We use to test the Tools we use to test them."
--CARL J. Nagle
RRAFS frame - 2
One. After running the previous example, you will find a lot of .cdd, .std, .sdd files from the DataPool folder, where is it?
To study the exportxltables script, where there are three functions, the function is to export the XLS file content to .cdd, .std, .sdd, .classicsc.map file.
Status = exportxlstofiles (filexls: = highleveltables, _
Dirxls: = Dirxls, _
Dirout: = DIROUT, _
Delimiter: = separator)
Status = exportxlstofiles (filexls: = lowLevelTables, _
Dirxls: = Dirxls, _
Dirout: = DIROUT, _
Delimiter: = separator)
Status = exportxlstoonefile (fileXLS: = ApplicationMap, _
Fileout: = mapout, _
Dirxls: = Dirxls, _
Dirout: = DIROUT, _
Delimiter: = "")
Note: Function code exportxlstoonefile is in unit Excelutilities.SBL.
The core code is as follows
For Sheet = 1 to Numsheets
SET WORKSHEET = Worksheets (Sheet)
Set cells = worksheet.usedrange
Sheetname = Worksheet.name
FileRef = freefile
Fullpath = Directoryout & SheetName
Open fullpath for output as #fileref
Rows = Cells.Rows.count
Column = Cells.columns.count
'Handle Special .map Case
IF (Strcomp (Sheetname, 4), ".map", 1) = 0) THEN COLUMNS = 1
For row = 1 to rows
For column = 1 to columns
Cell = cells.rows (rot) .columns (colorue) .value
'don't write a separator after the last field
IF (Column Print #fileref, Cell; Next column 'IF Cell Was Empty Then Newline Already Occurred IF LEN (Cell)> 0 Then Print #fileref, "" Next row Close #fileref FileRef = 0 Next sheet Open the Excel file, get the number of Work-Sheet, and then write the corresponding unit content into the file you want to export. two. file format The AppMap file is the INI file format, as follows: [Loginwindow] loginWindow = "type = window; caption = login" Document .cdd, std, .sdd format is exported in classics, you can compare files according to ClassicsC_High.xls. three. Important function After running, we note after debugging the code, we note that the CycleDrivertest.rec core code in the startup script is CDCYCLDRIVER "Regression.cdd", "", Cyclelog, Suitelog, Mainlog, CDCYCLEDRIVENMODE The entire startup script is true here. RRAFS frame - 3 The following table is the three core engines of the RATIONAL ROBOT Automation Test Frame RRAFS: element file description CYCLE Driver Cycledriver.sbl This engine is the core engine of the test frame. He executes a test script containing a series of kits, and the CycleDriver engine calls the Suitdriver engine to process each Suit (test form), at the Cycle hierarchy, he recognizes the keyword T. See note 1 Suite Driver SuiteDriver.sbl Suitdriver is one of the test framework core engine. It performs processing that contains the kits that contain the action commands to complete the test task. SuiteDriver handles each execution action, or Stepdriver. Suitdriver is handled by keyword "t". Remark 2 Step driver Stepdriver.sbl One of the core engines. Execute the .sdd file that needs to complete the special command. Keyword "C" calls the driver command to process, "T" call the component command to process Remarks: 3 Remarks: 1. Look at the picture: Table regression.cdd. T, Cycledriver is called Suitdriver to process LoginWintests et al .STD files through the keywords under the "; RT" field. " 2. Look at the top table: loginwintest.std, Suitdriver's keywords under the "; RT" field call STEPDRIVER processing, etc. LaunchClassicsc.sdd file 3. The following table is the SDD example, you can see the following keywords below C and T, respectively. Rt; RT Command Arg Arg Arg Arg Arg C Version 1.0 C SetApplicationMap Classicc.map C Launchapplication Classicc Classicsexe "" "" Classicc.map Rt; RT Window COMP Action Arg Arg Description: T LoginWindow LoginWindow VerifyProperty CAPTION Classics login Make Sure Login Comes Up.