Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[Question] Assign Requirements #120
Hi everyone (and @lczub)
I'm currently using the API to recopy a test case in a new test suite.
I think that i have to use the function assignRequirements, but I don't know how to get requirementsId and requirementsSpecId.
getRequirements give me all the requirementsId, but is that enough ? If yes, what id goes where ?
Thanks in anticipation of an answer,
thanks for your interesssting request.
I will do some tries over the weekend and if I find a way, I will inform you, ok?
Thanks for your fast answer ! Yeah, i didn't found anything that could help me too to find how get it with the API.
Thanks you a lot for your help !
to fullfill your requirement, the TestLink server itself must be extended (or corrected).
Main pitfall is, that the api function assignRequirements requires the id of an requirements and the srs_id of the related req_spec. Problem is, the api function getRequirements only returns the requirement ids.
Change request against TestLink Server would be, that getRequirements should also return the srs_id or assignRequirements should work without srs_id.
Without this extension, you will have to combine the python api client with direct database interactions.
So if you create a change request for the TestLink server ( Mantis TestLink ) , that the srs_id can be requested via the api, I could extend afterwards the python client .
The workflow on the client side might be
Another new helpful TestLink server function would be the inverse of getReqCoverage, returning all requirements (or id and srs_id) assigned to a test case. That would reduce the client side workflow, specially the caching of req - tc references.
Thanks again for your fast answer.
Well, you explain very well all the steps to have a result, but the problem is that I have only few days on this project, because it was a temporary project while I was waiting for one more important to begin.
I don't think that I will obtain a solution to my answer before one or two days (because I think after this, this project will be over), but if you think that it will be helpful for you in the future, I still can try to make a request so they will add it in the features.
Thanks you for all your help.