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

Generate the test scenarios

Generate the test scenarios

Specify the connector package version and generate test scenarios to perform unit and integration testing for your connector. The generated test scenarios are available in the Test Scenarios folder on the Connector Navigator tab.
  1. In the
    Connector Progress
    view, under
    Phase 5: Generate & Run Test Scenarios
    , click
    Generate Test Scenarios
    .
    The image shows the Connector Progress tab with the create test scenarios option.
  2. Specify the connector package version.
    The image shows the create test scenarios window.
    Ensure that you specify the same version number that you provided in Phase 4 before you generate the connector package.
  3. Click
    Finish
    A confirmation message appears.
    The image shows the Test Scenarios Creation Status window.
  4. Click
    OK
    .
  5. On the
    Connector Navigator
    tab, navigate to the
    Test Scenarios
    folder for the connector.
    The following files are generated in the Test Scenarios folder:
    • Attributes file
    • TestNG suite file
    • ctfconfig.xml file
    • input.properties file
    The image shows the test scenarios folder in the connector navigator tab.
    The following table describes the files generated in the test scenarios folder:
    Files
    Description
    Attribute File
    Generated as
    com.infa.adapter.<adapter_name>_Attributes.xml
    in the
    Test Scenarios
    folder.
    It consists of capability attributes such as read, write, and connection attributes.
    Specify the values for these properties.
    TestNG Suite File
    Generated as
    com.infa.adapter.<adapter_name>.xml
    in the
    Test Scenarios
    folder.
    It consists of test cases generated based on the connector capabilities.
    The test case parameter values are parameterized. You must specify the actual values for these parameters in each of the test cases before the XML runs. You can perform one of the following actions:
    • Edit the
      testsuite
      file to add the actual values for the parameters.
    • Specify the values in the
      input.properties
      file.
    ctfconfig.xml
    File that contains the required entries to run the test cases.
    input.properties
    Key-value pairs of parameterized entries in the testNG suite file.
    You must fill the actual values only for the required entries in the file. Do not remove any of the entries in this file.
  6. Open the TestNG Suite file.
    A new tag named SANITY is added and the CAT and PAT tags are renamed to UNIT and INTEGRATION respectively. The image shows the tags in the suite file.

0 COMMENTS

We’d like to hear from you!