Working with the Java harness

How to implement TestArchitect actions using the Java programming language.

This subsection contains two exercises that demonstrate how to create user-scripted actions implemented in the Java programming language, and how to access such actions in your tests.

Supported OS environments

  • Windows
  • Linux
  • The TestArchitect installation includes the Java Runtime Environment (JRE), which is used to run Java programs. The JRE is included in directory TA_INSTALL_DIR\jre.
  • To develop Java programs, you need the Java Development Kit (JDK). The JDK is free, open source software, available at the Oracle website. Ensure that you have JDK installed before you proceed with the examples here. Also, your system’s PATH variable must be set to include the path to the Java executable: for example, C:\Program Files\Java\jdk1.6.0_31\bin.
  • TestArchitect installation includes the file javaharnesslib.jar, which exposes the automation library objects and functions that are used in the Java harness.
  • Both your installation of TestArchitect and your JDK must be for the same machine architecture (32-bit or 64-bit).