Tuesday, September 17, 2013

Get Table Data

One of the most common tasks in our project is to retrieve data from a table in order to assert. With this post I will try to describe a unified way to get the required data from any table with a specific format so my assertions are well defined. The assertion points to be well defined I usually prefer to have my actual data in the form of a Map(key,value) so my assertions are in the form Assert.assertEquals(data.get(key),expected_value) I selected the key value for my map to be the value of the first column with value a second map containing...
Read More