October 2018
Intermediate to advanced
192 pages
5h 12m
English
Map is an interface in Java that works on a Key and Value pair concept, which cannot contain duplicate keys and each Key maps to, at the most, one value. HashMap is the implementation class of Map, which we will be using to store the data from the Excel sheet, which will be related to test steps of a particular testcase. First of all, we will just require a Java HashMap to extract the test steps. One more testcase has been added to show what happens when only a HashMap is used to extract multiple test case steps.
The following code shows how to extract data in HashMap from the Framework.xls:
public static void main(String[] args) { Fillo fillo = new Fillo(); Map<String, String> testcaseData = new HashMap<String, ...Read now
Unlock full access