complexqa_frontend_core 1.0.12 → 1.0.13
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 +1 -1
- package/publish/api/index.js +9 -7
- package/publish/types/family_elements/typeProject.js +6 -2
- package/publish/types/family_elements/typeTestCase.js +7 -3
- package/publish/types/family_elements/typeTestCaseStep.js +3 -0
- package/publish/types/family_elements/typeTestSuite.js +6 -2
package/package.json
CHANGED
package/publish/api/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import { ProjectApi } from "./project_api";
|
|
|
3
3
|
import { ServiceApi } from "./service_api";
|
|
4
4
|
import { TestCaseApi } from "./test_case_api";
|
|
5
5
|
import { TestSuiteApi } from "./test_suite_api";
|
|
6
|
+
import { TestCaseStepApi } from "./test_case_step_api.js";
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Обертка над axios
|
|
@@ -91,7 +92,7 @@ export class Api
|
|
|
91
92
|
|
|
92
93
|
/**
|
|
93
94
|
*
|
|
94
|
-
* @version v.0.
|
|
95
|
+
* @version v.0.2 (06/07/2025)
|
|
95
96
|
*/
|
|
96
97
|
#bootstrap()
|
|
97
98
|
{
|
|
@@ -99,16 +100,17 @@ export class Api
|
|
|
99
100
|
init_options : this.init_options,
|
|
100
101
|
stage : this.stage,
|
|
101
102
|
dev_stage_config: this.dev_stage_config,
|
|
102
|
-
host_api: this.host_api,
|
|
103
|
+
host_api : this.host_api,
|
|
103
104
|
parent_app : this
|
|
104
105
|
};
|
|
105
106
|
|
|
106
107
|
//echo({payload});
|
|
107
108
|
|
|
108
|
-
this.test_plan
|
|
109
|
-
this.project
|
|
110
|
-
this.service
|
|
111
|
-
this.test_case
|
|
112
|
-
this.
|
|
109
|
+
this.test_plan = new TestPlanApi(payload);
|
|
110
|
+
this.project = new ProjectApi(payload);
|
|
111
|
+
this.service = new ServiceApi(payload);
|
|
112
|
+
this.test_case = new TestCaseApi(payload);
|
|
113
|
+
this.test_case_step = new TestCaseStepApi(payload);
|
|
114
|
+
this.test_suite = new TestSuiteApi(payload);
|
|
113
115
|
}
|
|
114
116
|
}
|
|
@@ -25,10 +25,14 @@ export class typeProject extends familyGeneralElement
|
|
|
25
25
|
project_name : 'string | require',
|
|
26
26
|
project_description : 'string | optional',
|
|
27
27
|
project_status : 'string | enum | require',
|
|
28
|
-
|
|
29
|
-
reference_document_ids: 'array | reference | optional',
|
|
28
|
+
team_id : 'integer | require',
|
|
29
|
+
//reference_document_ids: 'array | reference | optional',
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
+
create_scheme = [
|
|
33
|
+
'project_name'
|
|
34
|
+
];
|
|
35
|
+
|
|
32
36
|
available_enum_values = {
|
|
33
37
|
project_status: [ 'OPEN', 'CLOSED', 'PLANNED' ]
|
|
34
38
|
};
|
|
@@ -36,12 +36,12 @@ export class typeTestCase extends familyGeneralElement
|
|
|
36
36
|
// @todo - довнести
|
|
37
37
|
structure_scheme = {
|
|
38
38
|
test_case_id : 'integer | require',
|
|
39
|
-
test_suite_id : 'integer |
|
|
39
|
+
test_suite_id : 'integer | optional',
|
|
40
40
|
project_id : 'integer | require',
|
|
41
41
|
team_id : 'integer | require',
|
|
42
42
|
functional_id : 'integer | optional',
|
|
43
|
-
test_case_title : 'string |
|
|
44
|
-
test_case_descriptions : 'string |
|
|
43
|
+
test_case_title : 'string | optional',
|
|
44
|
+
test_case_descriptions : 'string | optional',
|
|
45
45
|
test_case_time_to_execute: 'integer | optional',
|
|
46
46
|
test_case_complexity : 'string | enum | optional',
|
|
47
47
|
test_case_importance : 'string | enum | optional',
|
|
@@ -49,6 +49,10 @@ export class typeTestCase extends familyGeneralElement
|
|
|
49
49
|
updated_at : 'timestamp | optional',
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
+
create_scheme = [
|
|
53
|
+
'project_id'
|
|
54
|
+
];
|
|
55
|
+
|
|
52
56
|
available_enum_values = {
|
|
53
57
|
test_case_complexity: [ 'LOW', 'NORMAL', 'HIGH' ],
|
|
54
58
|
test_case_importance: [ 'LOW', 'NORMAL', 'HIGH' ],
|
|
@@ -24,13 +24,17 @@ export class typeTestSuite extends familyGeneralElement
|
|
|
24
24
|
test_suite_id: 'integer | require',
|
|
25
25
|
project_id : 'integer | require',
|
|
26
26
|
//functional_id : 'integer | optional',
|
|
27
|
-
test_suite_name : 'string |
|
|
28
|
-
test_suite_description: 'string |
|
|
27
|
+
test_suite_name : 'string | optional',
|
|
28
|
+
test_suite_description: 'string | optional',
|
|
29
29
|
team_id : 'integer | require',
|
|
30
30
|
created_at : 'timestamp | require',
|
|
31
31
|
updated_at : 'timestamp | optional',
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
+
create_scheme = [
|
|
35
|
+
'project_id'
|
|
36
|
+
];
|
|
37
|
+
|
|
34
38
|
|
|
35
39
|
/**
|
|
36
40
|
*
|