The last two days just got the Loadrunner-java script written, write it down and don't lose it.
1. Environment configuration
LR12 Support JDK1.7
LR11 only supports JDK1.6 and the following versions
I use LR11, there are two ways to make LR11 support Java Script
① installed JDK1.6 (32-bit) on the computer, and the environment variable Java_home/classpath/path configured to JDK1.6, the specific configuration method, please search Baidu ' JDK environment variable configuration '
② This approach is to solve the computer environment JDK1.7, and need to support the Java script situation,
Install the 32-bit JDK1.6 first, then create the Java vuser script, select the use JAVAVM jdk in Run-time Settings---specified, and enter the JDK1.6 path into the JDK corresponding to value, as shown in:
My JDk1.6 path is C:\Program Files (x86) \java\jdk1.6.0_45
Then empty all the jar packages in the classpath.
At this point in the script to write a random test, no error will indicate that the configuration was successful.
LoadRunner + Java Script Chapter I.