I am trying to create new test page from REST api calls in Fitnesse. The page is being created but the contents is not being added.

I am using addChild responder.

here is my code.

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);

I searched a lot but couldn't find any examples also.. please help. Thanks in advance.

有帮助吗?

解决方案

After lots of efforts I found that that documentation is wrong for Rest on fitness.org the parameter in the request is not 'content' but 'pageContent'...

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top