2021年3月3日星期三

How to update a table using hashmap?

I have a table like below (which is an HTML file and I want to update using Java hashmap):

enter image description here

Using hashmap, how do I update the above table? Say I have a map like:

public static HashMap<String, PojoClass> map = new HashMap<>();  

where PojoClass contains variables like:

public String moduleName="";    public String total="";    public String Executed="";    .  .  .  

And my String variable is a module name. I am not sure how to proceed with this kind of hashmap. Basically, I run my tests and based on the cucumber tag values like "Account", "Cart", etc., also based on the run status like passed or failed, I need to update my table (which is HTML). Say if the tag "Account" has "Passed" status, then the number in the "Passed" column corresponding to "Account" should be incremented by 1 and so on. How do I proceed?

https://stackoverflow.com/questions/66462297/how-to-update-a-table-using-hashmap March 04, 2021 at 01:49AM

没有评论:

发表评论