I am asked to automate the creation of a whole project in TestLink. To do that, I face with 2 major problems.
First problem : I can't manage to create a platform and then assign it to a TestPlan.
As the "createPlatform" method doest not exist, I tried it this way :
Code: Select all
Platform platform=new Platform(id, platformName, platformDescription);
api.addPlatformToTestPlan(projectId, testPlanId, platformName); //where api=new TestLinkAPI(...);
Second problem : I can't manage to create or even just assign a list of requirements to a test case.
I couldn't find any method to create a requirement so I tried just to assign one given its ID, its specification ID and its document ID.
I made it like this :
Code: Select all
Requirement requirement=new Requirement(requirementId, requirementSpecificationId, requirementDocumentId);
requirements.add(requirement); //where requirements is an ArrayList of Requirement
api.assignRequirements(testCaseId, projectId, requirements);
If you could help me to resolve one or both of these problem, it would be very nice from you !
Thank you all
Laura