我正在尝试从 Fitnesse 中的 REST api 调用创建新的测试页面。正在创建页面,但未添加内容。
我正在使用 addChild 响应器。
这是我的代码。
DefaultHttpClient client = new DefaultHttpClient();
HttpGet post = new HttpGet("http://localhost:80/TestSuite?responder=addChild&pageName=RestSuite&pageType=Suite&content=valuetosave");
HttpResponse response = client.execute(post);
String str1 = EntityUtils.toString(response.getEntity());
System.out.println(str1);
我搜索了很多,但也找不到任何示例..请帮忙。提前致谢。