What is your getCoveredQCTestCases() method retrun ?
It returns either an iterator that returns Objects or an arrays of Objects according to the error message sneha343 posted.
@sneha343
If the returned objects are definitely Strings then you should consider changing the return type of getCoveredQCTestCases(). Alternatively if you want the string representation of the objects then change the type of the for-each variable to Object and inside the code block call its toString() method to get the string representation.
Bookmarks