Java Syntax

Importing the Class

To use Java calls in a VuGen script without specifying the full class path, put an include statement at the beginning of the action. For example, to use web and utility functions, put this line at the beginning of the action:


import lrapi.web;

Without these statements, you will have to specify the parent class:


With the statements, you do not need the parent class:



Differences between C Syntax and Java Syntax

Java calls are different from C language calls in three important ways: string arguments are constructed differently, Java actions require an exception block, and the list argument syntax is different.