Skip to main content

Get launch report

Gets report for the selected test session

Function GetLaunchReport(Val URL, Val Token, Val Project, Val LaunchID, Val Format = "pdf") Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringReportPortal server URL
Token--tokenStringAccess token
Project--projStringProject ID
LaunchID--idNumberLaunch ID
Format--formatStringReport format: pdf, xls, html
Returns

BinaryData - report file

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";

Result = OPI_ReportPortal.GetLaunchReport(URL, Token, Project, LaunchID, "html");
oint rportal GetLaunchReport \
--url "tests.openintegrations.dev" \
--token "***" \
--proj "Test" \
--id 669 \
--format "html"
Result
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html>\n<head>\n <title></title>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n <style type=\"text/css\">\n a {text-decoration: none}\n </style>\n</head>\n<body text=\"#000000\" link=\"#000000\" alink=\"#000000\" vlink=\"#000000\">\n<table role=\"none\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n<tr><td width=\"50%\">&nbsp;</td><td align=\"center\">\n\n<table id=\"JR_PAGE_ANCHOR_0_1\" role=\"none\" class=\"jrPage\" data-jr-height=\"533\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"empty-cells: show; width: 842px; border-collapse: collapse;\">\n<style type=\"text/css\">\n #JR_PAGE_ANCHOR_0_1 th {font-weight: normal;}\n #JR_PAGE_ANCHOR_0_1 ul {list-style-type: disc; padding-inline-start: 40px; margin: 0px;}\n #JR_PAGE_ANCHOR_0_1 ol {list-style-type: decimal; padding-inline-start: 40px; margin: 0px;}\n</style>\n<tr role=\"none\" valign=\"top\" style=\"height:0\">..."