Mantis Bugtracker 

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007650TestLinkAPI - XMLRPCpublic2016-08-25 07:062016-08-26 12:09
Assigned To 
PrioritynormalSeverityfeature requestReproducibilityhave not tried
PlatformOSOS Version
Product Version1.9.14 (2015 Q3) 
Fixed in Version 
Summary0007650: creating Requirements method
DescriptionIn order to fully automate the creation of a project in TestLink by using its XML-RPC API, it would be great if a method to create requirements could be available.
As a matter of fact, the method to assign a requirement is very useful but assumes that all the requirements to assign already exist but, in the case of the creation of a project, I need to first create the requirements and then to assign them.

So then I am thinking of a function such as createRequirement based on the same model than all the other "create" methods (createTestProject, createTestCase, ...).

Thank you for your precious help
TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL
PHP Version1.9.14
QA Team - Task Workflow Status
Attached Files

- Relationships
related to 0007648new getting Requirements method 

-  Notes
LauraG (reporter)
2016-08-26 07:23

Here are the information you require.

1) How the method will be called
    * createRequirementSpecification
    * @param struct $args
    * @param string $args["devKey"]
    * @param int $args["testprojectid"]
    * @param string $args["documentid"] : the document id to use for the req. spec. created
    * @param string $args["title"] : the title to use for the req. spec. created
    * @param int $args["type"]: the type to use for the req. spec. created
    * @param array $args["requirementactions"]
  public function createRequirementSpecification($args)

2) What will be the information returned by method
The detail of the error if one occurs.
Nothing in any other case.

This function assumes that another function createRequirementAction exists. This function could work just like the createRequirementSpecification described above with this type of call :
    * createRequirementAction
    * @param struct $args
    * @param string $args["documentid"] : the document id to use for the req. action created
    * @param string $args["title"] : the title to use for the req. action created
    * @param int $args["type"]: the type to use for the req. action created
    * @param int $args["section"]: the section to use for the req. action created
    * @param int $args["status"]: the status to use for the req. action created
    * @param int $args["nbtestcasesexpected"]: the number of test cases expected to use for the req. action created
  public function createRequirementSpecification($args)

I am sorry I can't help you more considering I absolutely know nothing about PHP.
Hope my request is clearer and easy to produce.
Thank you very much
fman (administrator)
2016-08-26 12:09

Dear user
1) Just remember next time to avoid sentence ' ... and esay to reproduce ...', that provides no info , no value.

2) do not user terms/concepts that does not exist on TestLink like RequirementAction.

3) On your detail now is clear that your first request is not what you intended.
You need to follow TestLink model:
You can not create a Requirement if you do not have first a Requirement Spec, because Req are children of Req Specs.

Now things are a lillte bit clear, but solution if/when will be implemented will no follow your model, but TestLink .
This means probably that two methods are going to be created
1) createReqSpec() => will be used to create just REQuirement SPECifications => A FOLDER
2) createReq()

- Issue History
Date Modified Username Field Change
2016-08-25 07:06 LauraG New Issue
2016-08-25 11:21 fman Relationship added related to 0007648
2016-08-26 07:23 LauraG Note Added: 0025155
2016-08-26 12:09 fman Note Added: 0025156

Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker