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

Importing References for TestCases


#1

Hello,

I’m presently working on importing test cases to TestRail using the API. In the TestCase fields, there is an attribute called ‘References’. Isn’t it possible to import ‘References’ values using the API?

Also, do References here mean Defects (Bugs)?

Thanks,
Sanath


#2

References is on the test case and can be just about anything that would have meaning to you at the test case level and generally entered when the test case is created. The Defect would generally be the Bug ID since it is active on the Test Result screen.


#3

Hi Sanath,

Thanks for your posting. The API does support references and the API field is called refs:

http://docs.gurock.com/testrail-api2/reference-cases#add_case

You can add multiple references by separating them by comma: TR-1, TR-2

Defects on the result level can be submitted via the defects field:

http://docs.gurock.com/testrail-api2/reference-results

Cheers,
Tobias


#4

Ah awesome, thank you!


#5

Ah, thanks Tobias! Found it.


#6

You are welcome, Sanath :slight_smile:

Cheers,
Tobias