Hi i have to validate the database values with the UI displayed values so I am using Watij as an automation tool. The problem arises when i have to store the database values into the hashmap. Suppose the database is having 3 fields Name, Email and Address. And after firing the query the fetched rows are 10. I am taking the field values as the Key in hashmap and the retrieved rows as the values.
I am unable to store the values in hashmap. When i used the hashmap the values got overridden and at last i always got the single values for the respective keys. I tried declaring the hashmap having two parameters as string and an string[] but i was unable to read the final values. Can anybody help as i am not a java expert. Thanks.