【发布时间】:2021-03-30 07:49:22
【问题描述】:
In below example, if i run this it is taking z as string, not as parameter,
String z= "1234";
System.out.println("converted"+z);
try {
RestAssured.baseURI = "http://192.189.11.51:05/oceans/fssdata/";
String requestBody ="{\"CompanyID\":z"
+ ""
+ ""
+ "}";`
如何在公司ID中传递参数Z,现在是以公司ID为z,我希望它应该取z的值。
【问题讨论】:
标签: java api selenium rest-assured rest-assured-jsonpath