我尝试添加函数:
public static Response RestAssuredExtension(String path){
RestAssured.baseURI = initializeURLReturn() ;
RequestSpecification request = RestAssured.given().filter(new AllureRestAssured());
request.header("Content-Type","application/json");
request.header("Authorization","Bearer " + bearerToken).header("Content-Type","application/json");
Response response = request.get(path);
return response;
}
为了将请求添加到allure report,当我这样做时,我得到了一个错误,没有过滤器,所有的都只是工作,我在这里遗漏了什么?
暂无答案!
目前还没有任何答案,快来回答吧!