2016-09-03 5 views
0

私は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 
+0

上の出力は 'ドキュメント用... 'はセレネ...そしてMavenからです。 – khmarbaise

+0

はい、どちらの出力も最初の出力はmavenから出力されますが、セレン出力もあります –

答えて

0

私の悪い... 1つのライン出力を以下に示しましたさ各エラーの完全なトレース私はMavenを持つbegginerだとして、私は誤って出力ではなく、すべてのONLY 1行の簡単なエラーが表示されることthinked ...

ここでMavenの全出力の下の部分です:

Results : 

Tests in error: 
tv.qubit.suites.TestWebPcQubitCoV5.testLandingPage(tv.qubit.suites.TestWebPcQubitCoV5) 
    Run 1: TestWebPcQubitCoV5.testLandingPage:67 » NoSuchElement no such element: Unable ... 
    Run 2: TestWebPcQubitCoV5.testLandingPage:67 » NoSuchElement no such element: Unable ... 
    Run 3: TestWebPcQubitCoV5.testLandingPage:67 » NoSuchElement no such element: Unable ... 
関連する問題