HashMaps are one of those Java concepts that can be very useful in automation testing, but are not widely used, because they seem to be too complicated. A HashMap is nothing more than a collection of key/value pairs, where you can store test related data to access later in the tests. In this post i will go over the basics of a HashMap. And what better way to see what you can use it for than an example? Continue reading Using HashMaps in automated tests
Tag Archives: compare
Easily compare a list of Strings with the contents of a file
Context: you need to check that the values you have in a List of Strings are the same as the contents of a file. An element in the List will correspond to an entire line from the file. How can you achieve this easily? Continue reading Easily compare a list of Strings with the contents of a file
