私はHow do I turn off 1-line error reporting in Failsafe?の反対ですが、私はそこに説明されているように反対のことをしました。<trimStackTrace>true</trimStackTrace>
を "maven-surefire-plugin"の<configuration>
セクションに入れましたが、 "1-lineここで説明するように、エラーの概要」:The 1-line error summary、私は私が入力したときに、この出力を取得しています:maven出力の1行エラーサマリーを取得する方法は?
mvn clean test
かとHTML形式のレポートを生成する:双方の共同で
mvn surefire-report:report site -DgenerateReports=false -Dtest=TestWebPcQubitArV5
私はすべてのための冗長性のこのレベルを取得するmmandsは、テストケースに失敗しました:私はドキュメントのような何かを得ると仮定した場合
Running tv.qubit.suites.TestWebPcQubitCoV5
Tests run: 5, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 196.798 sec <<< FAILURE! - in tv.qubit.suites.TestWebPcQubitCoV5
testLandingPage(tv.qubit.suites.TestWebPcQubitCoV5) Time elapsed: 40.344 sec <<< ERROR!
org.openqa.selenium.NoSuchElementException:
no such element: Unable to locate element: {"method":"link text","selector":"Comenzá tu mes gratis"}
(Session info: chrome=53.0.2785.92)
(Driver info: chromedriver=2.23.409687 (c46e862757edc04c06b1bd88724d15a5807b84d1),platform=Linux 4.7.2-1-ARCH x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 30.06 seconds
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: 'unknown', revision: '31c43c8', time: '2016-08-02 21:57:56 -0700'
System info: host: 'arch', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.7.2-1-ARCH', java.version: '1.8.0_102'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.23.409687 (c46e862757edc04c06b1bd88724d15a5807b84d1), userDataDir=/tmp/.org.chromium.Chromium.m22jAs}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=53.0.2785.92, platform=LINUX, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]
Session ID: 036114974517a8f9c7215f2e615ffb27
*** Element info: {Using=link text, value=Comenzá tu mes gratis}
at tv.qubit.suites.TestWebPcQubitCoV5.testLandingPage(TestWebPcQubitCoV5.java:67)
を言う:
Failed tests:
Test1.assertion1:59 Bending maths expected:<[123]> but was:<[312]>
Test1.assertion2:64 True is false
Tests in error:
Test1.nullPointerInLibrary:38 » NullPointer
Test1.failInMethod:43->innerFailure:68 NullPointer Fail here
Test1.failInLibInMethod:48 » NullPointer
Test1.failInNestedLibInMethod:54->nestedLibFailure:72 » NullPointer
Test2.test6281:33 Runtime FailHere
上の出力は 'ドキュメント用... 'はセレネ...そしてMavenからです。 – khmarbaise
はい、どちらの出力も最初の出力はmavenから出力されますが、セレン出力もあります –