testng: 獲取src/main/resources資源文件夾下路徑

若將瀏覽器的配置,及url寫在了.properties文件中,則需要讀取該配置文件; 1.若測試項目的結構如下: 2.在ReadProperties.java 需要獲取config.properties的路徑: 如下: public Properties readProperties(){ //創建對象 Properties pro = new Properties
相關文章
相關標籤/搜索