1
1
/*
2
- * Copyright 2020 EPAM Systems
2
+ * Copyright 2025 EPAM Systems
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -19,12 +19,8 @@ const path = require('path');
19
19
const {
20
20
getAgentOptions,
21
21
getStartLaunchObject,
22
- getSuiteStartObject,
23
- getTestStartObject,
24
- getStepStartObject,
25
22
getAgentInfo,
26
23
getCodeRef,
27
- getFullTestName,
28
24
getFullStepName,
29
25
getSystemAttributes,
30
26
} = require ( '../src/utils/objectUtils' ) ;
@@ -117,52 +113,6 @@ describe('Object Utils script', () => {
117
113
} ) ;
118
114
} ) ;
119
115
120
- describe ( 'getStepStartObject' , ( ) => {
121
- test ( 'should return step start object with correct values' , ( ) => {
122
- const expectedStepStartObject = {
123
- type : 'STEP' ,
124
- name : 'step title' ,
125
- retry : true ,
126
- startTime : new Date ( ) . valueOf ( ) - duration ,
127
- } ;
128
-
129
- const stepStartObject = getStepStartObject ( 'step title' , true , undefined , duration ) ;
130
-
131
- expect ( stepStartObject ) . toBeDefined ( ) ;
132
- expect ( stepStartObject ) . toEqual ( expectedStepStartObject ) ;
133
- } ) ;
134
- } ) ;
135
-
136
- describe ( 'getTestStartObject' , ( ) => {
137
- test ( 'should return test start object with correct values' , ( ) => {
138
- const expectedTestStartObject = {
139
- type : 'TEST' ,
140
- name : 'test title' ,
141
- startTime : new Date ( ) . valueOf ( ) - duration ,
142
- } ;
143
-
144
- const testStartObject = getTestStartObject ( 'test title' , undefined , duration ) ;
145
-
146
- expect ( testStartObject ) . toBeDefined ( ) ;
147
- expect ( testStartObject ) . toEqual ( expectedTestStartObject ) ;
148
- } ) ;
149
- } ) ;
150
-
151
- describe ( 'getSuiteStartObject' , ( ) => {
152
- test ( 'should return suite start object with correct values' , ( ) => {
153
- const expectedSuiteStartObject = {
154
- type : 'SUITE' ,
155
- name : 'suite name' ,
156
- startTime : new Date ( ) . valueOf ( ) - duration ,
157
- } ;
158
-
159
- const suiteStartObject = getSuiteStartObject ( 'suite name' , undefined , duration ) ;
160
-
161
- expect ( suiteStartObject ) . toBeDefined ( ) ;
162
- expect ( suiteStartObject ) . toEqual ( expectedSuiteStartObject ) ;
163
- } ) ;
164
- } ) ;
165
-
166
116
describe ( 'getAgentOptions' , ( ) => {
167
117
test (
168
118
'should return agent options object with correct values, some parameters taken from' +
@@ -301,19 +251,6 @@ describe('Object Utils script', () => {
301
251
} ) ;
302
252
} ) ;
303
253
304
- describe ( 'getFullTestName' , ( ) => {
305
- test ( 'should return correct full test name' , ( ) => {
306
- const mockedTest = {
307
- ancestorTitles : [ 'rootDescribe' , 'parentDescribe' , 'testTitle' ] ,
308
- } ;
309
- const expectedFullTestName = 'rootDescribe/parentDescribe/testTitle' ;
310
-
311
- const fullTestName = getFullTestName ( mockedTest ) ;
312
-
313
- expect ( fullTestName ) . toEqual ( expectedFullTestName ) ;
314
- } ) ;
315
- } ) ;
316
-
317
254
describe ( 'getFullStepName' , ( ) => {
318
255
test ( 'should return correct full step name' , ( ) => {
319
256
const mockedTest = {
0 commit comments