MCPcopy Create free account
hub / github.com/UiPath/uipathcli / createTestSetRequest

Method createTestSetRequest

utils/api/orchestrator_client.go:316–332  ·  view source on GitHub ↗
(folderId int, releaseId int, processVersion string)

Source from the content-addressed store, hash-verified

314}
315
316func (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
334func (c OrchestratorClient) ExecuteTestSet(folderId int, testSetId int) (int, error) {
335 request := c.createExecuteTestSetRequest(folderId, testSetId)

Callers 1

CreateTestSetMethod · 0.95

Calls 4

newUriBuilderMethod · 0.95
toAuthorizationMethod · 0.95
NewHttpPostRequestFunction · 0.92
BuildMethod · 0.45

Tested by

no test coverage detected