complexqa_frontend_core 1.7.5 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -435,6 +435,10 @@ export class ApiAbstractElementClass
|
|
|
435
435
|
{
|
|
436
436
|
return api_response?.data?.api_result;
|
|
437
437
|
}
|
|
438
|
+
else if (api_response?.data?.api_result === false)
|
|
439
|
+
{
|
|
440
|
+
return api_response?.data?.api_result;
|
|
441
|
+
}
|
|
438
442
|
else
|
|
439
443
|
{
|
|
440
444
|
return api_response?.data;
|
package/publish/api/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import { TestCaseStepApi } from "./test_case_step_api.js";
|
|
|
7
7
|
import { TeamManagementApi } from "./team_management_api.js";
|
|
8
8
|
import { TeamMemberApi } from "./team_member_api.js";
|
|
9
9
|
import { TestRunApi } from "./test_run_api.js";
|
|
10
|
+
import { TestRunResultApi } from "./test_run_result_api.js";
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* Обертка над axios
|
|
@@ -35,8 +36,8 @@ export class Api
|
|
|
35
36
|
project;
|
|
36
37
|
service;
|
|
37
38
|
|
|
38
|
-
host_api
|
|
39
|
-
frontend_host
|
|
39
|
+
host_api = false;
|
|
40
|
+
frontend_host = false;
|
|
40
41
|
general_domain = false;
|
|
41
42
|
|
|
42
43
|
|
|
@@ -130,5 +131,6 @@ export class Api
|
|
|
130
131
|
this.test_case_step = new TestCaseStepApi(payload);
|
|
131
132
|
this.test_suite = new TestSuiteApi(payload);
|
|
132
133
|
this.test_run = new TestRunApi(payload);
|
|
134
|
+
this.test_run_result = new TestRunResultApi(payload);
|
|
133
135
|
}
|
|
134
136
|
}
|
|
@@ -246,7 +246,7 @@ export class familyGeneralElement
|
|
|
246
246
|
{
|
|
247
247
|
if (!this.api_key)
|
|
248
248
|
{
|
|
249
|
-
throw new Error('element has
|
|
249
|
+
throw new Error('Error #249-2215 - element has no api_key');
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
if (typeof callback?.before === 'function')
|
|
@@ -292,7 +292,7 @@ export class familyGeneralElement
|
|
|
292
292
|
{
|
|
293
293
|
if (!this.api_key)
|
|
294
294
|
{
|
|
295
|
-
throw new Error('element has
|
|
295
|
+
throw new Error('Error #259-2215 - element has no api_key');
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
if (typeof callback?.before === 'function')
|
|
@@ -342,7 +342,7 @@ export class familyGeneralElement
|
|
|
342
342
|
{
|
|
343
343
|
if (!this.api_key)
|
|
344
344
|
{
|
|
345
|
-
throw new Error('element has
|
|
345
|
+
throw new Error('Error #345-2215 - element has no api_key');
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
let payload = {
|
|
@@ -401,7 +401,7 @@ export class familyGeneralElement
|
|
|
401
401
|
{
|
|
402
402
|
if (!this.api_key)
|
|
403
403
|
{
|
|
404
|
-
throw new Error('element has
|
|
404
|
+
throw new Error('Error #404-2215 - element has no api_key');
|
|
405
405
|
}
|
|
406
406
|
|
|
407
407
|
if (!element)
|
|
@@ -460,7 +460,7 @@ export class familyGeneralElement
|
|
|
460
460
|
{
|
|
461
461
|
if (!this.api_key)
|
|
462
462
|
{
|
|
463
|
-
throw new Error('element has
|
|
463
|
+
throw new Error('Error #463-2215 - element has no api_key');
|
|
464
464
|
}
|
|
465
465
|
|
|
466
466
|
if (!element)
|
|
@@ -29,6 +29,7 @@ export class typeTestRunResult extends familyTestDocumentation
|
|
|
29
29
|
// тут нужен ещё контекст выполнения (банально список браузеров)
|
|
30
30
|
|
|
31
31
|
primary_key = 'test_run_result_id';
|
|
32
|
+
api_key = 'test_run_result';
|
|
32
33
|
|
|
33
34
|
structure_scheme = {
|
|
34
35
|
test_result_id : 'integer | require',
|