Changes between Version 2 and Version 3 of TestManagerForTracPluginApi
- Timestamp:
- Aug 22, 2010, 1:43:02 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TestManagerForTracPluginApi
v2 v3 26 26 }}} 27 27 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: 28 this 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. 29 You may discard the response if you don't need to know the catalog ID (last number in the URL): 29 30 30 31 {{{ 31 <yourserver/yourproject>/wiki/TC_TT0 ?action=edit&text=%3D%3D+My+new+catalog+%3D%3D32 <yourserver/yourproject>/wiki/TC_TT0 32 33 }}} 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.38 34 39 35 [[BR]] … … 45 41 }}} 46 42 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: 43 this 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. 44 You may discard the response if you don't need to know the catalog ID (last number in the URL): 48 45 49 46 {{{ 50 <yourserver/yourproject>/wiki/TC_TT0_TT1 ?action=edit&text=%3D%3D+My+sub+catalog+%3D%3D47 <yourserver/yourproject>/wiki/TC_TT0_TT1 51 48 }}} 52 53 then you can simply post the form to submit the page and thus create the sub-catalog.54 49 55 50 [[BR]] 56 51 === Create a Test Case === 57 Get the wollowing URL, where "path" is the name of the parent (sub-)catalog.52 Get the following URL, where "path" is the name of the parent (sub-)catalog. 58 53 59 54 {{{ … … 61 56 }}} 62 57 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: 58 this 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. 59 You may discard the response if you don't need to know the test case ID (last number in the URL): 64 60 {{{ 65 <yourserver/yourproject>/wiki/TC_TT0_TT1_TC0 ?action=edit&text=%3D%3D+My+new+Test+Case+%3D%3D61 <yourserver/yourproject>/wiki/TC_TT0_TT1_TC0 66 62 }}} 67 68 then you can simply post the form to submit the page and thus create the test case.69 63 70 64 [[BR]][[BR]] … … 82 76 83 77 this will assign a unique ID (the number 1 in the URL below) to the new test plan and redirect to displaying the Test Plan: 78 You may discard the response if you don't need to know the plan ID (planid parameter in the URL): 84 79 {{{ 85 80 <yourserver/yourproject>/wiki/TC_TT0?planid=1 86 81 }}} 87 82 88 The Test Plan will contain all of the test cases in the specified catalog, with a verdict of "Untested". 83 The Test Plan will contain all of the test cases in the specified catalog, with a status of "Untested". 84 85 '''Note:''' 86 As 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. 87 The 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. 89 88 90 89 [[BR]][[BR]]