Skip to main content

Update launch

Updates data of a test session launch

Function UpdateLaunch(Val URL, Val Token, Val Project, Val LaunchID, Val LaunchStructure) Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringReportPortal server URL
Token--tokenStringAccess token
Project--projStringProject ID
LaunchID--idNumberLaunch ID
LaunchStructure--paramsStructure Of KeyAndValueLaunch parameters. See GetLaunchStructure
Returns

Map Of KeyAndValue - serialized JSON response from ReportPortal

tip

Numeric launch ID can be obtained by UUID using the GetLaunch function


1C:Enterprise/OneScript code example
URL = "tests.openintegrations.dev";
Token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX25hbWUiOiJzdXBlcmFkbWluIiwic2NvcGVzIjpbInVpIl0sImV4cCI6MTc2MjAwMDI3NiwiaWF0IjoxNzYxOTEzODc2LCJqdGkiOiI0NTI3YTc5OS0wN2...";
LaunchID = "";
Project = "Test";

LaunchStructure = New Structure;
LaunchStructure.Insert("description", "New description");

Result = OPI_ReportPortal.UpdateLaunch(URL, Token, Project, LaunchID, LaunchStructure);
# JSON data can also be passed as a path to a .json file

oint rportal UpdateLaunch \
--url "tests.openintegrations.dev" \
--token "***" \
--proj "Test" \
--id 237 \
--params "{'description':'New description'}"
Result
{
"message": "Launch with ID = '237' successfully updated."
}