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

Adding custom js or css to application?


#1

Is there a place you would recommend to insert custom js or css?

i.e. google analytics, zendesk dropbox, uservoice, etc.?

Thanks,

Mike


#2

Hi Mike,

It’s not currently possible to do this without changing TestRail’s files directly (which would get overridden when you update the application). We will look into supporting this with files under he /custom directory in the future. Could you provide a few more details on where/how you would like to add custom code? I assume this would also involve custom HTML code, is that correct? It’s already possible to link to external sites via the Markdown formatting, but adding widgets or similar is not yet supported.

Thanks,
Dennis


#3

Sure, a couple of examples are Google Analytics and Zendesk Dropbox. Analytics is self-explanatory, and Zendesk Dropbox is a small piece of js that displays a tab on each page in which it is loaded. Users can click on the tab which expands into a form overlay allowing them to submit bug reports, help questions, etc.

A more exciting integration would be allowing us to add js that provides a persistent menu, reading the project that the user is on. It could provide access to the requirements and other project related sites right from their testrail window.

Make sense?

Mike


#4

Hi Mike,

Thanks for the clarification and for the examples. We will look into providing an option to inject custom CSS and JavaScript code to TestRail. We already have a feature request to make it easier to customize the UI (or at least some aspects of it as the header color/logo) and this would be in the same category.

Thanks,
Dennis