Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Using Eclipse to develop LoadRunner scripts

2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report