Table of Contents

Search

  1. Preface
  2. Introduction to Informatica Connector Toolkit
  3. Before you begin
  4. Develop a connector for Cloud Data Integration
  5. Develop a connector for Data Loader
  6. Import a connector
  7. Connection attributes
  8. Type system
  9. Connector metadata
  10. Partitioning capability
  11. Pushdown capability
  12. Mappings in advanced mode
  13. Manual changes to Informatica Connector Toolkit source code
  14. Runtime behavior
  15. Connector example: MySQL_Cloud
  16. Version control integration
  17. Appendix A: Metadata models
  18. Appendix B: ASO model
  19. Appendix C: Connector project migration
  20. Appendix D: Frequently used generic APIs in Informatica Connector Toolkit
  21. Appendix E: Frequently asked questions

Cloud Data Integration Connector Toolkit Developer Guide

Cloud Data Integration Connector Toolkit Developer Guide

Test the write capability

Test the write capability

When you test the write capability of the connector, you test the components of the connector and write sample data to the data source. After you specify the test settings and run the test, you can view the result of the write operation, write operation statistics, and the log file.
To debug the code, use the same debug configuration that you used to test the connection and metadata components of the connector. You can also set breakpoints in the code that you want to debug.
After you define the debug configuration, you can launch the
Test Write
dialog box to test the write capabilities of the connector.
  1. Uunder
    Test Write Capability
    , click
    Test Runtime Behavior
    .
    The default JVM environment settings and tracing level are displayed. The Informatica Connector Toolkit uses the JVM settings to run the debug configuration.
  2. If required, edit the JVM environment settings. Ensure that you use the same port number that appears in JVM settings for the connection properties in the debug configuration.
  3. Select the required tracing level. The default is normal. Based on the amount of detail that you require in the log file, you can override the default tracing level.
    You can set the following types of tracing level:
    None
    Does not override the default tracing level.
    Terse
    Logs initialization information and error messages and notification of rejected data.
    Normal
    Logs initialization and status information, errors encountered, and skipped rows due to transformation row errors. Summarizes mapping results, but not at the level of individual rows. This is the default tracing level.
    Verbose Initialization
    In addition to normal tracing, logs additional initialization details, names of index and data files used, and detailed statistics.
    Verbose Data
    In addition to verbose initialization tracing, logs each row. You can also get detailed statistics on where string data was truncated to fit the precision of a column.
  4. Click
    Next
    .
    The connection attributes that you defined for the connector appears.
  5. Enter values for the connection attributes to test the connection to the data source.
  6. Click
    Connect
    .
    The
    Test Metadata
    page appears with the metadata imported from the data source.
  7. Select an endpoint metadata object to test the write operation.
    The metadata of the endpoint metadata object along with the data type, scale, and precision appears in the
    Test Write
    page.
  8. Select the columns to which you want to write data.
  9. Click
    Next
    .
    The
    Test Data
    page appears.
  10. In the Test Data page, you can load test data from a file or you can generate test data.
    • To load the test data from a file, perform the following steps:
      1. Select the
        Load from a File
        option. You must load a comma-delimited TXT file or CSV file.
        The date and time data types in the file must have the following timestamp format: MM/DD/YYYY hh24:mm:ss
      2. Click
        Browse
        and select the file that contains the test data.
    • To generate test data, perform the following steps:
      1. Select the
        Auto generate data
        option.
      2. Enter the number of rows to generate. You can specify a maximum of 1000 rows.
      3. Click
        Generate
        . The test data appears in the
        Data Preview
        section.
      4. If required, you can edit the test data that appears in the
        Data Preview
        section.
  11. Select an insert, update, or delete operation that you want to perform on the target object.
    To perform an update or delete operation, the target object must contain a primary key. If you auto-generate the data, edit the value of the primary key column in the preview section to match with a record in the target object.
  12. After you load a test data file or generate test data, click
    Next
    .
    The
    Write Capability
    page appears.
  13. Specify values for the write capability attributes and then click
    Run
    .
    The
    Result
    page appears. You can view the result of the write operation, write operation statistics, and the log file in the
    Result
    page.
  14. Click
    Close
    .

0 COMMENTS

We’d like to hear from you!