我在POM中有一个gui测试设置:
<cucumber-jvm.version>1.1.5</cucumber-jvm.version>
<cucumber-html.version>0.2.3</cucumber-html.version>
<exec-maven-plugin.version>1.2.1</exec-maven-plugin.version>
<gherkin.version>2.12.2</gherkin.version>
<groovy.version>2.1.6</groovy.version>
<junit.version>4.10</junit.version>
<log4j.version>1.2.17</log4j.version>
<maven-surefire-plugin.version>2.12.3</maven-surefire-plugin.version>
<selenium-firefox-driver.version>2.40.0</selenium-firefox-driver.version>
<geb.version>0.9.2</geb.version>当我通过命令行中的"mvn测试“运行测试时,我得到了数千行(可能是数万行),如下所示:
2016-03-24 12:04:20,157 DEBUG wire - >> "GET /session/5754abb30961963f03fb55f47dc26bb2/element/0.2653651861473918-605/text HTTP/1.1[\r][\n]"
2016-03-24 12:04:20,157 DEBUG wire - >> "Accept: application/json, image/png[\r][\n]"
2016-03-24 12:04:20,157 DEBUG wire - >> "Cache-Control: no-cache[\r][\n]"
2016-03-24 12:04:20,157 DEBUG wire - >> "Host: localhost:31037[\r][\n]"
2016-03-24 12:04:20,157 DEBUG wire - >> "Connection: Keep-Alive[\r][\n]"
2016-03-24 12:04:20,157 DEBUG wire - >> "[\r][\n]"
2016-03-24 12:04:20,282 DEBUG wire - << "HTTP/1.1 200 OK[\r][\n]"
2016-03-24 12:04:20,282 DEBUG wire - << "Content-Length:70[\r][\n]"
2016-03-24 12:04:20,282 DEBUG wire - << "Content-Type:application/json; charset=utf-8[\r][\n]"
2016-03-24 12:04:20,282 DEBUG wire - << "Connection:close[\r][\n]"
2016-03-24 12:04:20,283 DEBUG wire - << "[\r][\n]"如何控制调试级别?我都不知道这是怎么回事。
我已经搜索了这个继承的项目的源代码,什么也找不到。
我在网上搜索过答案,但什么也没有。
发布于 2016-04-19 02:07:43
升级工具没有工作,因为我开始得到Java溢出。
最后,我将这些命令行选项添加到"mvn测试“中。
-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
-Dorg.apache.commons.logging.simplelog.showdatetime=true
-Dorg.apache.commons.logging.simplelog.log.org.apache.http=INFO
-Dorg.apache.commons.logging.simplelog.log.org.apache.http.wire=ERROR发布于 2016-03-25 08:39:00
是http日志记录。我会在Selenium中或周围搜索这个。
我的方法是将您的工具更新为更新的版本。你使用的一些东西是几年前的。
https://stackoverflow.com/questions/36191951
复制相似问题