Versions Compared

Key

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

Sample Data drives development in the Translator. It is key to working efficiently when building or editing interfaces. Sample data powers the visibility provided by the Annotation Windows and The string viewing window.

In the Translator, you can add and work with sample data to power your project as followsdevelopment:

Expand
Expand
titleAdd your Sample data, give it a name, and click the ADD button
titleClick on the Add Sample Data button on the Translator menu bar
Image Removed
Adding sample data

You can add sample data using the Sample Data Folder File Menus or through the Toolbar.

Image Added

There are three options for how to add your the sample data:

  1. Copy paste your sample data in the Data box.

  2. Use From File to import a sample data file.

  3. Use From Component Log to import messages from any components logs to use as a sample.

Image RemovedImage Added
the Project Tree
Expand
titleNow you can easily access, edit and manage Editing and managing your sample data

Edit your sample data in

All sample data is stored in the Project’s Sample Data folder.

Image Removed

Expand
titleYou can navigate through sample messages to test with the Annotation Window

You can quickly navigate through many sample messages to test your code against different message types or against messages with missing and/or invalid data. the code editor. When editing sample data, additional editing tools appear on the toolbar.

  1. The Translator will auto detect the language or data format being edited.

  2. Convert or hide the newline characters which can cause issues with parsing or formatting.

  3. Insert hex bytes to help with working with encoded data.

Image Added

Sample Data is stored in the Samples Folder in your Project Tree. Use the File Menus to Copy, Download, Duplicate, Rename or Delete the sample message.

Image Added
Expand
titleNavigating and working with your sample data

The current sample message is passed in as the argument to the main function for the script to execute against the specified sample. This allows you to run quick test cases with your various sample use cases.

Image Added

The sample data navigation controls allow you to:

  • Move to the first or last message Image Added

  • Move to the next or previous message Image Added

  • Navigate to a particular message by number Image Added

See the Annotation Windows for more on how it leverages Sample Data.

...