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.lr;

import lrapi.web;

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

lrapi.web.url...

lrapi.lr.log_message...

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

web.url...

lr.log_message...

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.