cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

.getTestCaseAssociatedTestResultBeans

dpayne
1-Visitor

.getTestCaseAssociatedTestResultBeans

So I am using this method from the Issue Bean for a Test Case to loop through the Test Results. I want to be able to sort the beans based on a field, but do not know of a smooth way to do this. I am basically looking for the latest Test Result so that I can pull information off of it.

Any ideas?

Cheers,

Don

1 REPLY 1
jgorsline
12-Amethyst
(To:dpayne)

Having a quick look through the available methods on the beans, it doesn't look like this is an option. One way to sort this would be to create a comparator class that looks at the field value when comparing two beans and then user the standard java sorting passing in the comparator. Alternatively, looping through the beans might be the best option if you just want to find the bean that meets some criteria (eg. the item with the largest ID was created last).

If additional information or investigation is required, please create a case or call Technical Support.

Announcements


Top Tags