Get launch report
Gets report for the selected test session
- Parameters
- Advanced call ?
Function GetLaunchReport(Val URL, Val Token, Val Project, Val LaunchID, Val Format = "pdf") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| URL | --url | String | ✔ | ReportPortal server URL |
| Token | --token | String | ✔ | Access token |
| Project | --proj | String | ✔ | Project ID |
| LaunchID | --id | Number | ✔ | Launch ID |
| Format | --format | String | ✖ | Report format: pdf, xls, html |
Returns
BinaryData - report file
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
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");
- Bash
- CMD/Bat
oint rportal GetLaunchReport \
--url "tests.openintegrations.dev" \
--token "***" \
--proj "Test" \
--id 669 \
--format "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%\"> </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\">..."