Welcome to Code Samples Plus Help
Code samples plus is a supplemental kit provided with OpenText Functional Testing that contains a set of commonly used VBScript and Python script excerpts, function library functions, and test samples.
Overview
Python scripting is supported in version 26.1 and later. Python samples are included in the installation in versions 26.3 and later.
The samples are divided into the following sections:
- Function Libraries contains a set of commonly used VBScript and Python script excerpts and function library functions.
- Flight Application Test Samples describes available tests and utilities that allow you to check the behavior of the sample flight applications.
Code samples are available in the <Installdir>\CodeSamplesPlus folder.
The sample files correspond to the topics in this help, with the Python files using the .py extension and the VBScript files using .vbs.
Note: Unless specified otherwise, the examples in this help are in VBScript. You can replace programming language statements with Python ones. For Object Model steps, you can use the same syntax but make sure all method calls enclose the arguments in parentheses '()' . Use empty parentheses '()' when calling a method with no arguments.
For details about using VBScript, see the online MSDN VBScript documentation. For syntax and guidelines when writing in Python, refer to the official Python documentation.
Prerequisite Background
This help is intended for users who will be writing their own scripts and are familiar with the features and options of OpenText Functional Testing.
This help should be used in conjunction with the Help Center.
Sample Applications
You can access the following sample applications from the Start menu. These applications are the basis for many examples in this help:
Advantage Online Shopping sample Web site. The URL for this Web site is https://advantageonlineshopping.com.
Flight reservation application. You can access the Flight GUI or Flight API applications from the Start menu.
These applications are also available from the file system at: <Installdir\samples\Flights Application\FlightsGUI.exe (for the Flight GUI application) or <Installdir>\samples\Flight_Application\FlightsAPI.exe (for the Flight API application)

