沒有使用testng.xml的情況下調(diào)試testCase,需要設置一下dependsOnMethods,否則token將無法傳遞給其他test步驟 附上TestUtil.getToken()方法: 1 2 3 4 5 6 7 8 9 10 11 12 //獲取返回的token ,使用JsonPath獲取json路徑 publicstaticHashMap<String,String> getToken(CloseableHttpResponse closeableHttpResponse,St...
www.dbjr.com.cn/article/1841...htm 2025-5-24