Using Eclipse to develop LoadRunner scripts
LoadRunner provides powerful script development functions. If you like java, you may feel uncomfortable in the script editing that comes with LoadRunner, and you are not comfortable in eclipse, so use the following methods!
(1) create an empty java project in eclipse with any name, such as loadrunner, and delete the src folder below
(2) copy the lrapi folder under the classes directory in the LoadRunner installation directory to the new java project in (1).
The directory is as follows: C:\ Program Files\ HP\ LoadRunner\ classes\ lrapi
The final result is a screenshot for you:
(3) right-click on the project in (1) and package export to jar.
The method is very simple, all the way through next
(4) just add this package to the environment variable that you want to script development, as shown below.
Then you can write scripts in eclipse, using eclipse prompts and so on.
(5) "import lrapi.lr;" can use the LoadRunner function.
(6) "import lrapi.web;" can use the WEB function of LoadRunner
Then you can write scripts in eclipse, and you can use the prompt function of eclipse, which is very convenient. Let's get started.