Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The structure and execution of Trafodion test suites varies by repositorycomponent.

 

Table of Contents

DCS

 

The DCS (Database Connectivity Services) code is written in Java, and is built and unit tested using Maven. The test suite organization and use follow Maven standards.

...

  1. Prior to running Phoenix tests, you need to bring up your Trafodion instance and DCS. You need to configure at least 2-4 servers for DCS. The tests need at least 2 mxosrvrs as they make 2 connections at any given time. But we do recommend configuring DCS with 4 mxosrvrs. We have seen situations that mxosrvrs do not get released in time for the next connection if there are only 2 mxosrvrs.
  2. Clone Run phoenix tests from git and run themsource tree:

    git clone https://github.com/trafodion/phoenix_testcd phoenix_testphoenix_cd tests/phx
    phoenix_test.py --target=<host>:<port> --user=dontcare --pw=dontcare --targettype=TR --javahome=<jdk> --jdbccp=<jdir>/jdbcT4.jarwherejar
    <host>: your workstation name or IP address
    <port>: your DCS master port number
    <jdk>: the directory containing the jdk1.7.0_21_64 or later version of the JDK
    <jdir>: the directory containing your JDBC T4 jar file (export/lib if you downloaded a Trafodion binary package)
    If you only need to run a particular test, README.rst also has instructions on how to do that.

  3. Analyze the results. The test results can be found in phoenix_test/target/surefire-reports. If there are any failures, they would come with file names and line numbers. The source code can be found in phoenix_test/src/test/java/com/hp/phoenix/end2end. These are JDBC tests written in java.

...

The code is written in Java, and is built and unit tested using Maven. The test suite organization and use follow Maven standards. Instructions for setting up and running the test can be found @https://github.com/trafodion/dcs/tree/masterin source tree at dcs/src/test/jdbc_test

 

PyODBC Tests

 

The code is written for the Python 2.7 unittest framework. It is run via the Testr and Tox. Instructions for setting up and running the test can be found @ https://github.com/trafodion/dcs/tree/master/in source tree at dcs/src/test/pytests

 

...

 The code is written for the Python 2.7 unittest framework. It is run via the Testr and Tox. The data files required by the tests can be downloaded @ http://cdn.trafodion.org/qatests/g_data.tar.gz.