2017-08-15 65 views
-4

當我在Eclipse中運行我的測試時,在控制檯中出現很多紅色的警告,雖然它不會停止我的執行並且chrome不會顯示任何警告。我想知道我能否擺脫它們。我粘貼在紅色的控制檯中出現的警告下方。我在Eclipse控制檯中得到警告

1502813688437 geckodriver INFO geckodriver 0.18.0 
1502813688445 geckodriver INFO Listening on 127.0.0.1:37427 
1502813688743 geckodriver::marionette INFO Starting browser /Applications/Firefox.app/Contents/MacOS/firefox-bin with args ["-marionette"] 
1502813691158 Marionette INFO Listening on port 62402 
1502813691575 Marionette DEBUG loaded listener.js 
2017-08-15 17:14:51.696 plugin-container[1907:206445] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x913b, name = 'com.apple.tsm.portname' 
See /usr/include/servers/bootstrap_defs.h for the error codes. 
2017-08-15 17:14:51.700 plugin-container[1907:206445] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x9503, name = 'com.apple.CFPasteboardClient' 
See /usr/include/servers/bootstrap_defs.h for the error codes. 
Aug 15, 2017 5:14:51 PM org.openqa.selenium.remote.ProtocolHandshake createSession 
INFO: Detected dialect: W3C 
1502813691752 Marionette DEBUG Received DOM event "beforeunload" for "about:blank" 
1502813691853 Marionette DEBUG Received DOM event "pagehide" for "about:blank" 
1502813691853 Marionette DEBUG Received DOM event "unload" for "about:blank" 
1502813691864 Marionette DEBUG Received DOM event "DOMContentLoaded" for "http://10.32.16.35:3000/" 
1502813691904 Marionette DEBUG Received DOM event "pageshow" for "http://10.32.16.35:3000/" 
+2

你有沒有做過這方面的研究? – tnw

+0

這聽起來像你可能不熟悉術語*標準輸出*和*標準錯誤*,這在這裏很重要。 – chrylis

回答

0

輸出紅色就是被寫入System.err在程序的某處(相對於System.out。在默認配置中它們都在相同的地方結束,因此不同的顏色)。這不是一件壞事,這取決於它表明的是什麼。

擺脫它的唯一方法是從程序中刪除違規行或避免觸發它們。您也可以將System.err輸出重定向到您看不到的地方。

相關問題