Jmeter 获取当前目录并创建文件夹
程序员文章站
2022-07-13 21:40:36
...
import org.apache.jmeter.gui.GuiPackage; import org.apache.commons.io.FilenameUtils; import java.io.File; import java.io.IOException; String testPlanFileDir = FilenameUtils.getFullPathNoEndSeparator(GuiPackage.getInstance().getTestPlanFile()); testPlanFileDir = testPlanFileDir.replace("jmeter\\plans","target\\download"); File folder = new File(testPlanFileDir); if(!folder.exists()){ folder.mkdirs(); }
下一篇: SqlPlus 远程连接数据库