I have an Array of Objects and each object has a status property,It may be pass or Fail or Skipped.If the Object status is other than 'pass', then i have to set the array status has fail irrespective of the number of objects in array and irrespective object with status pass.
singleTestMethod=[
{'status':'PASS'},
{'status':'PASS'},
{'status':'FAIL'},
{'status':'SKIPPED'},
'arrayStatus':'']
i expect the array status should only be set to pass when all the object status in the array are pass otherwise it should be set to fail only.