Creating Custom Tests with Kozio Scripting
Add Custom Tests using the Kozio Scripting Language
With the 1.18.8 release of VTOS Tools, we added a new feature to make it easier to add custom tests and custom commands to your test configuration. We have had many requests from customers asking for ways to add custom tests to their test configuration. Although Kozio provides many built-in tests, we don’t cover all devices, but do make it easy for a user to add custom tests.
When creating a new configuration, a new Scripts node if added to your test configuration. This new node provides two pop-up menus: Add Script File and Add Custom Command.
Add Kozio Script File
The Add Script File option allows the user to browse for a script file, which has the file extension *.ksc, and add it to their test setup. After a file is selected, the GUI will display all new commands defined in that script file. When the user runs that node, the script file is processed and new commands are added to their dictionary. The user can add one or more script files to their configuration. Distributed with this release is an examples folder that provides a tutorial, a template script file, and one or more example script files.
Add Custom Command
The Add Custom Command option allows the user to select from a pull-down a particular custom command. The list is populated with the new test commands discovered from all included script files. The user can add one or more custom commands to their setup, along with multiple script files. This allows the user to organize new commands according to their preferences. Select the new command and run it to see how your new command performs.
This process uses interpretation, not code compiling, so the user can make changes to a script file, and rerun the Scripts node to test them out. This iterative process makes for a very efficient test development environment.
Below is a screen shot showing VTOS Scan running the Real-Time Clock (RTC) test example. In this example, the first custom test fails intentionally and the second custom test passes – just to show the differences.
Let us know if you are using this new feature and what else we can add.