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

Unit tests and sanity tests

Unit tests and sanity tests

Perform the following steps to run the unit tests and sanity tests:
  1. In the
    Connector Navigator
    view, navigate to the
    Test Scenarios
    folder for the connector.
  2. Open the
    input.properties
    file and specify the parameters to execute the test scenarios.
    The file contains a list of 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.
    The image shows the input.properties file
  3. Edit the tag values in the
    testNG
    suite file. Specify CAT for Code Acceptance Test or Unit Test and PAT for Product Acceptance Test or Integration Test.
    The image shows the suite file with the tag values.
    Set the value of tags to
    NONE
    during the test case review to skip the test case execution.
  4. In the
    Connector Progress
    view, under
    Phase 5: Generate & Run Test Scenarios
    , click
    Run Test Scenarios
    .
    The image shows the connector progress tab with execute test scenarios option.
  5. Select
    Units Tests
    and
    Sanity Tests
    .
    Select the test scenario type and specify the tags to execute test cases.
  6. Specify the tags to run specific unit tests.
  7. When you configure the
    Units Tests
    or
    Sanity Tests
    for the first time, the
    Run failed test scenarios
    option is not enabled.
    After the test scenarios are executed, you can select the
    Run failed test scenarios
    option to execute only the failed test scenarios.
  8. Click
    Finish
    .
    A warning window appears.
    The image shows the warning to specify the parameters in the input.properties file.
  9. Click
    OK
    .
    After the test scenarios are executed, the
    Test Scenarios Execution Status
    window appears. The image shows the test scenarios execution status.
  10. Click
    View results in Eclipse
    to view the results in Eclipse.
    The image shows the results displayed in Eclipse IDE.
    Optionally, click
    View results in browser
    to view the results in the browser.
    The image shows the results displayed in the browser
  11. Click
    OK
    .
  12. To view the detailed log, see the
    ctfrun.log
    file in the result folder.
    The folder also contains the
    testng
    and
    junit
    reports.

0 COMMENTS

We’d like to hear from you!