Hi!
hmm.. there is no easy way currently, you could start by using the new wildcard feature in 1.7.5 and specifying an xpath assertion that should match
*
*
1
TVObject
*
*
1
TVObject
*
*
1
TVObject
then you would have to create a seperate assertion for checking for each of the RatingItemId and corresponding AverageRating value..
count(//Ratings/Rating[RatingItemId/text() = '101' and AverageRating/text() = '3'] ) +
count(//Ratings/Rating[RatingItemId/text() = '102' and AverageRating/text() = '4'] ) +
count(//Ratings/Rating[RatingItemId/text() = '100' and AverageRating/text() = '2'] )
which should match
3
(you could also bake in all subelements to Rating in this xpath and skip the above wildcard assertion)
Hope this helps!
regards,
/Ole
eviware.com