See all operations
POST: projects/{project_id}/test-set-folders
Description
Creates a new test set folder in the system
How to Execute
To access this REST web service, you need to use the following URL (make sure to replace any parameters (eg {project_id}) with the relevant value (eg 1):
https://api.inflectra.com/Spira/Services/v6_0/RestService.svc/projects/{project_id}/test-set-folders
Request Parameters
Name
|
Description
|
project_id
|
The id of the current project
|
Request Body
Property
|
Description
|
TestSetFolderId
|
The id of the test set folder
|
ProjectId
|
The id of the project this folder belongs to
|
Name
|
The name of the test set folder
|
Description
|
The description of the test set folder
|
CreationDate
|
The date the test set folder was created
|
LastUpdateDate
|
The date the test set folder was last updated
|
ProjectName
|
The display name of the project that the test set folder belongs to
|
ParentTestSetFolderId
|
The ID of the parent folder of this folder (if any)
|
ActualDuration
|
The actual duration of all the tests in the folder
|
CountBlocked
|
The count of blocked test sets in the folder
|
CountCaution
|
The count of blocked test sets in the folder
|
CountFailed
|
The count of blocked test sets in the folder
|
CountNotApplicable
|
The count of blocked test sets in the folder
|
CountNotRun
|
The count of blocked test sets in the folder
|
CountPassed
|
The count of blocked test sets in the folder
|
<RemoteTestSetFolder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v6_0.DataObjects">
<ActualDuration i:nil="true" />
<CountBlocked>0</CountBlocked>
<CountCaution>0</CountCaution>
<CountFailed>0</CountFailed>
<CountNotApplicable>0</CountNotApplicable>
<CountNotRun>0</CountNotRun>
<CountPassed>0</CountPassed>
<CreationDate>0001-01-01T00:00:00</CreationDate>
<Description i:nil="true" />
<EstimatedDuration i:nil="true" />
<ExecutionDate i:nil="true" />
<IndentLevel i:nil="true" />
<LastUpdateDate>0001-01-01T00:00:00</LastUpdateDate>
<Name i:nil="true" />
<ParentTestSetFolderId i:nil="true" />
<ProjectId>0</ProjectId>
<ProjectName i:nil="true" />
<TestSetFolderId i:nil="true" />
</RemoteTestSetFolder>
{"TestSetFolderId":null,
"ProjectId":0,
"IndentLevel":null,
"Name":null,
"Description":null,
"CreationDate":"0001-01-01T00:00:00",
"LastUpdateDate":"0001-01-01T00:00:00",
"ExecutionDate":null,
"EstimatedDuration":null,
"ProjectName":null,
"ParentTestSetFolderId":null,
"ActualDuration":null,
"CountBlocked":0,
"CountCaution":0,
"CountFailed":0,
"CountNotApplicable":0,
"CountNotRun":0,
"CountPassed":0}
Return Data
The JSON and XML examples below show the shape of one entry that will be returned. It does not show an example of how that entry will be populated.
Property
|
Description
|
TestSetFolderId
|
The id of the test set folder
|
ProjectId
|
The id of the project this folder belongs to
|
IndentLevel
|
The indentation level of the folder
The system uses a set of three-letter segments to denote indent (e.g. AAA followed by AAB, etc.)
|
Name
|
The name of the test set folder
|
Description
|
The description of the test set folder
|
CreationDate
|
The date the test set folder was created
|
LastUpdateDate
|
The date the test set folder was last updated
|
ExecutionDate
|
The date the test sets in the folder were last executed
|
EstimatedDuration
|
The estimated time to execute the test set
|
ProjectName
|
The display name of the project that the test set folder belongs to
|
ParentTestSetFolderId
|
The ID of the parent folder of this folder (if any)
|
ActualDuration
|
The actual duration of all the tests in the folder
|
CountBlocked
|
The count of blocked test sets in the folder
|
CountCaution
|
The count of blocked test sets in the folder
|
CountFailed
|
The count of blocked test sets in the folder
|
CountNotApplicable
|
The count of blocked test sets in the folder
|
CountNotRun
|
The count of blocked test sets in the folder
|
CountPassed
|
The count of blocked test sets in the folder
|
<RemoteTestSetFolder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v6_0.DataObjects">
<ActualDuration i:nil="true" />
<CountBlocked>0</CountBlocked>
<CountCaution>0</CountCaution>
<CountFailed>0</CountFailed>
<CountNotApplicable>0</CountNotApplicable>
<CountNotRun>0</CountNotRun>
<CountPassed>0</CountPassed>
<CreationDate>0001-01-01T00:00:00</CreationDate>
<Description i:nil="true" />
<EstimatedDuration i:nil="true" />
<ExecutionDate i:nil="true" />
<IndentLevel i:nil="true" />
<LastUpdateDate>0001-01-01T00:00:00</LastUpdateDate>
<Name i:nil="true" />
<ParentTestSetFolderId i:nil="true" />
<ProjectId>0</ProjectId>
<ProjectName i:nil="true" />
<TestSetFolderId i:nil="true" />
</RemoteTestSetFolder>
{"TestSetFolderId":null,
"ProjectId":0,
"IndentLevel":null,
"Name":null,
"Description":null,
"CreationDate":"0001-01-01T00:00:00",
"LastUpdateDate":"0001-01-01T00:00:00",
"ExecutionDate":null,
"EstimatedDuration":null,
"ProjectName":null,
"ParentTestSetFolderId":null,
"ActualDuration":null,
"CountBlocked":0,
"CountCaution":0,
"CountFailed":0,
"CountNotApplicable":0,
"CountNotRun":0,
"CountPassed":0}