Forum Discussion
Praveen_Dsouza
16 years agoOccasional Contributor
Thanks so much for the response. I know how to create a simple HTML file in Groovy Script. The only thing I want to know is how to get the "success" or "failure" message which is the result of the operations or TestCases. I tried response.getStatusCode() but this does not perform the necessary task. May be I need to fetch the assertion value but I don't know how to do that. Below code shows the file generation code; where 'bw' is "BufferedWriter" object. Please reply..
bw.write("-------------------STATUS CODE---------------------");
bw.newLine();
bw.newLine();
bw.write("");
bw.write(httpResponse.getStatusCode());
bw.write("");
bw.newLine();
bw.newLine();
bw.write("-------------------STATUS CODE---------------------");
bw.write("-------------------STATUS CODE---------------------");
bw.newLine();
bw.newLine();
bw.write("");
bw.write(httpResponse.getStatusCode());
bw.write("");
bw.newLine();
bw.newLine();
bw.write("-------------------STATUS CODE---------------------");
Related Content
Recent Discussions
- 6 days agoemoya