Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>SOME TEST</title>
- </head>
- <body bgcolor="#CFECEC" background="someimage.gif" lang=EN-US
- link="blue" vlink="#993300" alink="green" style='tab-interval:.5in' face="Times New Roman">
- <b>
- <font face="Times New Roman" size="4"> SOME TEST SUITE </font>
- <br>
- <hr>
- <b>
- <font face="Times New Roman" size="2">Start Time : Wed Jun 13 17:07:05 2018</font>
- <br>
- <br>
- <table border="0" width="100%">
- <tr>
- <td width="20%" bgcolor="#999999">Test Case Name</td>
- <td width="17%" bgcolor="#999999">Test Result</td>
- <td width="18%" bgcolor="#999999">Number of cases executed</td>
- <td width="45%" bgcolor="#999999">Test Description</td>
- </tr>
- <tr bgcolor="#C0C0C0">
- <td width="20%">
- <table>
- <tr>
- <td bgcolor=#C0C0C0>
- <font color=#000000>
- <font face="Times New Roman" size="2">
- Test_1</font>
- </font>
- </td>
- </tr>
- </table>
- </td>
- <td width="17%">
- <table>
- <tr>
- <td bgcolor=#C0C0C0>
- <font color=#000000>
- <font face="Times New Roman" size="2">
- <a href="test1link.html#Test1">
- SUCCESS</a>
- </font>
- </pre>
- </font>
- </td>
- </tr>
- </table>
- </td>
- <td align="center" width="18%">
- <table>
- <tr>
- <td bgcolor=#C0C0C0>
- <font color=#000000>
- <font face="Times New Roman" size="2">
- 1</font>
- </font>
- </td>
- </tr>
- </table>
- </td>
- <td width="45%">
- <table>
- <tr>
- <td bgcolor=#C0C0C0>
- <font color=#000000>
- <font face="Times New Roman" size="2">
- Test 1 description</font>
- </font>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr bgcolor="#FFFFCC">
- <td width="20%">
- <table>
- <tr>
- <td bgcolor=#FFFFCC>
- <font color=#000000>
- <font face="Times New Roman" size="2">
- Test_2</font>
- </font>
- </td>
- </tr>
- </table>
- </td>
- <td width="17%">
- <table>
- <tr>
- <td bgcolor=#FFFFCC>
- <font color=#000000>
- <font face="Times New Roman" size="2">
- <a href="Test2link.html#Test2">
- SUCCESS</a>
- </font>
- </pre>
- </font>
- </td>
- </tr>
- </table>
- </td>
- <td align="center" width="18%">
- <table>
- <tr>
- <td bgcolor=#FFFFCC>
- <font color=#000000>
- <font face="Times New Roman" size="2">
- 1</font>
- </font>
- </td>
- </tr>
- </table>
- </td>
- <td width="45%">
- <table>
- <tr>
- <td bgcolor=#FFFFCC>
- <font color=#000000>
- <font face="Times New Roman" size="2">
- Test 2 description</font>
- </font>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr bgcolor="#C0C0C0">
- <td width="20%">
- <table>
- <tr>
- <td bgcolor=#C0C0C0>
- <font color=#000000>
- <font face="Times New Roman" size="2">
- Test_3</font>
- </font>
- </td>
- </tr>
- </table>
- </td>
- <td width="17%">
- <table>
- <tr>
- <td bgcolor=#C0C0C0>
- <font color=#000000>
- <font face="Times New Roman" size="2">
- <a href="Test3link.html#Test3">
- SUCCESS</a>
- </font>
- </pre>
- </font>
- </td>
- </tr>
- </table>
- </td>
- <td align="center" width="18%">
- <table>
- <tr>
- <td bgcolor=#C0C0C0>
- <font color=#000000>
- <font face="Times New Roman" size="2">
- 1</font>
- </font>
- </td>
- </tr>
- </table>
- </td>
- <td width="45%">
- <table>
- <tr>
- <td bgcolor=#C0C0C0>
- <font color=#000000>
- <font face="Times New Roman" size="2">
- Test3 description</font>
- </font>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </tr>
- </table>
- <font face="Times New Roman" size="2">
- <br>End Time: Thu Jun 14 07:48:11 2018
- <br>
- <hr>
- for (Element table : doc.select("table")) {
- for (Element row : table.select("tr")) {
- Elements tds = row.select("td");
- if (tds.size() > 6) {
- 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