How the PreProcessVariables Table is used in the Configuration sheet
Search Knowledge Base by Keyword
This section uses a further example to explain how the PreProcessVariables Table can be used in the Configuration sheet for generating Synthetic Data.
If we look back at our database model:
we see that the Model consists of 4 tables and 1 Master Table which is Country. The top tables are Customer and Supplier which do not depend on any other tables. The Order depends on Customer. The OrderItem can have some Products shipped through a Supplier.
Now if we look at the Tables listed in the Table sheet,
we can see the Tables for which we are going to generate data: Supplier, Product, Customer, Order and OrderItem.
If we look at the PreProcessVariables Table below, we can see a set of Variables. Lines 2-5 are default Variables set by the system, but lines 6-12 in the configuration sheet, are custom rules that have been added by the user.
When a Variable is added to the table, it is either added as a Variable or from a flow which would be added as a Parameter.
Note that the function type ModelList is defined by a list of items from the Database in a Model generated by Registering Model e.g. List of Products.
that varCurrentProduct is being set to a random Product via varExisting_Product (line 13 in spreadsheet)
PreProcessVariables Table
and varCurrentProduct is being linked to Product via ProductId (line 3 below).
OrderItem Table
Note that the scope of the PreprocessVariables is determined by the scope defined in the PreProcessVariables Table.
-
-
-
- IEnumerable to Data Reader
- Data Table to List
- Nested String List to Data Table
- List to Data Table
- IEnumerable to List
- List to IEnumerable
- Remove from List
- Exists in List
- Value Exists in Dictionary
- Key Exists in Dictionary
- Remove from Dictionary
- Get from Dictionary
- Clear Dictionary
- Add to Dictionary
- Clear List
- Add to List
- Show all articles ( 1 ) Collapse Articles
-
-
-
-
- Introduction
- Overview of the Advanced Control Spreadsheet
- Refining the Control Spreadsheet
- The ProcessModel sheet – Toggling Subset Rules
- The Tables Sheet: Defining Metadata that will be read from the Source Database
- The ForeignKeys Sheet - Specifying which Foreign Keys to read from the Source Database
- Explanation of Remaining Sheets in the Control Spreadsheet (for reference only)
-
- Overview of Post-Subset Actions
- Add Primary Keys
- Add Foreign Keys
- Add Both Primary and Foreign Keys (The Composite ADDKEYS action)
- Validate that Primary Keys are Unique
- Validate that Foreign Keys are Unique
- Validate Both Primary and Foreign Keys (The composite ValidateKeys Action)
- Drop Foreign Keys
- Drop Primary Keys
- Drop both Primary and Foreign Keys (The composite DROPKEYS Action)
- Delete Orphans
- Truncate Data
- Drop Tables
-
-
- How to Configure the Synthetic Test Data Configuration Control Sheet
- Sample Commerce Configuration Sheet Examples
- Adding Event Hooks in Configuration sheet for custom functionality
- Use Event Hooks to call VIP Flows
- How the PreProcessVariables Table is used in the Configuration sheet
- PreProcess Variables and Parameters
- Using SQL Functions to query Databases and Using the Queries in Data Generation Functions
- Different Methods for Connecting to Source Databases
- Summary of the Process to Configure the Test Data Configuration sheet
-
-
-
-
-
- Test Modeller : System requirements (Windows, Linux)
- Test Modeller : Installation components
- Test Modeller: Software Pre-requisites
- Test Modeller Core (Linux) Installation
- Test Modeller Core (Linux) Optional – Active Directory
- Test Modeller Core (Linux) Optional – SSL Certificate Installation
- Test Modeller Core (Linux) Optional – Postgres LDAP
- Test Modeller – Maintenance
- The UI Recorder
-
-
-
- Articles coming soon
-
- Articles coming soon
-
-
-
- Welcome Selenium (Java)
- Prerequisites (Selenium Java)
- Configuration (Java)
- Scan an Existing Web App
- Build a Model (Java)
- Generate Automation Code
- Execute Tests (Java)
- Import existing framework / custom page objects (Advanced)
- Edit Code Templates (Advanced)
- Extend Test Modeller (Advanced)
- Common Problems
-
-
-