Guest User

Untitled

a guest
Jul 17th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.87 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>SOME TEST</title>
  4. </head>
  5. <body bgcolor="#CFECEC" background="someimage.gif" lang=EN-US
  6. link="blue" vlink="#993300" alink="green" style='tab-interval:.5in' face="Times New Roman">
  7. <b>
  8. <font face="Times New Roman" size="4"> SOME TEST SUITE </font>
  9. <br>
  10. <hr>
  11. <b>
  12. <font face="Times New Roman" size="2">Start Time : Wed Jun 13 17:07:05 2018</font>
  13. <br>
  14. <br>
  15. <table border="0" width="100%">
  16. <tr>
  17. <td width="20%" bgcolor="#999999">Test Case Name</td>
  18. <td width="17%" bgcolor="#999999">Test Result</td>
  19. <td width="18%" bgcolor="#999999">Number of cases executed</td>
  20. <td width="45%" bgcolor="#999999">Test Description</td>
  21. </tr>
  22. <tr bgcolor="#C0C0C0">
  23. <td width="20%">
  24. <table>
  25. <tr>
  26. <td bgcolor=#C0C0C0>
  27. <font color=#000000>
  28. <font face="Times New Roman" size="2">
  29. Test_1</font>
  30. </font>
  31. </td>
  32. </tr>
  33. </table>
  34. </td>
  35. <td width="17%">
  36. <table>
  37. <tr>
  38. <td bgcolor=#C0C0C0>
  39. <font color=#000000>
  40. <font face="Times New Roman" size="2">
  41. <a href="test1link.html#Test1">
  42. SUCCESS</a>
  43. </font>
  44. </pre>
  45. </font>
  46. </td>
  47. </tr>
  48. </table>
  49. </td>
  50. <td align="center" width="18%">
  51. <table>
  52. <tr>
  53. <td bgcolor=#C0C0C0>
  54. <font color=#000000>
  55. <font face="Times New Roman" size="2">
  56. 1</font>
  57. </font>
  58. </td>
  59. </tr>
  60. </table>
  61. </td>
  62. <td width="45%">
  63. <table>
  64. <tr>
  65. <td bgcolor=#C0C0C0>
  66. <font color=#000000>
  67. <font face="Times New Roman" size="2">
  68. Test 1 description</font>
  69. </font>
  70. </td>
  71. </tr>
  72. </table>
  73. </td>
  74. </tr>
  75. <tr bgcolor="#FFFFCC">
  76. <td width="20%">
  77. <table>
  78. <tr>
  79. <td bgcolor=#FFFFCC>
  80. <font color=#000000>
  81. <font face="Times New Roman" size="2">
  82. Test_2</font>
  83. </font>
  84. </td>
  85. </tr>
  86. </table>
  87. </td>
  88. <td width="17%">
  89. <table>
  90. <tr>
  91. <td bgcolor=#FFFFCC>
  92. <font color=#000000>
  93. <font face="Times New Roman" size="2">
  94. <a href="Test2link.html#Test2">
  95. SUCCESS</a>
  96. </font>
  97. </pre>
  98. </font>
  99. </td>
  100. </tr>
  101. </table>
  102. </td>
  103. <td align="center" width="18%">
  104. <table>
  105. <tr>
  106. <td bgcolor=#FFFFCC>
  107. <font color=#000000>
  108. <font face="Times New Roman" size="2">
  109. 1</font>
  110. </font>
  111. </td>
  112. </tr>
  113. </table>
  114. </td>
  115. <td width="45%">
  116. <table>
  117. <tr>
  118. <td bgcolor=#FFFFCC>
  119. <font color=#000000>
  120. <font face="Times New Roman" size="2">
  121. Test 2 description</font>
  122. </font>
  123. </td>
  124. </tr>
  125. </table>
  126. </td>
  127. </tr>
  128. <tr bgcolor="#C0C0C0">
  129. <td width="20%">
  130. <table>
  131. <tr>
  132. <td bgcolor=#C0C0C0>
  133. <font color=#000000>
  134. <font face="Times New Roman" size="2">
  135. Test_3</font>
  136. </font>
  137. </td>
  138. </tr>
  139. </table>
  140. </td>
  141. <td width="17%">
  142. <table>
  143. <tr>
  144. <td bgcolor=#C0C0C0>
  145. <font color=#000000>
  146. <font face="Times New Roman" size="2">
  147. <a href="Test3link.html#Test3">
  148. SUCCESS</a>
  149. </font>
  150. </pre>
  151. </font>
  152. </td>
  153. </tr>
  154. </table>
  155. </td>
  156. <td align="center" width="18%">
  157. <table>
  158. <tr>
  159. <td bgcolor=#C0C0C0>
  160. <font color=#000000>
  161. <font face="Times New Roman" size="2">
  162. 1</font>
  163. </font>
  164. </td>
  165. </tr>
  166. </table>
  167. </td>
  168. <td width="45%">
  169. <table>
  170. <tr>
  171. <td bgcolor=#C0C0C0>
  172. <font color=#000000>
  173. <font face="Times New Roman" size="2">
  174. Test3 description</font>
  175. </font>
  176. </td>
  177. </tr>
  178. </table>
  179. </td>
  180. </tr>
  181. </tr>
  182. </table>
  183. <font face="Times New Roman" size="2">
  184. <br>End Time: Thu Jun 14 07:48:11 2018
  185. <br>
  186. <hr>
  187.  
  188. for (Element table : doc.select("table")) {
  189. for (Element row : table.select("tr")) {
  190. Elements tds = row.select("td");
  191.  
  192. if (tds.size() > 6) {
  193. System.out.println(tds.get(0).text() + ":" + tds.get(1).text()); // won't work as method needs to be generic
Add Comment
Please, Sign In to add comment