I want to create a HashMap as Globally available variable for all the custom Keywords.
The scenario is such ==>
Each Custom Keyword denotes a test case. So at the end of Custom Keyword, I am entering its result status and other information in an excel file. Due to this there are lots of file read and write operations. The most appropriate solution seems to write all this data in HashMap and at the end of all test case executions, write the data to an excel file. But for this the HashMap must be common across all the keywords. How to do that?
The HashMap Structure is =>
HashMap<String, ArrayList<String, String, String>>
its ok to create an empty global var of map type before executing test. But the hashmap global variable would be populated on test execution. But once all the tests are executed, I want to write all the key value pairs in excel. How to permanently set and update value to global variable?