Hi there,
I can loop through lists and tables using the Loop Through Set operation but I can’t seem to get it to work with a dictionary? Is there a way I can loop through dictionaries in ORQA?
Thanks!
Hi there,
I can loop through lists and tables using the Loop Through Set operation but I can’t seem to get it to work with a dictionary? Is there a way I can loop through dictionaries in ORQA?
Thanks!
Hi SteelyBadger,
You can loop through dictionaries in ORQA using the Loop Through Set operation - you just need to append .entrySet() at the end of your dictionary name as the ‘Set’ parameter (e.g. =myDictionary.entrySet() where myDictionary is the dictionary name) .
From there inside the loop you can call .getKey() and .getValue() on the ‘Current Item Name’ parameter value to extract the key and value from the current dictionary entry in the loop.
Hope that helps!