top of page
HowItWorksO.gif

Overview

​

This page shows how DoxRunner Process Raw operation handles Text Data File rules from preparation, documentation, and how they are applied to a raw script. resulting in a script that is configured with Text Data Files and their associated parameters.

​

Brief
Blue05.gif

Tailor

​

The scripter has a number of activities to do before the script is complete.

​

Blue01.gif

Prepare

​

If any text data files can be pre-populated, then prepare them.

​

Blue02.gif

Document 

 

The test case is the preferred place for documenting Text Data File rules.

The Solution document can also play a role.

​

Blue03.gif

Record

 

Text data file parameters are not configured during recording.

​

Blue04.gif

Process Raw operation

 

The Process Raw operation presents the documented Text Data File rules to the scripter along with appropriate values from the script in a green screen. The scripter is then required to match the two using a simple point and click process.

​

The parameters associated by the scripter in the green screen are applied to all relevant values in the raw script.

​

If the text data file exists in the Included Files folder, it is copied into the script's folder. Otherwise a new file is created.

​

HowItWorksB.gif

Initiate the Process Raw operation

​

Blue04.gif
Blue04h.gif
Blue04c.gif

The Process Raw operation collects name-value pairs from all script files and displays them on the green Parameter Association screen.

​

Blue04d.gif

The scripter manually associates name-value-pairs with the appropriate Text Data File rules.

​

Blue04e.gif
Blue04f.gif

The Process Raw operation replaces all relevant values within the script with the scripter's decisions when in the green screen.

​

Blue04g.gif

The Process Raw operation checks to see whether the Text Data File exists in the Included Files folder.

​

If the file exists in the Included Files folder, the Process Raw operation copies it into the script's folder.

​

Blue01.gif

Prepare the files

​

There is no need to pre-populate a Text Data File. However there are advantages in doing so. If pre-populating it, place them in the Included Files folder.

​

Blue04b.gif

The Process Raw operation displays the combined Text Data Files on the green Parameter Association screen.

​

Blue04a.gif

The Process Raw operation reads the documentation and combines the rules into one list.

​

Blue05.gif

Tailor

​

The scripter needs to check the updated script and populate any text data files that were not pre-populated.

​

Blue02.gif

Document the rules

 

The test case is the preferred place for documenting Text Data File rules, however the Solution document can also play a role.

​

Blue03.gif

Record the raw script

 

Text data file parameters are not configured during recording.

​

The Process Raw operation configures the Text Data File parameters in the script.

​

Detail

 

How it works - in brief

​

The key to applying documented Text Data File rules to a raw script is the Process Raw operation (see         below).

​

Before initiating it, become familiar with items        to        first.

​

BlueSmall04.gif
BlueSmall01.gif
BlueSmall03.gif
Blue04i.gif

If the file does not exist in the Included Files folder, the Process Raw operation creates a new one with the appropriate column headings and one line of data.

​

 

How it works - in detail

​

The key to applying documented Text Data File rules to a raw script is the Process Raw operation (see         below).

Before initiating it, become familiar with items         to        first.

​

Prepare
Document
RecordRawScript
ProcessRawOperation

​

      Prepare text data files

 

This step is not mandatory.

 

Often the same text data file is used even though a script is being re-recorded. In this case, the scripter will would normally copy the file manually from one script folder to another.

 

If the scripter places it into the Included Files folder instead (the name must match that in the documentation), copying it becomes automated within the Process Raw operation.

 

The Included Files folder is a configuration item in the Configuration section that typically resides in the Solution document (although a version of this section can reside in a test case).

 

Only .dat and .txt files are recognized.

​

If a text data file is not in the Included Files folder, then one is created in the script folder with the appropriate column headings and one line of data.

​

Blue01.gif
TextDataFiles.gif

 

     Record the raw script

 

The Process Raw operation depends on a raw script that has been recorded in accordance with the DoxRunner guidelines

​

Blue03.gif

​

     Document the rules

 

For the Process Raw operation to work correctly, the rules must be documented in a structured manner.

 

Each rule must contain the following three items:

  • Parameter name

  • File Name  

  • Operation

​

It may also contain a Description, which is optional but recommended.

​

To understand how to document them properly, you must follow the green More details link above.

​

Blue02.gif

 

     The Process Raw operation

 

The Process Raw operation takes its input from the documentation, the raw script, and the contents of the Included Files folder.

 

It then applies that information to the raw script to produce a new script that is much closer to the final product, saving the scripter a lot of time.

​

Blue04.gif

 

       Combine the rules

​

The Process Raw operation reads and validates the Text Data File rules from the Solution document and  the test case. The rules are combined into one list. Where there is a conflict, those in the test case take precedence.

​

This process is illustrated below.

​

Blue04a.gif
ProcessRawGreenScreen

 

       Display the rules

​

The Process Raw operation displays the combined Text Data Files rules in the top right pane pane of the green Parameter Association screen under the Text Data tab.

​

Note: Initially only those with an Operation that can't be interpreted as 'Same line as...' will be displayed *.

           Once it has been associated, then those with 'Same line as...' will be displayed.

​

Blue04b.gif

 

       Collect name-value pairs

​

The Process Raw operation collects name-value pairs from all script files and displays them in the top left hand pane of the green  Parameter Association screen.

​

Blue04c.gif

​

        Associate name-value pairs with Text Data File rules

​

The scripter is expected to manually associate any name-value pair that needs to be parameterised with a Text Data File rule as follows.

 

  1. Select the relevant name-value pair;

  2. Select the relevant Text Data File rule (the Text Data tab must be in focus);

  3. The details appear in the three boxes at the bottom of the Text Data tab;

  4. Press one of the following three buttons:

    • Configure only:

    • Associate by value:

    • Associate by boundary:

  5. The association appears in the bottom pane;

  6. The selected name-value pair disappears from the top left hand pane;

  7. The selected Text Data File rule disappears from the top right hand pane;

  8. If more Text Data File rules for the same filename exist, then they will now appear in the top right hand pane *;

  9. Continue until all relevant associations are complete (including those for other rule types);

  10. When finished, press the Apply button.

 

The illustration below shows a typical sequence.

​

* Important note: The initial entries under the Text Data tab consists of only those Text Data File rules that don't have an operation that can be interpreted as 'Select next row' of  'Same line as...'.  Once each is associated, then those with 'Select next row' of  'Same line as...' operation become visible. This is to force the scripter to associate the 'Select next row / Update value' in a manner that makes it more likely for the script to succeed.

​

Blue04d.gif
GreenScreen.gif

​

        Text data file parameter creation and configuration

​

The illustration below on the left shows the result of the parameter association for a file (Salary.dat) that is fully populated and resides in the Included Files folder.

 

The illustration below on the right shows the result of the parameter association for a file (pUserID.dat) that did not exist in the Included Files folder. Note that it is created anyway in the script's folder, and is populated with column headings plus one line of data, extracted from the Name-Value pair associated by the scripter.

​

This configuration is done regardless of whether the Configure only, the Associate by value, or the Associate by boundary button is pressed in the green screen.

 

Blue04e.gif
Blue04f.gif

​

        Replace values with parameters

​

The Process Raw operation will identify relevant values within the script and replace them with the parameter name that the scripter used to associate with the name-value pair.

​

This is done only if the Associate by value or the Associate by boundary button is pressed in the green screen.

 

Script.gif
Blue04h.gif
Blue04g.gif
Blue04i.gif

​

        File management

​

The Process Raw operation checks to see whether the file exists in the Included Files folder.

​

           If it does, it copies it into the script's folder.

​

           If it doesn't, it creates a new one in the script's folder with heading(s) and one data line. The data line will consist of the                         name-pair value(s) that the scripter associated with the parameter. The heading(s) will be the associated parameter name(s).

​

 

       Tailor the script

 

The scripter needs to check the script and populate any text data files that were not pre-populated.

​

Blue05.gif
TestAccounts
Tailor

 

Test Accounts

 

DoxRunner doesn't provide any special functionality for test accounts, relying on the functionality of  text data files and/or the LoadTest Database functions.

 

If using a text data file to manage Test Accounts, the operation is usually set to Unique/Once.

​

However. if the LoadTest Database is in use, there are advantages in storing them in one of its tables.

​

bottom of page