Running Data Allocation as Part of your Automation Framework
Search Knowledge Base by Keyword
Through the Test Modeller Front End
If you only run your automation from time to time you can rerun the automation build through the front end. Go to your model and pick your automation framework, for example, generate ‘Java DataDriven’:
Make sure you pick the generator with ‘DataDriven’ in the name, as highlighted above, this means the server will run the allocate prior to generating any code.
You can also just execute the Data Allocate from the model using the ‘VIPExecuteDataOnly’ function:
This will just run the data looks ups and allocation, not the automation.
Using a Batch Command Script
In the DataAllocation folder there are two command scripts to run the Allocation. These are ‘PutFlowsInMemory.cmd’ and ‘TestDataAllocate’ and are shown in the folder below:
Open TestDataAllocate.cmd in an editor (notepad, notepad++, among others):
Within this file you need to change the parameter ‘-parPoolID’ to match with your chosen allocation pool. You can find this pool ID in the URL of the Allocated Tests page of your Test Modeller workspace. In the example below, it is 16:
This ‘TestDataAllocate.cmd’ command will now allocate data in that specific allocation pool.
After this, open each of the .cmd files:
- Run the command script PutFlowsInMemory.cmd
Wait until you see the prompt to continue. This puts the allocation flows into memory and prepares a channel for the command script to run.
2. Run the command script TestDataAllocate.cmd
You need to enter the Suite Name of the tests you wish to allocate:
3. Now, you can see the results of this in the first command script window you opened:
The data has now been reallocated. This data can be accessed via the Test Modeller API.
-
-
-
- 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
-
-
-
-
- Explanation of Remaining Sheets in the Control Spreadsheet (for reference only)
- The ForeignKeys Sheet - Specifying which Foreign Keys to read from the Source Database
- The Tables Sheet: Defining Metadata that will be read from the Source Database
- The ProcessModel sheet – Toggling Subset Rules
- Refining the Control Spreadsheet
- Overview of the Advanced Control Spreadsheet
- Introduction
-
- Drop both Primary and Foreign Keys (The composite DROPKEYS Action)
- Validate Both Primary and Foreign Keys (The composite ValidateKeys Action)
- Add Both Primary and Foreign Keys (The Composite ADDKEYS action)
- Drop Tables
- Truncate Data
- Delete Orphans
- Drop Primary Keys
- Drop Foreign Keys
- Validate that Foreign Keys are Unique
- Validate that Primary Keys are Unique
- Add Foreign Keys
- Add Primary Keys
- Overview of Post-Subset Actions
-
-
- Use Event Hooks to call VIP Flows
- Different Methods for Connecting to Source Databases
- PreProcess Variables and Parameters
- Using SQL Functions to query Databases and Using the Queries in Data Generation Functions
- Summary of the Process to Configure the Test Data Configuration sheet
- How the PreProcessVariables Table is used in the Configuration sheet
- Sample Commerce Configuration Sheet Examples
- Adding Event Hooks in Configuration sheet for custom functionality
- How to Configure the Synthetic Test Data Configuration Control Sheet
-
-
-
-
-
- The UI Recorder
- Test Modeller – Maintenance
- Test Modeller Core (Linux) Optional – Postgres LDAP
- Test Modeller Core (Linux) Optional – SSL Certificate Installation
- Test Modeller Core (Linux) Optional – Active Directory
- Test Modeller Core (Linux) Installation
- Test Modeller: Software Pre-requisites
- Test Modeller : Installation components
- Test Modeller : System requirements (Windows, Linux)
-
-
-
- Articles coming soon
-
- Articles coming soon
-
-
-
- Common Problems
- Extend Test Modeller (Advanced)
- Edit Code Templates (Advanced)
- Import existing framework / custom page objects (Advanced)
- Execute Tests (Java)
- Generate Automation Code
- Build a Model (Java)
- Scan an Existing Web App
- Configuration (Java)
- Prerequisites (Selenium Java)
- Welcome Selenium (Java)
-
-
-