loadrunner11??java vuser????jar??
????????? ???????[ 2017/4/18 13:53:05 ] ?????????????????? LoadRunner
????1.??????????????HelloWorld.java??????????:
????1 package com.liuke;
????2
????3
????4
????5 public class HelloWorld {
????6
????7 public String getHello(){
????8
????9 return "?????????????getHello()";
????10
????11 }
????12
????13 public static void main(String[] args) {
????14
????15 System. out .println("???????t??main???????");
????16
????17 }
????18
????19 }
????2??????jar?????????HelloWorld.jar
????3???????????jar??HelloWorld.jar??????????????£???D:LoadRunnerjar??
????4?????Virtual User???Java Vuser
????5??????jar?????HelloWorld.jar??Run-time Settings--classpath????HelloWorld.jar??
????6??д????????????£?
????1 import lrapi.lr;
????2
????3 import com.lkf.HelloWorld;
????4
????5
????6
????7 public class Actions
????8
????9 {
????10
????11
????12
????13 public int init() throws Throwable {
????14
????15 return 0;
????16
????17 }//end of init
????18
????19 public int action() throws Throwable {
????20
????21 //????????庯??getHello()
????22
????23 HelloWorld h = new HelloWorld();
????24
????25 System.out.println(h.getHello());
????26
????27 //???t????main????
????28
????29 HelloWorld.main(null);
????30
????31 return 0;
????32
????33 }//end of action
????34
????35 public int end() throws Throwable {
????36
????37 return 0;
????38
????39 }//end of end
????40
????41 }
????7?????н????????????????????????????????г????
????System. out??????????庯??getHello()
????System. out?????????t??main???????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11