I don't have a set of test data like your scenario handy, but just thinking through it this is what I would suggest;
If you select to Visualize with a Data Table, you might want to aggregate on the caseName with the Metric being Max timestamp or Max buildID. I'm thinking that would give you only the latest pass or fail result (if that's what you want to see).
And then add a Sub-bucket aggregation on the Status so you get the actual pass/fail results of the last run of each test. I could have this backwards, but you can easily switch the order of those aggregations to see.
Let's see if we can get that first visualization working and then come back to the others. You might possibly have to use a custom script to get the results you want.
Regards,
Lee