문제

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