1.新建一个java请求执行加法类 public class TestDemo { public int Tdemo(int a,int b){ int sum = 0; sum = a+b; return sum; } } 2.再建一个jmeter的java请求类 import org.apache.jmeter.config.Arguments; import org.apache.jmeter.protocol.java.sampler.AbstractJavaSamplerClient;…
2017-08-23 10:38:01 writer:pprp package test; import java.util.*; public class test2 { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("welcome to test2"); //记住数组初始化应该这样 int[] d = new int[]{1,2,3,4}…