Quantcast
Channel: Gurock Software Support Forum - General Discussion
Viewing all 685 articles
Browse latest View live

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.

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?

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 ?

[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

Editing Test Run results

$
0
0

Today I have Passed several Test Runs.

When I first pass the Test Run I have the ability to Edit the Test Run results but this edit button does not appear to exist on old Test Runs.

Please could you let me know why this disappears as it is sometimes useful to add further details to a Test Run you have previously completed.

Confused about deleted Test Cases

$
0
0

Hi,

I've written some SQL that returns all Cases where the value of one custom field is "x" and the value of another field is "y" for a given project.

The results contain a number of Case IDs that cannot be found when searching via the TestRail UI. When I enter the C#, it says:

The specified test case was not found.

I'm assuming that these Cases have been deleted, but they still exist in the Cases table. Is there another table or field somewhere that prevents Cases from being searched or shown in the UI?

I just need to understand to a.) make sure nothing has gone wrong and b.) ensure these can be excluded from my results.

Thanks.

Milestone Reseting after updating Test Case

$
0
0

Hi,

Test Case A is created. It is given a Milestone of 1.

The Milestone is then tested and eventually completed.

I then go back to Test Case A and make a small update to the steps, but the Milestone field is set to null and Milestone 1 is no longer available.

Why is this? I was hoping to use the Milestone as a means of identifying for what release a Test Case was originally created for. It seems it can't be used for that if the Milestone is removed when updating, so now I'm not sure what the Milestone field is actually used for. Given that a Test Case can be associated with many Milestones at a time, through Runs, it seemed logical to use it as the Milestone it was created for.

Is this a bug or a feature? If it's a feature, can you explain it to me?

Thanks!

So everybody are going to purchase some Grape 5S classic sneakers

$
0
0

A view at the good new line shoes of the 2013 fall Outside Retailer show. Producer janne kyttanen has made a line of 3D printed high-heeled shoes for cubify, that can be downloaded for free and printed. <a href=http://www.shoesworldly.com>http://www.shoesworldly.com</a> These can be broken up into many categories: runners, walkers, cross-trainers, hikers, and tennis shoes. . Buy Running Shoes for Ease, Not Pronation there is a reason for their different design and sleek feel. What do you think? Do you like it? I love these shoes so fine and eye-catching. Saints HC Sean Payton Makes A Halftime Change On His Shoes.

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


'blocked' status as a final status?

$
0
0

I see in the administration panel for 'edit status' that for 'blocked' (for example) I can't edit the status as a final status or that it is active ("Please note: You are editing a system status. Some properties cannot be changed.")

I don't quite understand why 'blocked' is a final status, since in our case at least these are tests that are blocked by a bug currently open, but once that bug is fixed this will come back to us to test (set to 'retest'). As such, we are definitely not done with it and it skews my progress/forecast statistics to have 'passed', 'failed' and 'blocked' all considered 'completed'.

Any chance we'll be able to edit those properties in the future?

In the meantime, I guess my only option is to come up with a new, custom status for the way we use 'blocked'? But then I'd still have the system status 'blocked' as an option because I also can't edit the 'active' status of a system status.

what if I want to see percent completed instead of percent passed?

$
0
0

In several places in TestRail, for a test plan/run, I see the statistics of passed, blocked, failed, etc. and then a big percentage for % passed. That's at the top of the overview page for a test plan or test run, for example,

And for individual test runs within a test plan overview page, I see the progress bar color coded with the individual statuses, then a % that shows what percent passed.

All well and good, but in the work I do I'm afraid my goal is to 'execute' all tests -- i.e. get them all to passed or failed. We aren't necessarily retesting all failed tests until they pass.

So what I need to see there is percentage 'completed' (based on 'final status' status for passed, failed, etc.).

Any chance that will ever be customizable, so that I could choose if I wanted % passed or % completed, say? I can imagine situations where % passed would be more helpful, just not for us!

How to schedule a new testrun of all passed failed testcases.

$
0
0

Weather the testrun is active or closed how can we re-schedule the passed failed testcases in a new testrun?

thx

How to export all the test runs for a project

$
0
0

Hello,

The export option only applies to each test run.

It would be useful to be able to export all the test runs for a project

I am using the XML files for an exporting reporting tool

It's quite time consuming to concatenate all the files, and leads to manual errors.

Best Regards

Laurent

TestRail dev environment

$
0
0

In my company, we have TestRail installed locally. I want to write my own reports and test them, not on production. How can I get my own dev sandbox to test my changes?

Thanks,

Hanna

Viewing all 685 articles
Browse latest View live