fi(接口测试): python 脚本失效
This commit is contained in:
parent
a5f2da3104
commit
8656fa36bf
|
@ -509,7 +509,7 @@
|
||||||
<artifactItem>
|
<artifactItem>
|
||||||
<groupId>org.python</groupId>
|
<groupId>org.python</groupId>
|
||||||
<artifactId>jython-standalone</artifactId>
|
<artifactId>jython-standalone</artifactId>
|
||||||
<version>2.7.0</version>
|
<version>2.7.2</version>
|
||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
<overWrite>true</overWrite>
|
<overWrite>true</overWrite>
|
||||||
<outputDirectory>src/main/resources/jmeter/lib/ext</outputDirectory>
|
<outputDirectory>src/main/resources/jmeter/lib/ext</outputDirectory>
|
||||||
|
|
|
@ -72,13 +72,15 @@ public class AppStartListener implements ApplicationListener<ApplicationReadyEve
|
||||||
*/
|
*/
|
||||||
private void loadJars() {
|
private void loadJars() {
|
||||||
List<JarConfig> jars = jarConfigService.list();
|
List<JarConfig> jars = jarConfigService.list();
|
||||||
try {
|
|
||||||
jars.forEach(jarConfig -> {
|
jars.forEach(jarConfig -> {
|
||||||
|
try {
|
||||||
NewDriverManager.loadJar(jarConfig.getPath());
|
NewDriverManager.loadJar(jarConfig.getPath());
|
||||||
});
|
} catch (Exception e) {
|
||||||
} catch (Exception e) {
|
e.printStackTrace();
|
||||||
e.printStackTrace();
|
LogUtil.error(e.getMessage(), e);
|
||||||
LogUtil.error(e.getMessage(), e);
|
}
|
||||||
}
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue