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

Testrail Api (old) after upgrade to v 3


#1

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?/miniapi/add_result/613&key=cbd18ddb4cc2f85cedef654fccc4a4d8

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?


#2

Hallo Franz,

Thanks for your posting. There’s an update for the old API which you need to apply:

http://docs.gurock.com/testrail-api/installation

(just choose the 3.0 version and follow the installation/update instructions)

Regards,
Tobias