Using API to assign tests to users

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
sander_pool
TestLink user
Posts: 12
Joined: Thu May 10, 2012 8:17 pm
Location: CT - USA

Using API to assign tests to users

Post by sander_pool »

Hi,

we run tests every night, a new build each time. My script creates a new build if it doesn't exist yet and logs results against that build. The test cases show the results against the correct build when I go to the test case details. This part seems to work fine. The problem is that reports (ie. http://testlink/lib/results/resultsGene ... an_id=3835) require test cases to be assigned to users for that build. I found this FAQ that covers the issue:

http://www.teamst.org/forum/viewtopic.php?f=22&t=6830

Did I understand the problem correctly? How do I get around this? I checked the API and there is no way to assign a user to tests for a particular build. Using the web interface is not an acceptable workaround. The tests run automatically and reporting should be automatic as well. Is there something else I can do? Searching the forum did not result in hits. Mantis has this issue http://mantis.testlink.org/view.php?id=4695 which appears related. We are using 1.9.3 so I suppose my issue is not quite what is described in Mantis or I'm doing something wrong.

Thanks,

Sander
Principal QA Automation Engineer at Somewhere
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Using API to assign tests to users

Post by fman »

>> Using the web interface is not an acceptable workaround
Is not a workaround is how the system works.
System has not been designed with focus only on Test Automation.

there is no API for this, but using code present on TL to create the API will not be very difficult for people with PHP knowledge.
You can add a feture request on mantis.
sander_pool
TestLink user
Posts: 12
Joined: Thu May 10, 2012 8:17 pm
Location: CT - USA

Re: Using API to assign tests to users

Post by sander_pool »

Being able to log automated results into a test database and have those be included in reports is a very basic requirement. I am surprised this hasn't been raised before. I suppose we're the first shop to use TL to test new builds ever day. I've already fixed a few API related issues but that only involved returning more information. I guess now I have to add a full new API.
Principal QA Automation Engineer at Somewhere
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Using API to assign tests to users

Post by fman »

API as any other feature evolves following different users needs.
We (Dev team) can not cover all users ideas, then we wait till features are requested, while working on improving existent one.

If you do any work:
1. open issue on mantis to trace request
2. follow our standard during development
3. provide us your work, in order to understand if can be added to stable code

for development I advide to create a gitrepo on github or gitoriuos, this way community can contribute to your work

regards
Post Reply