(folderId int, releaseId int, processVersion string)
| 314 | } |
| 315 | |
| 316 | func (c OrchestratorClient) createTestSetRequest(folderId int, releaseId int, processVersion string) (*network.HttpRequest, error) { |
| 317 | json, err := json.Marshal(createTestSetRequestJson{ |
| 318 | ReleaseId: releaseId, |
| 319 | VersionNumber: processVersion, |
| 320 | }) |
| 321 | if err != nil { |
| 322 | return nil, err |
| 323 | } |
| 324 | |
| 325 | uri := c.newUriBuilder("/api/TestAutomation/CreateTestSetForReleaseVersion"). |
| 326 | Build() |
| 327 | header := http.Header{ |
| 328 | "Content-Type": {"application/json"}, |
| 329 | "X-Uipath-Organizationunitid": {strconv.Itoa(folderId)}, |
| 330 | } |
| 331 | return network.NewHttpPostRequest(uri, c.toAuthorization(c.token), header, bytes.NewBuffer(json), -1), nil |
| 332 | } |
| 333 | |
| 334 | func (c OrchestratorClient) ExecuteTestSet(folderId int, testSetId int) (int, error) { |
| 335 | request := c.createExecuteTestSetRequest(folderId, testSetId) |
no test coverage detected