Html Tables


Sister

HTML tables are structured as cells within rows within tables. A two by two table could be written as:

  <table>
    <tr> <td> alpha </td> <td> bravo </td> </tr>
    <tr> <td> charlie </td> <td> delta </td> </tr>
  </table>

The FixtureClass assumes that the first cell of a table identifies the fixture subclass suitable for interpreting the rest of the table.

  <table>
    <tr> <td> SomeFixture </td> </tr>
    <tr> <td> alpha </td> <td> bravo </td> </tr>
    <tr> <td> charlie </td> <td> delta </td> </tr>
  </table>

This will work as written above, but often looks better on output if the first cell (the fixture name) is made to span the entire table using the colspan parameter to the <td> tag.

  <table>
    <tr> <td colspan=2> SomeFixture </td> </tr>
    <tr> <td> alpha </td> <td> bravo </td> </tr>
    <tr> <td> charlie </td> <td> delta </td> </tr>
  </table>

See ExampleTests for sample tables used for test data.

Microsoft Word is good for preparing html tables. Use Word's native table support or paste Excel tables into a Word document. Save the document "as html". Amazingly, Word can read back what it writes in this format and our framework can find the data in this format also.

See WikiTables for how to make tables in this wiki.

See ParsingTables to understand how the framework reads these tables.

 

Last edited October 22, 2002
Return to WelcomeVisitors