Versions Compared

Key

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

...

In the testcase editor you can select the operator, define the schema for each input port and parameters for the operator. The schema definition consists of the attribute names, their datatypes and their min and max values. In addition you can select the used metadata in the testcase. After storing the configuration, click on the generate button and the tool will generate an integration test for each metadata configuration using the operator parameter settings. The min and max values for the schema attributes are used to create an input file for the testcase by creating a permutation of possible values (if the Null checkbox is selcted, the permutation will include NULL attribute values). An example of a generated integration test is shown below:

 

Code Block
languagejs
/// Odysseus Testcase: MyTestcase
/// Operator: ASSUREORDER
/// Date: Sun Apr 26 00:53:35 CST 2015
/// User: ckuka
/// Parameter: 
///  SUPPRESSPUNCTUATIONS: 
///  NAME: 
///  DESTINATION: 
///  ID: 
///  DEBUG: true
#PARSER PQL
#DROPALLSOURCES
#DROPALLQUERIES
#METADATA TimeInterval
#RUNQUERY
input0 = ACCESS({
    source='source',
    wrapper='GenericPull',
    transport='file',
    protocol='SimpleCSV',
    dataHandler='Tuple',
    options=[
        ['filename', '${BUNDLE-ROOT}/input0.csv'],
        ['csv.delimiter', ';'],
        ['csv.trim', 'true']
        ],
    schema=[['Attribute2', 'Double']]})
output = ASSUREORDER({DEBUG=true}, input0)