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

[UI Script] Add a new button to the sidebar of test runs


#1

The following UI script adds a new button to the toolbar of test runs.

[code]name: Add a button to the test run sidebar
description: Adds a new button to the sidebar of test runs
author: Gurock Software
version: 1.0
includes: ^runs/view
excludes:

js:
(document).ready( function() { var button = ("<a href=“javascript:void(0)” class=“buttonLink addButton”>New Button");
$(’#sidebarMenu’).next().prepend(button);

    button.click(
        function()
        {
            alert('Clicked!');
        }
    );
}

);[/code]

Regards,
Tobias


#2

Is there an update for 4.0 available?


#3

Hello Jonathan,

We would usually recommend adding a button to the toolbar instead with newer TR versions (the one with the existing Reports/Rerun/Edit buttons etc). The sidebar is mostly reserved for the tree and sub-menu. Would this also be an option?

Cheers,
Tobias