Changes between Version 2 and Version 3 of TestManagerForTracPluginApi


Ignore:
Timestamp:
Aug 22, 2010, 3:43:02 PM (4 years ago)
Author:
seccanj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TestManagerForTracPluginApi

    v2 v3  
    2626}}}
    2727
    28 this will assign a unique ID (the number 0 in the URL below) to the new catalog and redirect to a Wiki edit page:
     28this will assign a unique ID (the number 0 in the URL below) to the new catalog, create the corresponding Wiki page and redirect to it.
     29You may discard the response if you don't need to know the catalog ID (last number in the URL):
    2930
    3031{{{
    31 <yourserver/yourproject>/wiki/TC_TT0?action=edit&text=%3D%3D+My+new+catalog+%3D%3D
     32<yourserver/yourproject>/wiki/TC_TT0
    3233}}}
    33 
    34 then you can simply post the form to submit the page and thus create the catalog.
    35 
    36 Having to POST Wiki pages to submit them is annoying anyway, so I was planning to add an additional parameter to the /testcreate API to directly save the Wiki pages, with no need to edit them eventually.
    37 Maybe an additional "force" parameter would allow for resolving conflicts.
    3834
    3935[[BR]]
     
    4541}}}
    4642
    47 this will assign a unique ID (the number 1 in the URL below) to the new catalog and redirect to a Wiki edit page:
     43this will assign a unique ID (the number 1 in the URL below) to the new catalog, create the corresponding Wiki page and redirect to it.
     44You may discard the response if you don't need to know the catalog ID (last number in the URL):
    4845
    4946{{{
    50 <yourserver/yourproject>/wiki/TC_TT0_TT1?action=edit&text=%3D%3D+My+sub+catalog+%3D%3D
     47<yourserver/yourproject>/wiki/TC_TT0_TT1
    5148}}}
    52 
    53 then you can simply post the form to submit the page and thus create the sub-catalog.
    5449
    5550[[BR]]
    5651=== Create a Test Case ===
    57 Get the wollowing URL, where "path" is the name of the parent (sub-)catalog.
     52Get the following URL, where "path" is the name of the parent (sub-)catalog.
    5853
    5954{{{
     
    6156}}}
    6257
    63 this will assign a unique ID (the number 0 in the URL below) to the new test case and redirect to a Wiki edit page:
     58this will assign a unique ID (the number 0 in the URL below) to the new test case, create the corresponding Wiki page and redirect to it.
     59You may discard the response if you don't need to know the test case ID (last number in the URL):
    6460{{{
    65 <yourserver/yourproject>/wiki/TC_TT0_TT1_TC0?action=edit&text=%3D%3D+My+new+Test+Case+%3D%3D
     61<yourserver/yourproject>/wiki/TC_TT0_TT1_TC0
    6662}}}
    67 
    68 then you can simply post the form to submit the page and thus create the test case.
    6963
    7064[[BR]][[BR]]
     
    8276
    8377this will assign a unique ID (the number 1 in the URL below) to the new test plan and redirect to displaying the Test Plan:
     78You may discard the response if you don't need to know the plan ID (planid parameter in the URL):
    8479{{{
    8580<yourserver/yourproject>/wiki/TC_TT0?planid=1
    8681}}}
    8782
    88 The Test Plan will contain all of the test cases in the specified catalog, with a verdict of "Untested".
     83The Test Plan will contain all of the test cases in the specified catalog, with a status of "Untested".
     84
     85'''Note:'''
     86As you can notice, you can always pass from a test catalog to one of its test plans by adding the "planid=<plan id>" parameter to the test catalog URL.
     87The same also stands for test cases. You can pass to a test case in a particular plan by adding the planid parameter to its URL.
    8988
    9089[[BR]][[BR]]