String TC_Status="PASS";
How to pass TC_Status value "PASS" in td tag of html
File f = new File("source.htm");
BufferedWriter bw = new BufferedWriter(new FileWriter(f));
bw.write("<html>");
bw.write("<body>");
bw.write("<table cellspacing="+50+">");
bw.write("<tr>");
bw.write("<td>S.No</td>");
bw.write("<td>TestCaseDescription</td>");
bw.write("<td>Status</td>");
bw.write("<td>Screenshot</td>");
bw.write("</tr>");
bw.write("<tr>");
bw.write("<td>1</td>");
bw.write("<td>Login</td>");
bw.write("<td></td>"); ---------------------------------- HERE PASS is to be displayed
bw.write("<td></td>");
bw.write("</tr>");
bw.write("</table>");
bw.write("</body>");
bw.write("</html>");
bw.close();
please help in getting this done
这应该工作
bw.write("<td>"+TC_Status+"</td>");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.