搭建自動化測試環境問題及解決辦法

1.Intellij idea 報錯:Error : java 不支持發行版本5

問題原因:配置不統一
解決辦法:
設置1:
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述

配置2:
在這裏插入圖片描述
在這裏插入圖片描述

備註:可藉助event log來排查問題
在這裏插入圖片描述
問題2:非法反射訪問
問題描述:

ARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.testng.xml.XMLParser (file:/Users/zhengyongcong/.m2/repository/org/testng/testng/6.9.9/testng-6.9.9.jar) to constructor com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl()
WARNING: Please consider reporting this to the maintainers of org.testng.xml.XMLParser
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章