gpt4 book ai didi

SoapUI 免费版 - 我们可以通过命令提示符执行测试并利用测试报告吗?

转载 作者:行者123 更新时间:2023-12-02 01:54:28 25 4
gpt4 key购买 nike

我正在尝试使用带和不带选项的 Windows 命令提示符运行 SoapUI project.xml 来生成测试报告,但出现以下访问拒绝错误。免费版的测试运行程序执行是否有效?或者这与您计算机上的管理员访问权限有关?

testrunner.bat  C:\Users\meiyer\Desktop\LOAD TOOLS\SOAPUI sample projects\RESTTEST\Locations.xml

testrunner.bat -FPDF -R"JUnit-Style HTML Report" C:\Users\meiyer\Desktop\LOAD TOOLS\SOAPUI sample projects\RESTTEST\Locations.xml

Configuring log4j from [C:\Program Files\SmartBear\SoapUI-5.2.1\bin\soapui-
log4j.xml]
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: global-groovy.log (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:2
56)
at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.ja
va:220)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurat
or.java:150)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfi
gurator.java:163)
at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOM
Configurator.java:425)
at org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.ja
va:345)
at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:827)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java
:712)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java
:604)
at org.apache.log4j.xml.XMLWatchdog.doOnChange(DOMConfigurator.java:861)
at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileWatchdog.
java:88)
at org.apache.log4j.helpers.FileWatchdog.<init>(FileWatchdog.java:57)
at org.apache.log4j.xml.XMLWatchdog.<init>(DOMConfigurator.java:853)
at org.apache.log4j.xml.DOMConfigurator.configureAndWatch(DOMConfigurato
r.java:584)
at com.eviware.soapui.DefaultSoapUICore.initLog(DefaultSoapUICore.java:4
80)
at com.eviware.soapui.DefaultSoapUICore.init(DefaultSoapUICore.java:124)

at com.eviware.soapui.DefaultSoapUICore.<init>(DefaultSoapUICore.java:11
4)

最佳答案

是的,这是一个访问权限问题。默认情况下,SoapUI 尝试写入其 SoapUI 程序目录,这是不好的风格。

要更改此行为,请转到 C:\Program Files\SmartBear\SoapUI-5.3.0\bin\soapui-log4j.xml 并查找文件参数值(例如,在 >GLOBAL_GROOVY_LOG 附加器)

global-groovy.log 的值设置为当前用户有权访问的路径。例如。您的用户目录。

我尝试在那里使用 Windows 环境变量,但短期内没有成功。

关于SoapUI 免费版 - 我们可以通过命令提示符执行测试并利用测试报告吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39415710/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com