获取SamplerProperties
import excelhelp.excel;
path = ctx.getCurrentSampler(). getProperty(“HTTPSampler.path”);
String spath=""+path;
log.info(spath);
method = ctx.getCurrentSampler(). getProperty(“HTTPSampler.method”);
String smethod=""+method;
log.info(smethod);
name = ctx.getCurrentSampler(). getProperty(“TestElement.name”);
String sname=""+name;
log.info(sname);
excel cwOutputFile=new excel();
String cOutputFile = cwOutputFile.cOutputFile(“C:\Users\112.xls”);
cwOutputFile.wOutPutFile(cOutputFile,sname, spath,smethod, “是”, “p1”);