1

我正在尝试从 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);

我搜索了很多,但也找不到任何示例..请帮忙。提前致谢。

4

1 回答 1

2

经过大量努力,我发现该文档对于 Fitness.org 上的 Rest 是错误的,请求中的参数不是“内容”而是“页面内容”......

于 2013-07-23T09:40:42.973 回答