I have to validate an error message getting populated for 10 fields, 10 field names will be mentioned in the error message together.
Example :
Error message:10 fields got over lapped and 10 field names are ac, bc, dc..
Can you please help me to write the logic to validate the error message having all random strings.
Need to pass all strings values in to the creates string to compare the error message.
Map<String,String> m = arg1.asMap(String.class,String.class);
System.out.println("\nFilling form with below data\n");
for( String fieldname : m.keySet())
{
//Need to pass this field name to the error message and the error message may have multiple fieldnames//
System.out.println("Key -> " + fieldnames + " Value -> " + m.get(fieldnames));
}
}