Using Standard Generation Rules to Generate Test Data

Similar documents
Creating a Subset of Production Data

Importing Metadata from Relational Sources in Test Data Management

Generating Credit Card Numbers in Test Data Management

Importing Metadata From an XML Source in Test Data Management

Importing Flat File Sources in Test Data Management

How to Use Full Pushdown Optimization in PowerCenter

Implementing Data Masking and Data Subset with IMS Unload File Sources

Creating OData Custom Composite Keys

Implementing Data Masking and Data Subset with IMS Unload File Sources

Importing Metadata From a Netezza Connection in Test Data Management

Using Synchronization in Profiling

Manually Defining Constraints in Enterprise Data Manager

Creating a Column Profile on a Logical Data Object in Informatica Developer

PowerCenter Repository Maintenance

How to Migrate RFC/BAPI Function Mappings to Use a BAPI/RFC Transformation

Increasing Performance for PowerCenter Sessions that Use Partitions

Optimizing Session Caches in PowerCenter

Major and Minor Relationships in Test Data Management

Creating an Avro to Relational Data Processor Transformation

Creating Column Profiles on LDAP Data Objects

How to Run a PowerCenter Workflow from SAP

Migrating Mappings and Mapplets from a PowerCenter Repository to a Model Repository

Publishing and Subscribing to Cloud Applications with Data Integration Hub

Implementing Data Masking and Data Subset with Sequential or VSAM Sources

Code Page Configuration in PowerCenter

This document contains information on fixed and known limitations for Test Data Management.

PowerExchange IMS Data Map Creation

Moving DB2 for z/os Bulk Data with Nonrelational Source Definitions

Aggregate Data in Informatica Developer

Dynamic Data Masking: Capturing the SET QUOTED_IDENTIFER Value in a Microsoft SQL Server or Sybase Database

This document contains information on fixed and known limitations for Test Data Management.

Disaster Recovery Procedure for a RulePoint Setup Spanning Across Geographical Locations

Configuring a JDBC Resource for IBM DB2/ iseries in Metadata Manager HotFix 2

Changing the Password of the Proactive Monitoring Database User

Configuring a Hadoop Environment for Test Data Management

Data Validation Option Best Practices

PowerExchange for Facebook: How to Configure Open Authentication using the OAuth Utility

Business Glossary Best Practices

How to Optimize Jobs on the Data Integration Service for Performance and Stability

Informatica PowerExchange for Microsoft Azure Blob Storage 10.2 HotFix 1. User Guide

Tutorial 1: Simple Parameterized Mapping

Configuring Secure Communication to Oracle to Import Source and Target Definitions in PowerCenter

Running PowerCenter Advanced Edition in Split Domain Mode

Detecting Outliers in Column Profile Results in Informatica Analyst

Improving PowerCenter Performance with IBM DB2 Range Partitioned Tables

Using PowerCenter to Process Flat Files in Real Time

Enterprise Data Catalog for Microsoft Azure Tutorial

Optimizing Testing Performance With Data Validation Option

Performing a Post-Upgrade Data Validation Check

Developing a Dynamic Mapping to Manage Metadata Changes in Relational Sources

Using Data Replication with Merge Apply and Audit Apply in a Single Configuration

How to Convert an SQL Query to a Mapping

Configuring a Sybase PowerDesigner Resource in Metadata Manager 9.0

How to Connect to a Microsoft SQL Server Database that Uses Kerberos Authentication in Informatica 9.6.x

Data Quality : Profile Analysis On Join Condition

Informatica PowerExchange for Tableau User Guide

Configure an ODBC Connection to SAP HANA

Optimizing the Data Integration Service to Process Concurrent Web Services

Hyperion Data Integration Management Adapter for Performance Scorecard. Readme. Release

Optimizing Performance for Partitioned Mappings

Using MDM Big Data Relationship Management to Perform the Match Process for MDM Multidomain Edition

Container-based Authentication for MDM- ActiveVOS in WebSphere

Configuring a Microstrategy Resource in Metadata Manager 9.5.0

Using the Normalizer Transformation to Parse Records

Informatica BCI Extractor Solution

Hyperion Data Integration Management Adapter for Essbase. Sample Readme. Release

Configuring an ERwin Resource in Metadata Manager 8.5 and 8.6

Relationships and the Impact of Optimizing Relationships in TDM

Configuring Data Masking. Version: 7.3

Queries with Multiple Criteria (OR)

Security Enhancements in Informatica 9.6.x

Configuring a Cognos Resource in Metadata Manager 9.5.0

Using Two-Factor Authentication to Connect to a Kerberos-enabled Informatica Domain

SAS. Information Map Studio 3.1: Creating Your First Information Map

Equitrac Embedded for Kyocera Mita. Setup Guide Equitrac Corporation Equitrac Corporation

Integrated for Océ Setup Guide

Equitrac Integrated for Konica Minolta. Setup Guide Equitrac Corporation

How to Write Data to HDFS

Enabling Seamless Data Access for JD Edwards EnterpriseOne

Scribe SolutionPak: QuickBooks Desktop to Salesforce

Using the SAP BW Metadata Creation Solution

Creating an Address Verification Job in the Data Quality Center

Equitrac Integrated for Océ

Setting up a Salesforce Outbound Message in Informatica Cloud

Informatica Cloud Spring Microsoft Azure Blob Storage V2 Connector Guide

Informatica Cloud Platform Building Connectors with the Toolkit Student Lab: Prerequisite Installations. Version Connectors Toolkit Training

Informatica MDM - Customer Release Guide

Jyotheswar Kuricheti

Informatica Cloud Platform Building Connectors with the Toolkit Student Lab: Informatica Cloud Connector Toolkit Architecture

Performance Monitor. Version: 16.0

Informatica Cloud Data Integration Winter 2017 December. What's New

Project Costing Creating a Project - 31f... 4 Project Activities - 31f... 7 Maintaining Project Activity Status... 9 Modifying a Project

Using ZENworks with Novell Service Desk

Image-In Connect v1.0 Installation Guide

SAS Clinical Data Integration 2.6

Extending the Scope of Custom Transformations

Migrating External Loader Sessions to Dual Load Sessions

Novell Vibe 3.4. Novell. July Quick Start. Starting Novell Vibe. Getting to Know the Novell Vibe Interface and Its Features

Scheduled Automatic Search using Dell Repository Manager

BUILD YOUR OWN SAP FIORI APP IN THE CLOUD Exercise Week 5

Transcription:

Using Standard Generation Rules to Generate Test Data 2014 Informatica Corporation. No part of this document may be reproduced or transmitted in any form, by any means (electronic, photocopying, recording or otherwise) without prior consent of Informatica Corporation. All other company and product names may be trade names or trademarks of their respective owners and/or copyrighted materials of such owners.

Abstract In Test Data Manager, create and assign standard generation rules to the target columns to generate test data. This article describes how to create and assign standard generate rules, create data generation plan, and run the workflow. Supported Versions Test Data Management 9.6.0 Table of Contents Overview.... 2 Scenario.... 2 Step 1. Create a Project and Import Target Metadata.... 3 Step 2. Create Standard Data Generation Rules.... 4 Creating a Sequence Generation Rule.... 4 Creating a Random String Generation Rule.... 6 Creating a Set of Values Generation Rule.... 7 Creating a Random Numeric Generation Rule.... 7 Step 3. Add Standard Data Generation Rules to the Project.... 8 Step 4. Assign Standard Data Generation Rules.... 9 Step 5. Create a Data Generation Plan.... 10 Step 6. Generate and Run the Workflow.... 11 Overview With Test Data Management (TDM), you can create realistic test data for testing environments. Create and use standard data generation rules in Test Data Manager. Create a data generation plan, and run the workflow to generate test data. Scenario You work for the testing department in an organization that has developed a software application. This application compares the prices of various brands of products in the market and suggests the best price to introduce a product into the market. To test this application, you need to generate data with product details such as product identification number, product name, product status, and product price. To generate the test data, perform the following tasks: 1. Create a project and import target metadata. 2. Create standard data generation rules for string and numeric data types. 3. Add the standard data generation rules to the project. 4. Assign standard data generation rules to the target columns. 5. Create a data generation plan. 6. Generate and run the workflow. 2

Step 1. Create a Project and Import Target Metadata In Test Data Manager, create a project folder to store the data generation components such as entities and tables. Import target metadata to the project. In this example, the target database is AutoTarget and the target table is PRODUCTS. The target columns are PRODUCT_ID, PRODUCT_LIST_PRICE, PRODUCT_NAME, and PRODUCT_STATUS in the PRODUCTS table. 1. In Test Data Manager, click Projects to access the projects. A list of projects appears. 2. Click Actions > New. 3. In the Create Project dialog box, enter the following project properties: Name Enter a name. Description Enter a description. PowerCenter Repository Folder Owner The default is the name of the PowerCenter repository. The default is the project name. The default is the name of the user that created the folder. The following image shows the properties of the project: 4. Click OK. View the properties of the project that you created. 5. Click Actions > Import Metadata. The Import Metadata dialog box appears. 6. To import metadata from a database, choose Datasource Connection and select the database. 3

The following image shows the options to import metadata: 7. Choose whether you want to review the metadata changes before you import the data sources. You can choose to skip the import options. 8. Click Next. 9. Select the metadata schema that you want to import from the database. You can filter folders by the folder name or the description. 10. Click Next. 11. Select the tables that you want to import. 12. Click Next. 13. To import the data source immediately, select Import Now. 14. Click Finish. While the import is running, view the progress of the import job in the Monitor view. After the import job finishes, you can access the imported metadata through the Data Sources details view. Step 2. Create Standard Data Generation Rules You want to generate product details such as product identification number, product name, product status, and product price in the target database. Create standard generation rules that make use of predefined techniques to generate data with numeric and string data types. To generate the test data in target columns, perform the following tasks: Create a sequence generation rule to generate product identification numbers. Create a random string generation rule to generate names. Create a set of values generation rule to generate product status. Create a random numeric generation rule to generate product price. Creating a Sequence Generation Rule Create a numeric sequence generation rule to generate product identification numbers in the target table. 1. In Test Data Manager, click Policies. 2. Click Actions > New > Generation Rule. The Rule Wizard appears. 3. Enter a name and optional description for the rule. 4. Select the Numeric data type. 5. Choose Standard Rule and select Sequence. 4

6. To override generation parameters for a rule, select Override Allowed. The following image shows sequence generation rule properties: 7. Click Next. 8. Configure the following parameters: Start Value Enter a minimum value to start the sequence. Increment Value Enter a value to increment after the start value. Null Values Optional. To generate null values, enter a percent. Invalid Values Optional. To generate values that are not valid, enter a percent. The following image shows the sequence generation parameters for the numeric data type: 5

9. Click Finish. The rule appears in the list of generation rules. Creating a Random String Generation Rule Create a random string generation rule to generate product names in the target table. 1. Click Policies. 2. Click Actions > New > Generation Rule. The Rule Wizard appears. 3. Enter a name and optional description for the rule. 4. Select the String data type. 5. Choose Standard Rule and select Random. 6. To override generation parameters for a rule, select Override Allowed. 7. Click Next. 8. Configure the following parameters: Minimum Length Enter the minimum length of the string. Maximum Length Enter the maximum length of the string. Null Values Optional. To generate null values, enter a percent. Invalid Values Optional. To generate values that are not valid, enter a percent. The following image shows the random generation rule parameters for the string data type: 9. Click Finish. The rule appears in the list of generation rules. 6

Creating a Set of Values Generation Rule Create a set of values generation rule to generate product status in the target table. The product status indicates the current status of the product in the market. 1. Click Policies. 2. Click Actions > New > Generation Rule. The Rule Wizard appears. 3. Enter a name and optional description for the rule. 4. Select the String data type. 5. Choose Standard Rule and select Set of Values. 6. To override generation parameters for a rule, select Override Allowed. 7. Click Next. 8. Enter a specific value and a distribution percent for each value. To add additional rows, click Add. 9. Optionally, enter a percent to generate null values. 10. Optionally, enter a percent to generate the values that are not valid. The following image shows the set of values generation rule parameters: 11. Click Finish. The rule appears in the list of generation rules. Creating a Random Numeric Generation Rule Create a random numeric generation rule to generate product prices in the target table. 1. Click Policies. 2. Click Actions > New > Generation Rule. The Rule Wizard appears. 3. Enter a name and optional description for the rule. 4. Select the Numeric data type. 5. Choose Standard Rule and select Random. 6. To override generation parameters for a rule, select the Override Allowed option. 7. Click Next. 8. Configure the following parameters: 7

Minimum Value Enter the minimum value. Maximum Value Enter the maximum value. Null Values Optional. To generate null values, enter a percent. Invalid Values Optional. To generate values that are not valid, enter a percent. The following image shows the random numeric generation rule parameters: 9. Click Finish. The rule appears in the list of generation rules. Step 3. Add Standard Data Generation Rules to the Project You must add the standard data generation rules to a project so that you can assign the generation rules to the target columns. 1. Click Projects. A list of projects appears. 2. Open the project that you created. The project window opens in another tab. 3. In the project, click Overview > Policies. 4. Click Actions > Add Additional Rules. The Add Additional Rules dialog box appears. 5. From the list, select all the standard generation rules that you created. 8

The following image shows a sample list of generation rules: 6. Click OK. The rules appear under the Additional Rules list. Step 4. Assign Standard Data Generation Rules Assign the standard data generation rules to the target columns to generate the test data. 1. In the project, click Define > Data Generation. 2. In the target table, select the target column for the generated product identification numbers. 3. Click inside the Generation Rule column. A list of data generation rules available for the string data type appears. 4. Select the name of the sequence generation rule that you created. The following image shows a sample generation rule assignment for numeric data type: 5. To save the rule assignment, click Save. 6. Select the target column for the generated product names. 7. Click inside the Generation Rule column. 9

8. Select the random string generation rule that you created. The following image shows a sample generation rule assignment for string data type: 9. To save the rule assignment, click Save. 10. Select the target column for the product status. 11. Click inside the Generation Rule column. 12. Select the set of values generation rule that you created. 13. To save the rule assignment, click Save. 14. Select the target column for the product price. 15. Click inside the Generation Rule column. 16. Select the random numeric generation rule that you created. 17. To save the rule assignment, click Save. Step 5. Create a Data Generation Plan To perform the data generation operation, you must create a plan. The plan includes data generation components that you need to generate a workflow. 1. In the project, click Execute. 2. Click New Plan. 3. In the New Plan dialog box, enter a name and optional description for the plan. 4. Click Next. 5. To skip adding the masking components, click Next. 6. To skip adding the subset components, click Next. 7. To add the data generation components, click Add Generation Components. 8. Select the target table to add to the plan. 9. Click OK. The target table appears in the list. 10. Click Next. 10

11. Review the data generation component and table criteria. 12. Click Next. 13. To generate the data, configure the following plan settings: Number of Records to Generate Enter the number of records that you want to generate. Target Connection Select Relational. Click Select and choose the target database. Truncate Tables To truncate the table before the data loads, select Truncate Tables. Disable Indexes To disable indexes for faster loading of data, select Disable Indexes. Disable Constraints To disable constraints before the data is loaded to the target database, select Disable Constraints. The following image shows a sample data generation plan settings: 14. Click Next. 15. Review the data source settings. 16. Click Finish. Step 6. Generate and Run the Workflow After you create the plan, you must run the workflow to generate the test data in the target table. You can monitor the progress of the workflow jobs. After the workflow job succeeds, the data is generated in the target table. 1. To access the plan in the project, click Execute. 2. Select the data generation plan that you created. 3. Click Actions > Generate and Execute. The Generate and Execute Plan dialog box appears. 4. Select the PowerCenter Integration Service. 5. Select Schedule Now. 11

6. Click Execute Workflow. 7. To view the status of the workflow jobs, click Monitor. 8. To refresh the view, click Auto Refresh On. 9. To view the job details, select the job ID and click on the Properties, Sessions, and Logs tabs. The following image shows the status of the sample workflow jobs: Author Vinita Arun Kumar Senior Technical Writer Acknowledgements The author would like to acknowledge the Development and QA team. 12