Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 2 TIBCO BusinessEvents Studio Tools Utility : Running the Tester on the Command Line

Running the Tester on the Command Line
Running the Tester on the command line allows you to create test data templates, populate the test data files, and run tests.
To run the Tester on the command line, you will follow these steps:
1.
tester -generate
This generates the test data template files, which are used for concepts, scorecard, and events for a given project directory.
The test data template files are either in XLS or CSV format, as desired by the user, and are used to enter the test data. They will have a project name, element relative path, external ID, column names, and so on.
To generate a file in a specific format, see Command Line Options.
2.
3.
tester -import
This will import the data entered into test data files *.concepttestdat and *.eventtestdata. These files are similar to the files saved by the Studio Tester when selecting Create Test Data.
After converting the test data from the CSV file, the Tester performs the following:
After the checks it will throw errors, if any, so that the user can fix these errors in the CSV file.
4.
tester -assert
This will start an instance of the TIBCO BusinessEvents engine and assert the test data generated in step 2 to the instance.
After the assertion, the result data files will be saved in an output directory that has to be provided in the user command line options, and in one of these two formats:
Default Format: It is either the XML format (default) or HTML format (defined through the command line option).
Custom Format: Output is based on Types or Operation (such as Created, Modified, and Deleted).
The default output is generated based on Operation.
Command Line Options
The -tester operation provides for the following commands:

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved