complexqa_frontend_core 1.27.3 → 1.29.1

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.
@@ -1,179 +1,179 @@
1
- /**
2
- * Переводы для typeTestCaseStep.
3
- *
4
- * @see typeTestCaseStep
5
- */
6
- export const typeTestCaseStep_i18n = {
7
- attribute_name_translate_matrix: {
8
- en: {
9
- test_case_step_id : 'ID',
10
- test_case_step_type : 'Step type',
11
- team_id : 'Team',
12
- test_case_id : 'Test case',
13
- sort_order : 'Sort order',
14
- step_text : 'Text',
15
- step_element : 'Element',
16
- step_element_action : 'Element action',
17
- step_excepted_result: 'Excepted result',
18
- },
19
- ru: {
20
- test_case_step_id : 'ID',
21
- test_case_step_type : 'Тип',
22
- team_id : 'Команда',
23
- test_case_id : 'Тест кейс',
24
- sort_order : 'Порядковый номер',
25
- step_text : 'Текст',
26
- step_element : 'Элемент',
27
- step_element_action : 'Действие',
28
- step_excepted_result: 'Ожидаемый результат',
29
- },
30
- de: {
31
- test_case_step_id : 'ID',
32
- test_case_step_type : 'Schritttyp',
33
- team_id : 'Team',
34
- test_case_id : 'Testfall',
35
- sort_order : 'Reihenfolge',
36
- step_text : 'Text',
37
- step_element : 'Element',
38
- step_element_action : 'Elementaktion',
39
- step_excepted_result: 'Erwartetes Ergebnis',
40
- },
41
- ar: {
42
- test_case_step_id : 'ID',
43
- test_case_step_type : 'نوع الخطوة',
44
- team_id : 'الفريق',
45
- test_case_id : 'حالة الاختبار',
46
- sort_order : 'ترتيب الفرز',
47
- step_text : 'النص',
48
- step_element : 'العنصر',
49
- step_element_action : 'إجراء العنصر',
50
- step_excepted_result: 'النتيجة المتوقعة',
51
- },
52
- es: {
53
- test_case_step_id : 'ID',
54
- test_case_step_type : 'Tipo de paso',
55
- team_id : 'Equipo',
56
- test_case_id : 'Caso de prueba',
57
- sort_order : 'Orden',
58
- step_text : 'Texto',
59
- step_element : 'Elemento',
60
- step_element_action : 'Acción del elemento',
61
- step_excepted_result: 'Resultado esperado',
62
- },
63
- fr: {
64
- test_case_step_id : 'ID',
65
- test_case_step_type : 'Type d\'étape',
66
- team_id : 'Équipe',
67
- test_case_id : 'Cas de test',
68
- sort_order : 'Ordre',
69
- step_text : 'Texte',
70
- step_element : 'Élément',
71
- step_element_action : 'Action sur l\'élément',
72
- step_excepted_result: 'Résultat attendu',
73
- },
74
- hy: {
75
- test_case_step_id : 'ID',
76
- test_case_step_type : 'Քայլի տեսակ',
77
- team_id : 'Թիմ',
78
- test_case_id : 'Թեստային դեպք',
79
- sort_order : 'Կարգ',
80
- step_text : 'Տեքստ',
81
- step_element : 'Էլեմենտ',
82
- step_element_action : 'Գործողություն',
83
- step_excepted_result: 'Սպասվող արդյունք',
84
- },
85
- it: {
86
- test_case_step_id : 'ID',
87
- test_case_step_type : 'Tipo di passo',
88
- team_id : 'Team',
89
- test_case_id : 'Caso di test',
90
- sort_order : 'Ordine',
91
- step_text : 'Testo',
92
- step_element : 'Elemento',
93
- step_element_action : 'Azione sull\'elemento',
94
- step_excepted_result: 'Risultato atteso',
95
- },
96
- pl: {
97
- test_case_step_id : 'ID',
98
- test_case_step_type : 'Typ kroku',
99
- team_id : 'Zespół',
100
- test_case_id : 'Przypadek testowy',
101
- sort_order : 'Kolejność',
102
- step_text : 'Tekst',
103
- step_element : 'Element',
104
- step_element_action : 'Akcja elementu',
105
- step_excepted_result: 'Oczekiwany wynik',
106
- },
107
- pt: {
108
- test_case_step_id : 'ID',
109
- test_case_step_type : 'Tipo de passo',
110
- team_id : 'Equipa',
111
- test_case_id : 'Caso de teste',
112
- sort_order : 'Ordem',
113
- step_text : 'Texto',
114
- step_element : 'Elemento',
115
- step_element_action : 'Ação do elemento',
116
- step_excepted_result: 'Resultado esperado',
117
- },
118
- tt: {
119
- test_case_step_id : 'ID',
120
- test_case_step_type : 'Адым тибы',
121
- team_id : 'Команд',
122
- test_case_id : 'Тест очрагы',
123
- sort_order : 'Тәртип',
124
- step_text : 'Текст',
125
- step_element : 'Элемент',
126
- step_element_action : 'Элемент гамәлесе',
127
- step_excepted_result: 'Көтелгән нәтиҗә',
128
- },
129
- },
130
-
131
- enum_value_translate_matrix: {
132
- test_case_step_type: {
133
- en: {
134
- TEST_CASE_STEP : 'Step',
135
- TEST_CASE_PRESTEP: 'Prestep',
136
- },
137
- ru: {
138
- TEST_CASE_STEP : 'Шаг теста',
139
- TEST_CASE_PRESTEP: 'Предварительный шаг',
140
- },
141
- de: {
142
- TEST_CASE_STEP : 'Testschritt',
143
- TEST_CASE_PRESTEP: 'Vorbereitungsschritt',
144
- },
145
- ar: {
146
- TEST_CASE_STEP : 'خطوة الاختبار',
147
- TEST_CASE_PRESTEP: 'خطوة تمهيدية',
148
- },
149
- es: {
150
- TEST_CASE_STEP : 'Paso de prueba',
151
- TEST_CASE_PRESTEP: 'Prepaso',
152
- },
153
- fr: {
154
- TEST_CASE_STEP : 'Étape de test',
155
- TEST_CASE_PRESTEP: 'Pré-étape',
156
- },
157
- hy: {
158
- TEST_CASE_STEP : 'Թեստային քայլ',
159
- TEST_CASE_PRESTEP: 'Նախապատրաստական քայլ',
160
- },
161
- it: {
162
- TEST_CASE_STEP : 'Passo di test',
163
- TEST_CASE_PRESTEP: 'Pre-passo',
164
- },
165
- pl: {
166
- TEST_CASE_STEP : 'Krok testu',
167
- TEST_CASE_PRESTEP: 'Krok wstępny',
168
- },
169
- pt: {
170
- TEST_CASE_STEP : 'Passo de teste',
171
- TEST_CASE_PRESTEP: 'Pré-passo',
172
- },
173
- tt: {
174
- TEST_CASE_STEP : 'Тест адымы',
175
- TEST_CASE_PRESTEP: 'Алдангы адым',
176
- },
177
- },
178
- },
179
- };
1
+ /**
2
+ * Переводы для typeTestCaseStep.
3
+ *
4
+ * @see typeTestCaseStep
5
+ */
6
+ export const typeTestCaseStep_i18n = {
7
+ attribute_name_translate_matrix: {
8
+ en: {
9
+ test_case_step_id : 'ID',
10
+ test_case_step_type : 'Step type',
11
+ team_id : 'Team',
12
+ test_case_id : 'Test case',
13
+ sort_order : 'Sort order',
14
+ step_text : 'Text',
15
+ step_element : 'Element',
16
+ step_element_action : 'Element action',
17
+ step_expected_result: 'Expected result',
18
+ },
19
+ ru: {
20
+ test_case_step_id : 'ID',
21
+ test_case_step_type : 'Тип',
22
+ team_id : 'Команда',
23
+ test_case_id : 'Тест кейс',
24
+ sort_order : 'Порядковый номер',
25
+ step_text : 'Текст',
26
+ step_element : 'Элемент',
27
+ step_element_action : 'Действие',
28
+ step_expected_result: 'Ожидаемый результат',
29
+ },
30
+ de: {
31
+ test_case_step_id : 'ID',
32
+ test_case_step_type : 'Schritttyp',
33
+ team_id : 'Team',
34
+ test_case_id : 'Testfall',
35
+ sort_order : 'Reihenfolge',
36
+ step_text : 'Text',
37
+ step_element : 'Element',
38
+ step_element_action : 'Elementaktion',
39
+ step_expected_result: 'Erwartetes Ergebnis',
40
+ },
41
+ ar: {
42
+ test_case_step_id : 'ID',
43
+ test_case_step_type : 'نوع الخطوة',
44
+ team_id : 'الفريق',
45
+ test_case_id : 'حالة الاختبار',
46
+ sort_order : 'ترتيب الفرز',
47
+ step_text : 'النص',
48
+ step_element : 'العنصر',
49
+ step_element_action : 'إجراء العنصر',
50
+ step_expected_result: 'النتيجة المتوقعة',
51
+ },
52
+ es: {
53
+ test_case_step_id : 'ID',
54
+ test_case_step_type : 'Tipo de paso',
55
+ team_id : 'Equipo',
56
+ test_case_id : 'Caso de prueba',
57
+ sort_order : 'Orden',
58
+ step_text : 'Texto',
59
+ step_element : 'Elemento',
60
+ step_element_action : 'Acción del elemento',
61
+ step_expected_result: 'Resultado esperado',
62
+ },
63
+ fr: {
64
+ test_case_step_id : 'ID',
65
+ test_case_step_type : 'Type d\'étape',
66
+ team_id : 'Équipe',
67
+ test_case_id : 'Cas de test',
68
+ sort_order : 'Ordre',
69
+ step_text : 'Texte',
70
+ step_element : 'Élément',
71
+ step_element_action : 'Action sur l\'élément',
72
+ step_expected_result: 'Résultat attendu',
73
+ },
74
+ hy: {
75
+ test_case_step_id : 'ID',
76
+ test_case_step_type : 'Քայլի տեսակ',
77
+ team_id : 'Թիմ',
78
+ test_case_id : 'Թեստային դեպք',
79
+ sort_order : 'Կարգ',
80
+ step_text : 'Տեքստ',
81
+ step_element : 'Էլեմենտ',
82
+ step_element_action : 'Գործողություն',
83
+ step_expected_result: 'Սպասվող արդյունք',
84
+ },
85
+ it: {
86
+ test_case_step_id : 'ID',
87
+ test_case_step_type : 'Tipo di passo',
88
+ team_id : 'Team',
89
+ test_case_id : 'Caso di test',
90
+ sort_order : 'Ordine',
91
+ step_text : 'Testo',
92
+ step_element : 'Elemento',
93
+ step_element_action : 'Azione sull\'elemento',
94
+ step_expected_result: 'Risultato atteso',
95
+ },
96
+ pl: {
97
+ test_case_step_id : 'ID',
98
+ test_case_step_type : 'Typ kroku',
99
+ team_id : 'Zespół',
100
+ test_case_id : 'Przypadek testowy',
101
+ sort_order : 'Kolejność',
102
+ step_text : 'Tekst',
103
+ step_element : 'Element',
104
+ step_element_action : 'Akcja elementu',
105
+ step_expected_result: 'Oczekiwany wynik',
106
+ },
107
+ pt: {
108
+ test_case_step_id : 'ID',
109
+ test_case_step_type : 'Tipo de passo',
110
+ team_id : 'Equipa',
111
+ test_case_id : 'Caso de teste',
112
+ sort_order : 'Ordem',
113
+ step_text : 'Texto',
114
+ step_element : 'Elemento',
115
+ step_element_action : 'Ação do elemento',
116
+ step_expected_result: 'Resultado esperado',
117
+ },
118
+ tt: {
119
+ test_case_step_id : 'ID',
120
+ test_case_step_type : 'Адым тибы',
121
+ team_id : 'Команд',
122
+ test_case_id : 'Тест очрагы',
123
+ sort_order : 'Тәртип',
124
+ step_text : 'Текст',
125
+ step_element : 'Элемент',
126
+ step_element_action : 'Элемент гамәлесе',
127
+ step_expected_result: 'Көтелгән нәтиҗә',
128
+ },
129
+ },
130
+
131
+ enum_value_translate_matrix: {
132
+ test_case_step_type: {
133
+ en: {
134
+ TEST_CASE_STEP : 'Step',
135
+ TEST_CASE_PRESTEP: 'Prestep',
136
+ },
137
+ ru: {
138
+ TEST_CASE_STEP : 'Шаг теста',
139
+ TEST_CASE_PRESTEP: 'Предварительный шаг',
140
+ },
141
+ de: {
142
+ TEST_CASE_STEP : 'Testschritt',
143
+ TEST_CASE_PRESTEP: 'Vorbereitungsschritt',
144
+ },
145
+ ar: {
146
+ TEST_CASE_STEP : 'خطوة الاختبار',
147
+ TEST_CASE_PRESTEP: 'خطوة تمهيدية',
148
+ },
149
+ es: {
150
+ TEST_CASE_STEP : 'Paso de prueba',
151
+ TEST_CASE_PRESTEP: 'Prepaso',
152
+ },
153
+ fr: {
154
+ TEST_CASE_STEP : 'Étape de test',
155
+ TEST_CASE_PRESTEP: 'Pré-étape',
156
+ },
157
+ hy: {
158
+ TEST_CASE_STEP : 'Թեստային քայլ',
159
+ TEST_CASE_PRESTEP: 'Նախապատրաստական քայլ',
160
+ },
161
+ it: {
162
+ TEST_CASE_STEP : 'Passo di test',
163
+ TEST_CASE_PRESTEP: 'Pre-passo',
164
+ },
165
+ pl: {
166
+ TEST_CASE_STEP : 'Krok testu',
167
+ TEST_CASE_PRESTEP: 'Krok wstępny',
168
+ },
169
+ pt: {
170
+ TEST_CASE_STEP : 'Passo de teste',
171
+ TEST_CASE_PRESTEP: 'Pré-passo',
172
+ },
173
+ tt: {
174
+ TEST_CASE_STEP : 'Тест адымы',
175
+ TEST_CASE_PRESTEP: 'Алдангы адым',
176
+ },
177
+ },
178
+ },
179
+ };
@@ -29,6 +29,18 @@ export const typeUtilExecutionUrlInspect_i18n = {
29
29
  completed_at : 'Завершён',
30
30
  error_message : 'Ошибка',
31
31
  },
32
+ tt: {
33
+ util_execution_id: 'Йөгертү',
34
+ project_id : 'Проект',
35
+ team_domain_id : 'Команда домены',
36
+ domain_canon : 'Хост',
37
+ page_path : 'Юл',
38
+ suite_status : 'Җыелма статусы',
39
+ execution_status : 'Башкару статусы',
40
+ created_at : 'Ясалган',
41
+ completed_at : 'Тәмамланган',
42
+ error_message : 'Хата',
43
+ },
32
44
  },
33
45
  enum_value_translate_matrix: {
34
46
  suite_status: {
@@ -50,6 +62,15 @@ export const typeUtilExecutionUrlInspect_i18n = {
50
62
  FAILED : 'Ошибка',
51
63
  SUBMIT_FAILED: 'Не поставлен в очередь',
52
64
  },
65
+ tt: {
66
+ CREATED : 'Ясалган',
67
+ QUEUED : 'Чиратта',
68
+ RUNNING : 'Башкарыла',
69
+ COMPLETED : 'Тәмамланган',
70
+ PARTIAL : 'Өлешчә',
71
+ FAILED : 'Хата',
72
+ SUBMIT_FAILED: 'Чиратка куелмаган',
73
+ },
53
74
  },
54
75
  },
55
76
  };
@@ -25,6 +25,16 @@ export const typeUtilExecutionUrlInspectCheck_i18n = {
25
25
  summary_message : 'Кратко',
26
26
  detail_message : 'Подробности',
27
27
  },
28
+ tt: {
29
+ url_inspect_check_id: 'Тикшерү',
30
+ util_execution_id : 'Йөгертү',
31
+ sort_order : 'Тәртип',
32
+ check_kind : 'Төр',
33
+ check_status : 'Статус',
34
+ finding_code : 'Табыш',
35
+ summary_message : 'Кыскача',
36
+ detail_message : 'Җентекләр',
37
+ },
28
38
  },
29
39
  enum_value_translate_matrix: {
30
40
  check_kind: {
@@ -48,6 +58,16 @@ export const typeUtilExecutionUrlInspectCheck_i18n = {
48
58
  SECURITY_HEADERS: 'Заголовки безопасности',
49
59
  BROWSER : 'Браузер',
50
60
  },
61
+ tt: {
62
+ DNS : 'DNS',
63
+ TCP_80 : 'TCP 80',
64
+ TCP_443 : 'TCP 443',
65
+ TLS : 'TLS',
66
+ HTTP : 'HTTP',
67
+ HTTPS : 'HTTPS',
68
+ SECURITY_HEADERS: 'Иминлек башлангычлары',
69
+ BROWSER : 'Браузер',
70
+ },
51
71
  },
52
72
  check_status: {
53
73
  en: {
@@ -66,6 +86,14 @@ export const typeUtilExecutionUrlInspectCheck_i18n = {
66
86
  SKIPPED : 'Пропущена',
67
87
  ERROR : 'Ошибка',
68
88
  },
89
+ tt: {
90
+ PENDING : 'Көтә',
91
+ QUEUED : 'Чиратта',
92
+ RUNNING : 'Башкарыла',
93
+ COMPLETED: 'Тәмамланган',
94
+ SKIPPED : 'Төшереп калдырылган',
95
+ ERROR : 'Хата',
96
+ },
69
97
  },
70
98
  finding_code: {
71
99
  en: {
@@ -106,6 +134,25 @@ export const typeUtilExecutionUrlInspectCheck_i18n = {
106
134
  BROWSER_FAILED : 'Ошибка браузера',
107
135
  BROWSER_SUBMIT_FAILED : 'Не удалось поставить браузер в очередь',
108
136
  },
137
+ tt: {
138
+ SUCCESS : 'Уңыш',
139
+ ERR_NAME_NOT_RESOLVED : 'Исем резолвланмый',
140
+ ERR_CONNECTION_REFUSED : 'Тоташу кире кагылды',
141
+ ERR_CONNECTION_TIMED_OUT : 'Тоташу таймауты',
142
+ ERR_CERT_DATE_INVALID : 'Сертификат вакыты яраксыз',
143
+ ERR_CERT_AUTHORITY_INVALID : 'Сертификат үзәге кабул ителмәде',
144
+ ERR_CERT_COMMON_NAME_INVALID: 'Сертификаттагы исем туры килми',
145
+ ERR_SSL_PROTOCOL_ERROR : 'TLS протокол хатасы',
146
+ ERR_TOO_MANY_REDIRECTS : 'Артык күп юнәлтү',
147
+ HTTP_STATUS : 'HTTP-статус',
148
+ NO_TLS : 'TLS юк',
149
+ EMPTY_BODY : 'Буш тән',
150
+ PROTOTYPE_BROWSER_SKIPPED : 'Браузер төшереп калдырылды (прототип)',
151
+ NO_PUBLIC_ADDRESS : 'Ачык адрес юк',
152
+ UNKNOWN_CHECK_KIND : 'Билгесез тикшерү төре',
153
+ BROWSER_FAILED : 'Браузер хатасы',
154
+ BROWSER_SUBMIT_FAILED : 'Браузерны чиратка куеп булмады',
155
+ },
109
156
  },
110
157
  },
111
158
  };
@@ -342,6 +342,49 @@ export class familyGeneralElement
342
342
  }
343
343
 
344
344
 
345
+ /**
346
+ * Mass create. Payload: `{ items: object[] }`.
347
+ *
348
+ * @param {object} payload
349
+ * @param {array} payload.items
350
+ * @param {typeFunctionCallback|object|false} callback
351
+ * @version v.1.0 (29/08/2026)
352
+ */
353
+ async create_mass(payload, callback)
354
+ {
355
+ if (!this.api_key)
356
+ {
357
+ throw new Error('Error #249-2215 - element has no api_key');
358
+ }
359
+
360
+ if (typeof callback?.before === 'function')
361
+ {
362
+ callback?.before({ payload });
363
+ }
364
+
365
+ return ApiService[ this.api_key ].create_mass(payload).then((response) =>
366
+ {
367
+ if (typeof callback?.success === 'function')
368
+ {
369
+ callback?.success({ response, payload })
370
+ }
371
+ }).catch((error) =>
372
+ {
373
+ echo({ error });
374
+ if (typeof callback?.error === 'function')
375
+ {
376
+ callback?.error({ error, payload })
377
+ }
378
+ }).finally((response) =>
379
+ {
380
+ if (typeof callback?.final === 'function')
381
+ {
382
+ callback?.final({ response, payload })
383
+ }
384
+ });
385
+ }
386
+
387
+
345
388
  /**
346
389
  * Обновление целой модели элемента
347
390
  *
@@ -17,10 +17,7 @@ export class typeTestCase extends familyTestDocumentation
17
17
  functional_id; // foreign key
18
18
  test_case_status;
19
19
  test_case_title; // text 90
20
- test_case_preconditions; // text (взято у рельсов)
21
- test_case_mission; // text (взято у рельсов)
22
- test_case_goals; // text (взято у рельсов)
23
- test_case_description; // text 250
20
+ test_case_description; // StringHtml, max 350 (DB)
24
21
  test_case_time_to_execute; // время выполнения (в секундах) (оценочное) (для планирования работ)
25
22
  test_case_complexity; // enum (для планирования работ)
26
23
  test_case_importance; // enum (для планирования работ)
@@ -28,7 +25,7 @@ export class typeTestCase extends familyTestDocumentation
28
25
  test_case_presteps; // pseudo // foreign key - relations
29
26
  _attachments; // typeAttachments - <relations>
30
27
  preconditions; // text
31
- excepted_result; // text // ?? <goals>
28
+ expected_result; // text // ?? <goals>
32
29
  created_at;
33
30
  updated_at;
34
31
 
@@ -46,10 +43,12 @@ export class typeTestCase extends familyTestDocumentation
46
43
  functional_id : 'integer | optional',
47
44
  test_case_status : 'string | enum | require',
48
45
  test_case_title : 'string | optional',
49
- test_case_descriptions : 'string | StringHtml | optional',
46
+ test_case_description : 'string | StringHtml | optional',
50
47
  test_case_time_to_execute: 'integer | optional',
51
48
  test_case_complexity : 'string | enum | optional',
52
49
  test_case_importance : 'string | enum | optional',
50
+ preconditions : 'string | StringHtml | optional',
51
+ expected_result : 'string | StringHtml | optional',
53
52
  created_at : 'timestamp | require',
54
53
  updated_at : 'timestamp | optional',
55
54
  };
@@ -17,7 +17,7 @@ export class typeTestCaseStep extends familyTestDocumentation
17
17
  step_text;
18
18
  step_element;
19
19
  step_element_action;
20
- step_excepted_result;
20
+ step_expected_result;
21
21
 
22
22
  primary_key = 'test_case_step_id';
23
23
  api_key = 'test_case_step';
@@ -31,7 +31,7 @@ export class typeTestCaseStep extends familyTestDocumentation
31
31
  step_text : 'string | optional',
32
32
  step_element : 'string | optional',
33
33
  step_element_action : 'string | optional',
34
- step_excepted_result: 'string | optional',
34
+ step_expected_result: 'string | optional',
35
35
  };
36
36
 
37
37
  create_scheme = [