Quantcast
Channel: Gurock Software Support Forum
Viewing all 829 articles
Browse latest View live

TestRail 3 is great - but what's next?!

$
0
0

Hiya,

TestRail 3 is great, but being the never satisfied customer who always wants more, more, more - I'd like to know what you have planned for the next few .1 releases and your next major release.

Do you have a roadmap that you can share with us? If not, can you give us a high level view of where your focus will be next?

Thank you smile


Can I edit a test case during a test run?

$
0
0

It would be useful to be able to edit a test case from Test Runs & Results because as I am going through my test run I am finding some edits that need to be made.

Is this possible?  I have not yet found a way to edit while in Test Runs, I have to go back to Test Suites and Cases, find the offending test case and then edit it there and then go back to my test run.

Adding Test Results Through API

$
0
0

I am trying to add test results via the API and am getting a (400): Bad Request error. Does anyone know what might be wrong with this code? It worked on the old API before it required login credentials.

using (var client = new WebClient())
            {
                string testResultID = "59";
                string BaseURI = "http://testrailurl/index.php?/api/v2/";
                string url = string.Format("{0}add_result/{1}", BaseURI, testResultId);

                string authInfo = "login@email.com:password";
                authInfo = Convert.ToBase64String(Encoding.Default.GetBytes(authInfo));
                client.Headers["Authorization"] = "Basic " + authInfo;

                client.Headers.Add("Accept: application/json");
                client.Headers.Add("Content-Type: application/x-www-form-urlencoded");

                var data = new NameValueCollection();
                data.Add("status_id", testStatus);
                data.Add("comment", comment);

                var response = client.UploadValues(url, "POST", data);
                var str = Encoding.Default.GetString(response);
            }

Searches are very slow

$
0
0

Recently we've been seeing that searches on our local TestRail installation have been very slow, in the realm of minutes to execute.  I don't feel that this is due to load, since an individual search is slow even at night.  However we do have large suites, and we have even larger sets of run results, surpassing half a million results now.

Beyond searches, navigation, reports and every other screen works fine.

We have a Windows installation with MySQL.  Are there any specific settings or changes you might recommend for this very specific issue?

Any way to clear deleted test plans and milestones from the display?

$
0
0

I created several test milestones and test plans and then deleted them.  They still show in the Activity display for the project and are crossed out.  Is there any way to clear the items from the display after they are deleted?

Thanks.

Custom plugin: Redmine's custom fields

$
0
0

I was wonder if there was an efficient way to retrieve the list of custom fields and their potential values from the Redmine API.  Data mining the issues.json is not only time extensive, but also potentially incomplete, and I haven't been able to find any other custom field related JSON to extract the information from.  As it is, the effected Custom Field IDs and their potential values are hard coded, and I'm really not a big fan of it.

Any advice would be appreciated.

Thank you in advance,
Zoltan

Jira Integration Error

$
0
0

Getting an error when activating the project field in configuration for JIRA integration.

Plugin "Jira_REST" returned an error: Invalid HTTP code (401). Please check your user/password and that the REST API is enabled in Jira.

Turning Project Field off shows the JIRA enter Defect Page however Issue type is greyed out.

Please assist.

Read this first: about this forum

$
0
0

Hi there!

Our customers build amazing things with TestRail, such as UI Scripts, custom defect integrations, reports, test automation and more. This forum can be used to share such customizations and code snippets so we can all learn from each other and extend TestRail. We will also make sure to share any customizations in this forum. To keep everything organized, please prefix your topic subject with the type of customization you want to share, such as:

[UI Script] Adding a new tab
[Defect Plugin] Adding custom fields for Redmine
[Report] A new report based on case priorities
[Automation] Selenium test integration
[Authentication] Integration with multiple AD servers
[API] Integrating TestRail with HipChat
[Migration] Migrating test cases from TFS

Please only use this forum to share actual customizations and post questions or requests in our general TestRail forum instead.

Thanks!


POST request, 400 Bad Request Error - Content-Type header invalid

$
0
0

I am in the process of migrating a Testrail client to Testrail 3. I am following the migration guide and attempting to use JSON to send the requests. However, I am running into errors when using the add_run API method.

I am running this in RESTclient to debug.

The request I send is

POST index.php?/api/v2/add_run/1

(I have a project with id 1)

As request headers I am using

Content-Type: application/json

and

Authorization: Basic USERNAME:PASSWORD_BASE64

request body is:

    {
    "name":"name",
    "suite_id":1
    } 

Upon sending the request, I receive a "400 Bad Request" Response with the error message:

 {"error":"Content-Type header invalid (use Content-Type: application\/json)"}

Since I am in fact using

Content-Type: application/json

as a request header I have no idea why I am getting this error or what it means. Any ideas?

[UI Script] Hide Version field on Add Test Result dialog

$
0
0

The following UI script hides the Version field on the Add Test Result dialog:

name: Hide Version field
description: Hides the Version field on the Add Test Result dialog
author: Gurock Software
version: 1.0
includes:
excludes: 

js:
$(document).ready(
    function() {
        $.subscribe('result_dialog.loaded', 'uiscript_hide_version', 
        function()
        {
            $('#addResultVersion').parent('li').hide();
        });
    }
);

Testrail Api (old) after upgrade to v 3

$
0
0

Hi,
In your documentation you wrote, that the old version is still in place, although it will not be supported for new features.

I wrote a method in C# for writing back some testresults to testrail.
After the upgrading to v3 I got the error
Missing argument 1 for DropdownField::get_validation_rule(), called in C:\inetpub\testrail\app\controllers\miniapi.php on line 685 and defined

Here is the url:
https://testrail.xitaso.com/index.php?/ … 4fccc4a4d8

and here are the parameters that were passed:
status_id=1&comment="Success"&version=&elapsed=0&defects=&assignedto_id=1&custom_browser=5

The request header contains Accept: application/json and ContentType = "application/x-www-form-urlencoded" .

So are there any changes, or did I miss something?

configuring active directory on TestRail SAAS

$
0
0

Hello,
Is it possible to configure active directory integration on TestRail SAAS? We have a read-only active directory access on the DMZ. It would be great if we can integrate TestRail SAAS with our AD

custom reports on testrail SAAS ?

[UI Script] Make Elapsed field required on Add Test Result dialog

$
0
0

The following UI script makes the Elapsed field required on the Add Test Result dialog. Please note that this is a client-side validation only.

name: Make Elapsed field required
description: Makes the Elapsed field required on the Add Test Result dialog
author: Gurock Software
version: 1.0
includes: 
excludes: 

js:
$(document).ready(
    function() {
        $.subscribe('result_dialog.loaded', 'uiscript_require_elapsed', function(o)
        {
            $('#addResultElapsed').prev().append(' <span class="required">*</span>');
        });

        $.subscribe('result_dialog.validate', 'uiscript1', function(o)
        {
            if ($.trim(o.values.elapsed) == '')
            {
                $('#addResultErrors').append('Field Elapsed is a required field.');
                $('#addResultErrors').show();
                o.event.stopPropagation();
                return;
            }
        });
    }
);

Regards,
Tobias

[UI Script] Add Save + Cancel buttons to test case form

$
0
0

The following UI script adds Save + Cancel buttons to the toolbar on the test case form.

name: Add Save + Cancel buttons to test case form
description: Adds Save + Cancel buttons to the toolbar on the test case form
author: Gurock Software
version: 1.0
includes: ^cases/(add|edit)
excludes: 

js:
$(document).ready(
    function() {
        var save = $("<span class=\"actions\"><a href=\"#\"><img width=\"16\" height=\"16\" src=\"images/icons/accept.png\"> Save Test Case</a></span>");
        $("div#contentHeader").prepend(save);
        save.click(
            function() 
            {
                $('#submit').click();
            }
        );                

        var cancel = $("<span class=\"actions\"><a href=\"#\"><img width=\"16\" height=\"16\" src=\"images/icons/cancel.png\"> Cancel</a></span>");
        $("div#contentHeader").prepend(cancel);
        cancel.click(
            function() 
            {
                var href = $('#submit').next().attr('href');
                document.location = href;
            }
        );
    }
);

Regards,
Tobias


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

$
0
0

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

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

js:
$(document).ready(
    function() {
        /* Create the button */
        var image = uiscripts.env.resource_base + "images/icons/running.png";
        var button = $("<span class=\"actions\"><a href=\"javascript:void(0)\"><img width=\"8\" height=\"16\" src=\"" + image + "\"/> New Button</a></span>");

        /* Add it to the toolbar */
        $("div#contentHeader span.actions:last").before(button);

        /* Bind the click event */
        $("a", button).click(
            function()
            {
                alert('Clicked!');
            }
        );
    }
);

Regards,
Tobias

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

$
0
0

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

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\"><span>New Button</span></a>");
        $('#sidebarMenu').next().prepend(button);

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

Regards,
Tobias

[UI Script] Question: Hiding fields in test cases/add or edit

$
0
0

Hi,
I would like to hide the Milestone and Priority fields in the test cases.
I've tried to make a script according to examples from you documentation and this forum but I just don't get it right... hmm
I would really appreciate some help!
Thanks,
/Katarina

[Admin, Roles] Permission to add projects

$
0
0

Hi,
I would like to create a user role that does not have permission to add projects or suits.
I can only find the suit option but none for adding projects?
...or what does the configuration option mean?

How can I solve this?
Kind regards,
Katarina

SmartInspect 3.3.5 released

$
0
0

The SmartInspect 3.3.5 release is now available.

What's New
The following list displays all changes of the SmartInspect 3.3.5 release at a glance.

  • Added: Support for Delphi XE4 (32 + 64-bit)

Download
As usual, customers can download the new version from our customer portal at My Gurock.com. The updated trial version can be downloaded from our website.

Regards,
Tobias

Viewing all 829 articles
Browse latest View live