Join 34,000+ subscribers and receive articles from our
blog about software quality, testing, QA and security.

Question/Request: Sort order of Test Runs in a Test Plan


#1

Greetings!

I am currently using Test Plans to group runs according to a particular sprint. This works great, but I would like to see the latest Test Run within a given test plan on top of the list instead of at the bottom. Currently the only way to do this appears to be re-arranging them manually 1 at a time which is not at all what I’m looking for.

Is there a setting somewhere to change the default sort order?

If not, I’d like to suggest this as a request for future upgrades.

Thanks,

-Kent


#2

Hello Kent,

Thanks for your posting. You can manually change the order for test runs when you edit the test plan but I believe you’ve seen this already. New test runs are currently always added to the end of the test plan but we are happy to consider making this configurable. I’ve just added a feature request for this, thanks for your suggestion.

Regards,
Tobias


#3

Excellent. Thanks!


#4

Hi Tobias,

any new on this one? I’ve recently integrated our jenkins test job to add new run after each job run so it would be nice to have newest runs at the top of the plan page.

otherwise, seems that I would have to
a) manually rearrange runs to move the bottom one to the top
b) frequently delete old runs
and neither is elegant solution

Nemanja


#5

Hello Nemanja,

No update on this one so far unfortunately. You can rearrange them in the UI of course and we are happy to look into adding an ‘index’ attribute to the test plan API or similar.

Cheers,
Tobias


#6

in the meantime, I’ve added this

name: Hide test runs headers from plan view
description: Hide test runs headers from plan view
version: 1.0
includes: ^plans/view
excludes:

js:
$(document).ready(function() {

$("DIV.detailsContainer").each(function() {
	$(this).insertAfter("h1.top");
});
$(".content-inner table.grid").each(function() {
	$(this).insertAfter("h1.top");
});
$("#sidebarSticky table tbody tr").each(function() {
	$(this).insertAfter("#sidebarSticky table tbody");
});

});

css:
#content-inner h2 {
display: none;

}


#8

That’s an option, thanks for sharing this!

Cheers,
Tobias


#9

Awesome this worked was going to ask for feature requests since i am no java script expert or guru. I like the extensibility that test rails provides but would be nice to have this in the UI without having to have these custom scripts.


#10

I’m also not a JS expert but I have asked a colleague dev to resolve this :slight_smile: