Skip to main content

Create project

Creates a new project with the specified name

Function CreateProject(Val URL, Val Token, Val Name) Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringReportPortal server URL
Token--tokenStringAccess token
Name--nameStringProject name
Returns

Map Of KeyAndValue - serialized JSON response from ReportPortal

1C:Enterprise/OneScript code example
URL = "tests.openintegrations.dev";
Token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX25hbWUiOiJzdXBlcmFkbWluIiwic2NvcGVzIjpbInVpIl0sImV4cCI6MTc2MjAwMDI3NiwiaWF0IjoxNzYxOTEzODc2LCJqdGkiOiI0NTI3YTc5OS0wN2...";
Name = "testproject";

Result = OPI_ReportPortal.CreateProject(URL, Token, Name);
oint rportal CreateProject \
--url "tests.openintegrations.dev" \
--token "***" \
--name "testproject"
Result
{
"id": 154
}