Tank V2 API - Added Test Plans/Script Group support to project creation and update #257
+515
−21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tank V2 API - Added Test Plans/Script Group support to project creation and update
Tank V2 API POST
/v2/projects
and PUT/v2/projects/{projectId}
now supports creating and updating test plans, and script groups, and adding scripts to projects in any order. Multiple Test Plans and Script Groups can be created or updated, with the order determined by the entry order they appear in the payload. Existing scripts can also be added to Script Groups. This new project data is also returned viaGET
requests to/v2/projects
and/v2/projects/{projectId}
.POST
/v2/projects
testPlan
list is empty or excluded from the payload, the new project is given a default emptyMain
test plan with 100% User PercentagePUT
/v2/projects/{projectId}
testPlan
list is empty, the existing test plan is left alone, but any valid entry into thetestPlan
array while updating will overwrite the existing test plan for the projectParameters:
- Set Name
- Set User Percentage
- Set Script Groups
- Set Name
- Set Loop Count
- Set Scripts
- Set Script ID
- Set Loop Count
Sample Payload for
POST
/PUT
:Sample Response from
GET
:Note: Responses from
GET
also return relative positions for each Test Plans, Script Groups, and Scripts, while also returning script names for each script.Validated for the following use cases:
Please make sure these check boxes are checked before submitting
mvn clean test -P default
** PR review process **