@provartesting/provardx-cli 0.0.7-beta → 1.1.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.
- package/LICENSE +28 -0
- package/README.md +232 -14
- package/lib/commands/provar/automation/config/generate.d.ts +1 -1
- package/lib/commands/provar/automation/config/generate.js +1 -5
- package/lib/commands/provar/automation/config/generate.js.map +1 -1
- package/lib/commands/provar/automation/config/get.d.ts +1 -1
- package/lib/commands/provar/automation/config/get.js +1 -6
- package/lib/commands/provar/automation/config/get.js.map +1 -1
- package/lib/commands/provar/automation/config/load.d.ts +1 -1
- package/lib/commands/provar/automation/config/load.js +1 -6
- package/lib/commands/provar/automation/config/load.js.map +1 -1
- package/lib/commands/provar/automation/config/set.d.ts +1 -1
- package/lib/commands/provar/automation/config/set.js +1 -6
- package/lib/commands/provar/automation/config/set.js.map +1 -1
- package/lib/commands/provar/automation/config/validate.d.ts +1 -1
- package/lib/commands/provar/automation/config/validate.js +1 -4
- package/lib/commands/provar/automation/config/validate.js.map +1 -1
- package/oclif.manifest.json +1 -247
- package/package.json +8 -6
- package/lib/Utility/GenericError.d.ts +0 -11
- package/lib/Utility/GenericError.js +0 -26
- package/lib/Utility/GenericError.js.map +0 -1
- package/lib/Utility/TestRunError.d.ts +0 -8
- package/lib/Utility/TestRunError.js +0 -20
- package/lib/Utility/TestRunError.js.map +0 -1
- package/lib/Utility/errorCode.d.ts +0 -1
- package/lib/Utility/errorCode.js +0 -8
- package/lib/Utility/errorCode.js.map +0 -1
- package/lib/Utility/errorHandler.d.ts +0 -15
- package/lib/Utility/errorHandler.js +0 -22
- package/lib/Utility/errorHandler.js.map +0 -1
- package/lib/Utility/fileSupport.d.ts +0 -12
- package/lib/Utility/fileSupport.js +0 -63
- package/lib/Utility/fileSupport.js.map +0 -1
- package/lib/Utility/genericErrorHandler.d.ts +0 -10
- package/lib/Utility/genericErrorHandler.js +0 -22
- package/lib/Utility/genericErrorHandler.js.map +0 -1
- package/lib/Utility/jsonSupport.d.ts +0 -8
- package/lib/Utility/jsonSupport.js +0 -48
- package/lib/Utility/jsonSupport.js.map +0 -1
- package/lib/Utility/propertyFileValidator.d.ts +0 -13
- package/lib/Utility/propertyFileValidator.js +0 -85
- package/lib/Utility/propertyFileValidator.js.map +0 -1
- package/lib/Utility/provarConfig.d.ts +0 -12
- package/lib/Utility/provarConfig.js +0 -38
- package/lib/Utility/provarConfig.js.map +0 -1
- package/lib/Utility/provardxExecutor.d.ts +0 -7
- package/lib/Utility/provardxExecutor.js +0 -31
- package/lib/Utility/provardxExecutor.js.map +0 -1
- package/lib/Utility/sfProvarCommandResult.d.ts +0 -13
- package/lib/Utility/sfProvarCommandResult.js +0 -30
- package/lib/Utility/sfProvarCommandResult.js.map +0 -1
- package/lib/Utility/stringSupport.d.ts +0 -8
- package/lib/Utility/stringSupport.js +0 -37
- package/lib/Utility/stringSupport.js.map +0 -1
- package/lib/Utility/userSupport.d.ts +0 -16
- package/lib/Utility/userSupport.js +0 -66
- package/lib/Utility/userSupport.js.map +0 -1
- package/lib/commands/provar/automation/metadata/download.d.ts +0 -13
- package/lib/commands/provar/automation/metadata/download.js +0 -96
- package/lib/commands/provar/automation/metadata/download.js.map +0 -1
- package/lib/commands/provar/automation/project/compile.d.ts +0 -9
- package/lib/commands/provar/automation/project/compile.js +0 -69
- package/lib/commands/provar/automation/project/compile.js.map +0 -1
- package/lib/commands/provar/automation/setup.d.ts +0 -12
- package/lib/commands/provar/automation/setup.js +0 -65
- package/lib/commands/provar/automation/setup.js.map +0 -1
- package/lib/commands/provar/automation/test/run.d.ts +0 -13
- package/lib/commands/provar/automation/test/run.js +0 -156
- package/lib/commands/provar/automation/test/run.js.map +0 -1
- package/lib/constants/commandConstants.d.ts +0 -11
- package/lib/constants/commandConstants.js +0 -13
- package/lib/constants/commandConstants.js.map +0 -1
- package/lib/constants/errorMessages.d.ts +0 -15
- package/lib/constants/errorMessages.js +0 -23
- package/lib/constants/errorMessages.js.map +0 -1
- package/lib/constants/propertyFileContent.d.ts +0 -24
- package/lib/constants/propertyFileContent.js +0 -25
- package/lib/constants/propertyFileContent.js.map +0 -1
- package/lib/constants/propertyFileSchema.d.ts +0 -254
- package/lib/constants/propertyFileSchema.js +0 -248
- package/lib/constants/propertyFileSchema.js.map +0 -1
- package/lib/constants/sfCommandConstants.d.ts +0 -5
- package/lib/constants/sfCommandConstants.js +0 -7
- package/lib/constants/sfCommandConstants.js.map +0 -1
- package/messages/provar.automation.project.compile.md +0 -21
- package/messages/provar.automation.setup.md +0 -23
- package/messages/provar.automation.test.run.md +0 -19
- package/messages/provar.metadata.download.md +0 -23
package/LICENSE
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024, Provar Limited
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
16
|
+
contributors may be used to endorse or promote products derived from
|
|
17
|
+
this software without specific prior written permission.
|
|
18
|
+
|
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
23
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
24
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
25
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
26
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/README.md
CHANGED
|
@@ -1,21 +1,239 @@
|
|
|
1
|
-
|
|
1
|
+
# @provartesting/provardx-cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://npmjs.org/package/@provartesting/provardx-cli)
|
|
4
|
+
[](https://npmjs.org/package/@provartesting/provardx-cli)
|
|
5
|
+
[](https://github.com/ProvarTesting/provardx-cli/blob/main/LICENSE.md)
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
# What is the ProvarDX CLI?
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
The Provar DX CLI is a Salesforce CLI plugin for Provar customers who want to automate the execution of tests and the reporting of test results and other quality-related reports (e.g. within a CI pipeline).
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
2. Install the dependencies on your local from package.json: npm i
|
|
11
|
-
3. Build the project using the command: yarn prepack
|
|
12
|
-
4. Need to copy the bin/dev folder to run the commands locally in Dev. Plugin.
|
|
13
|
-
5. To run the command manually: bin/dev ${command} (example: bin/dev sf provar config generate)
|
|
14
|
-
6. To run NUTS on your local: yarn run test:nuts
|
|
11
|
+
# Installation, Update, and Uninstall
|
|
15
12
|
|
|
16
|
-
|
|
13
|
+
Install the plugin
|
|
14
|
+
```sh-session
|
|
15
|
+
$ sf plugins install @provartesting/provardx-cli
|
|
16
|
+
```
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
Update plugins
|
|
19
|
+
```sh-session
|
|
20
|
+
$ sf plugins update
|
|
21
|
+
```
|
|
20
22
|
|
|
21
|
-
|
|
23
|
+
Uninstall the plugin
|
|
24
|
+
```sh-session
|
|
25
|
+
$ sf plugins uninstall @provartesting/provardx-cli
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
# Commands
|
|
29
|
+
|
|
30
|
+
- [`sf provar automation config generate`](#sf-provar-automation-config-generate)
|
|
31
|
+
- [`sf provar automation config validate`](#sf-provar-automation-config-validate)
|
|
32
|
+
- [`sf provar automation config load`](#sf-provar-automation-config-load)
|
|
33
|
+
- [`sf provar automation config get`](#sf-provar-automation-config-get)
|
|
34
|
+
- [`sf provar automation config set`](#sf-provar-automation-config-set)
|
|
35
|
+
- [`sf provar automation setup`](#sf-provar-automation-setup)
|
|
36
|
+
- [`sf provar automation project compile`](#sf-provar-automation-project-compile)
|
|
37
|
+
- [`sf provar automation metadata download`](#sf-provar-automation-metadata-download)
|
|
38
|
+
- [`sf provar automation test run`](#sf-provar-automation-test-run)
|
|
39
|
+
|
|
40
|
+
## `sf provar automation config generate`
|
|
41
|
+
|
|
42
|
+
Generate a boilerplate ProvarDX properties file.
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
USAGE
|
|
46
|
+
$ sf provar automation config generate [--json] [-p <value>]
|
|
47
|
+
|
|
48
|
+
FLAGS
|
|
49
|
+
-p, --properties-file=<value> (required) Path to the properties file that will be generated.
|
|
50
|
+
-n, --no-prompt Don't prompt to confirm file should be overwritten.
|
|
51
|
+
|
|
52
|
+
GLOBAL FLAGS
|
|
53
|
+
--json Format output as json.
|
|
54
|
+
|
|
55
|
+
DESCRIPTION
|
|
56
|
+
Generate a boilerplate property file.
|
|
57
|
+
|
|
58
|
+
EXAMPLES
|
|
59
|
+
Generate a basic properties file named provardx-properties.json:
|
|
60
|
+
|
|
61
|
+
$ sf provar automation config generate -p provardx-properties.json
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## `sf provar automation config validate`
|
|
65
|
+
|
|
66
|
+
Check if the loaded properties file has all the required properties set.
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
USAGE
|
|
70
|
+
$ sf provar automation config validate [--json]
|
|
71
|
+
|
|
72
|
+
GLOBAL FLAGS
|
|
73
|
+
--json Format output as json.
|
|
74
|
+
|
|
75
|
+
DESCRIPTION
|
|
76
|
+
Check if the loaded properties file has all the required properties set.
|
|
77
|
+
|
|
78
|
+
EXAMPLES
|
|
79
|
+
Check if the loaded properties file has all the required properties set:
|
|
80
|
+
|
|
81
|
+
$ sf provar automation config validate
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## `sf provar automation config load`
|
|
85
|
+
|
|
86
|
+
Validate and load a ProvarDX properties file for later use.
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
USAGE
|
|
90
|
+
$ sf provar automation config load -p <value> [--json]
|
|
91
|
+
|
|
92
|
+
FLAGS
|
|
93
|
+
-p, --properties-file=<value> (required) Path of the properties file to be loaded.
|
|
94
|
+
|
|
95
|
+
GLOBAL FLAGS
|
|
96
|
+
--json Format output as json.
|
|
97
|
+
|
|
98
|
+
DESCRIPTION
|
|
99
|
+
Validate and load a ProvarDX properties file for later use.
|
|
100
|
+
|
|
101
|
+
EXAMPLES
|
|
102
|
+
Validate that the myproperties.json file is valid.
|
|
103
|
+
|
|
104
|
+
$ sf provar automation config load -p myproperties.json
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## `sf provar automation config get`
|
|
108
|
+
|
|
109
|
+
Retrieve a value from the loaded properties file.
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
USAGE
|
|
113
|
+
$ sf provar automation config get [--json]
|
|
114
|
+
|
|
115
|
+
GLOBAL FLAGS
|
|
116
|
+
--json Format output as json.
|
|
117
|
+
|
|
118
|
+
DESCRIPTION
|
|
119
|
+
Retrieve a value from the loaded properties file.
|
|
120
|
+
|
|
121
|
+
EXAMPLES
|
|
122
|
+
Get the testEnvironment property value from the provardx-properties.json properties file:
|
|
123
|
+
|
|
124
|
+
$ sf provar automation config get environment.testEnvironment
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## `sf provar automation config set`
|
|
128
|
+
|
|
129
|
+
Set one or more properties in the loaded properties file.
|
|
130
|
+
|
|
131
|
+
```
|
|
132
|
+
USAGE
|
|
133
|
+
$ sf provar automation config set [--json]
|
|
134
|
+
|
|
135
|
+
GLOBAL FLAGS
|
|
136
|
+
--json Format output as json.
|
|
137
|
+
|
|
138
|
+
DESCRIPTION
|
|
139
|
+
Set one or more properties in the loaded properties file.
|
|
140
|
+
|
|
141
|
+
EXAMPLES
|
|
142
|
+
Set the environment to "SIT” in the provardx-properties.json properties file:
|
|
143
|
+
|
|
144
|
+
$ sf provar automation config set environment.testEnvironment="SIT"
|
|
145
|
+
|
|
146
|
+
Set the testEnvironment to "SIT” and the webBrowser to "Chrome”, within the environment property:
|
|
147
|
+
|
|
148
|
+
$ sf provar automation config set environment.testEnvironment="SIT" environment.webBrowser="Chrome"
|
|
149
|
+
|
|
150
|
+
Set testCases to a list of test case paths in the provardx-properties.json properties file:
|
|
151
|
+
|
|
152
|
+
$ sf provar automation config set testCases='["tests/myTestCase.testcase","tests/testSuite1/myTestCase1.testCase"]'
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## `sf provar automation setup`
|
|
156
|
+
|
|
157
|
+
Download and install Provar Automation.
|
|
158
|
+
|
|
159
|
+
```
|
|
160
|
+
USAGE
|
|
161
|
+
$ sf provar automation setup [--json] [-v <value>]
|
|
162
|
+
|
|
163
|
+
FLAGS
|
|
164
|
+
-v, --version=<value> Provar Automation build version number.
|
|
165
|
+
|
|
166
|
+
GLOBAL FLAGS
|
|
167
|
+
--json Format output as json.
|
|
168
|
+
|
|
169
|
+
DESCRIPTION
|
|
170
|
+
Download and install Provar Automation.
|
|
171
|
+
|
|
172
|
+
EXAMPLES
|
|
173
|
+
Install version Provar Automation version 2.12.1:
|
|
174
|
+
|
|
175
|
+
$ sf provar automation setup --version 2.12.1
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
## `sf provar automation project compile`
|
|
179
|
+
|
|
180
|
+
Compile PageObject and PageControl Java source files into object code.
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
USAGE
|
|
184
|
+
$ sf provar automation project compile [--json]
|
|
185
|
+
|
|
186
|
+
GLOBAL FLAGS
|
|
187
|
+
--json Format output as json.
|
|
188
|
+
|
|
189
|
+
DESCRIPTION
|
|
190
|
+
Compile PageObject and PageControl Java source files into object code.
|
|
191
|
+
|
|
192
|
+
EXAMPLES
|
|
193
|
+
Compile the project using the configuration set in the properties file:
|
|
194
|
+
|
|
195
|
+
$ sf provar automation project compile
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
## `sf provar automation metadata download`
|
|
199
|
+
|
|
200
|
+
Download any required metadata for a specified Provar Salesforce connection.
|
|
201
|
+
|
|
202
|
+
```
|
|
203
|
+
USAGE
|
|
204
|
+
$ sf provar automation metadata download -c <value> [--json]
|
|
205
|
+
|
|
206
|
+
FLAGS
|
|
207
|
+
-c, --connections=<value> (required) Comma-separated list of names of Provar Salesforce connections to use, as defined in the project.
|
|
208
|
+
|
|
209
|
+
GLOBAL FLAGS
|
|
210
|
+
--json Format output as json.
|
|
211
|
+
|
|
212
|
+
DESCRIPTION
|
|
213
|
+
Download any required metadata for a specified Provar Salesforce connection.
|
|
214
|
+
|
|
215
|
+
EXAMPLES
|
|
216
|
+
Refresh metadata for the MySalesforceConnection connection and store it in folder set in the properties file:
|
|
217
|
+
|
|
218
|
+
$ sf provar automation metadata download -c MySalesforceConnection
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
## `sf provar automation test run`
|
|
222
|
+
|
|
223
|
+
Run the tests as specified in the loaded properties file.
|
|
224
|
+
|
|
225
|
+
```
|
|
226
|
+
USAGE
|
|
227
|
+
$ sf provar automation test run [--json]
|
|
228
|
+
|
|
229
|
+
GLOBAL FLAGS
|
|
230
|
+
--json Format output as json.
|
|
231
|
+
|
|
232
|
+
DESCRIPTION
|
|
233
|
+
Run the tests as specified in the loaded properties file.
|
|
234
|
+
|
|
235
|
+
EXAMPLES
|
|
236
|
+
Run the tests as specified in the loaded properties file:
|
|
237
|
+
|
|
238
|
+
$ sf provar automation test run
|
|
239
|
+
```
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
-
import { SfProvarCommandResult } from '
|
|
2
|
+
import { SfProvarCommandResult } from '@provartesting/provardx-plugins-utils';
|
|
3
3
|
export default class SfProvarConfigGenerate extends SfCommand<SfProvarCommandResult> {
|
|
4
4
|
static readonly summary: string;
|
|
5
5
|
static readonly description: string;
|
|
@@ -5,12 +5,8 @@
|
|
|
5
5
|
* For full license text, see LICENSE.md file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
6
6
|
*/
|
|
7
7
|
import fs from 'node:fs';
|
|
8
|
-
import { Messages } from '@salesforce/core';
|
|
9
8
|
import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
|
|
10
|
-
import { populateResult } from '
|
|
11
|
-
import { generateFile, getExtension } from '../../../../Utility/fileSupport.js';
|
|
12
|
-
import ErrorHandler from '../../../../Utility/errorHandler.js';
|
|
13
|
-
import { errorMessages } from '../../../../constants/errorMessages.js';
|
|
9
|
+
import { errorMessages, populateResult, generateFile, getExtension, ErrorHandler, Messages } from '@provartesting/provardx-plugins-utils';
|
|
14
10
|
/**
|
|
15
11
|
* Generates the boiler plate provardx-properties.json
|
|
16
12
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../../../src/commands/provar/automation/config/generate.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,
|
|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OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;gBAC7D,IAAI,CAAC,YAAY,CAAC,eAAe,CAC/B,0BAA0B,EAC1B,wDAAwD,CACzD,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
-
import { SfProvarCommandResult } from '
|
|
2
|
+
import { SfProvarCommandResult } from '@provartesting/provardx-plugins-utils';
|
|
3
3
|
export default class SfProvarConfigGet extends SfCommand<SfProvarCommandResult> {
|
|
4
4
|
static readonly summary: string;
|
|
5
5
|
static readonly description: string;
|
|
@@ -6,12 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import * as fileSystem from 'node:fs';
|
|
8
8
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
9
|
-
import { Messages } from '@
|
|
10
|
-
import { populateResult } from '../../../../Utility/sfProvarCommandResult.js';
|
|
11
|
-
import ErrorHandler from '../../../../Utility/errorHandler.js';
|
|
12
|
-
import { ProvarConfig } from '../../../../Utility/provarConfig.js';
|
|
13
|
-
import { errorMessages } from '../../../../constants/errorMessages.js';
|
|
14
|
-
import { checkNestedProperty, getNestedProperty } from '../../../../Utility/jsonSupport.js';
|
|
9
|
+
import { errorMessages, populateResult, ErrorHandler, ProvarConfig, checkNestedProperty, getNestedProperty, Messages } from '@provartesting/provardx-plugins-utils';
|
|
15
10
|
/**
|
|
16
11
|
* Gets the value for specified propertykey under arguments from provardx-properties.json
|
|
17
12
|
* laoded under config.json
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../src/commands/provar/automation/config/get.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,UAAU,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,
|
|
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AAc,CAAC,YAAY,CAAC,EAAE,CAAC;oBACtD,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,kBAAkB,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;gBACxF,CAAC;qBAAM,CAAC;oBACN,cAAc,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAC;gBACrD,CAAC;YACH,CAAC;QACH,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAClB,IAAI,GAAG,CAAC,IAAI,KAAK,aAAa,EAAE,CAAC;gBAC/B,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,gBAAgB,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;YAC1F,CAAC;iBAAM,CAAC;gBACN,MAAM,GAAG,CAAC;YACZ,CAAC;QACH,CAAC;QAED,OAAO,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,cAAc,CAAC,CAAC;IACjG,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
-
import { SfProvarCommandResult } from '
|
|
2
|
+
import { SfProvarCommandResult } from '@provartesting/provardx-plugins-utils';
|
|
3
3
|
export default class SfProvarConfigLoad extends SfCommand<SfProvarCommandResult> {
|
|
4
4
|
static readonly summary: string;
|
|
5
5
|
static readonly description: string;
|
|
@@ -7,12 +7,7 @@
|
|
|
7
7
|
import * as fileSystem from 'node:fs';
|
|
8
8
|
import { resolve } from 'node:path';
|
|
9
9
|
import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
|
|
10
|
-
import { Messages } from '@
|
|
11
|
-
import { populateResult } from '../../../../Utility/sfProvarCommandResult.js';
|
|
12
|
-
import ErrorHandler from '../../../../Utility/errorHandler.js';
|
|
13
|
-
import { ProvarConfig } from '../../../../Utility/provarConfig.js';
|
|
14
|
-
import PropertyFileValidator from '../../../../Utility/propertyFileValidator.js';
|
|
15
|
-
import { errorMessages } from '../../../../constants/errorMessages.js';
|
|
10
|
+
import { errorMessages, populateResult, ErrorHandler, ProvarConfig, PropertyFileValidator, Messages } from '@provartesting/provardx-plugins-utils';
|
|
16
11
|
/**
|
|
17
12
|
* Loads the path to provardx-properties.json to the user directory ${user}/.sf/config.json
|
|
18
13
|
* So, that further any command can be run at any location by picking up the properties.json file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load.js","sourceRoot":"","sources":["../../../../../src/commands/provar/automation/config/load.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,UAAU,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"load.js","sourceRoot":"","sources":["../../../../../src/commands/provar/automation/config/load.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,UAAU,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAyB,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAE1K;;;;;GAKG;AAEH,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,6BAA6B,EAAE,uBAAuB,CAAC,CAAC;AAE/F,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,SAAgC;IACvE,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,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AE,CAAC,EAAE,CAAC;YAC9C,MAAM,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;YAC9C,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;QACvB,CAAC;QAED,OAAO,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACjF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
-
import { SfProvarCommandResult } from '
|
|
2
|
+
import { SfProvarCommandResult } from '@provartesting/provardx-plugins-utils';
|
|
3
3
|
export default class SfProvarConfigSet extends SfCommand<SfProvarCommandResult> {
|
|
4
4
|
static readonly summary: string;
|
|
5
5
|
static readonly description: string;
|
|
@@ -6,12 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import * as fileSystem from 'node:fs';
|
|
8
8
|
import { SfCommand, parseVarArgs } from '@salesforce/sf-plugins-core';
|
|
9
|
-
import { Messages } from '@
|
|
10
|
-
import { populateResult } from '../../../../Utility/sfProvarCommandResult.js';
|
|
11
|
-
import ErrorHandler from '../../../../Utility/errorHandler.js';
|
|
12
|
-
import { errorMessages } from '../../../../constants/errorMessages.js';
|
|
13
|
-
import { ProvarConfig } from '../../../../Utility/provarConfig.js';
|
|
14
|
-
import { parseJSONString, setNestedProperty } from '../../../../Utility/jsonSupport.js';
|
|
9
|
+
import { populateResult, ErrorHandler, Messages, ProvarConfig, parseJSONString, setNestedProperty, errorMessages } from '@provartesting/provardx-plugins-utils';
|
|
15
10
|
/**
|
|
16
11
|
* Sets the specified property key and value inside provardx-properties.json
|
|
17
12
|
* loaded under config file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set.js","sourceRoot":"","sources":["../../../../../src/commands/provar/automation/config/set.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK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,eAAe,CAAC,gBAAgB,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;YAC1F,CAAC;iBAAM,CAAC;gBACN,MAAM,GAAG,CAAC;YACZ,CAAC;QACH,CAAC;QACD,OAAO,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACjF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
-
import { SfProvarCommandResult } from '
|
|
2
|
+
import { SfProvarCommandResult } from '@provartesting/provardx-plugins-utils';
|
|
3
3
|
export default class SfProvarConfigValidate extends SfCommand<SfProvarCommandResult> {
|
|
4
4
|
static readonly summary: string;
|
|
5
5
|
static readonly description: string;
|
|
@@ -5,10 +5,7 @@
|
|
|
5
5
|
* For full license text, see LICENSE.md file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
6
6
|
*/
|
|
7
7
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
8
|
-
import { Messages } from '@
|
|
9
|
-
import ErrorHandler from '../../../../Utility/errorHandler.js';
|
|
10
|
-
import { populateResult } from '../../../../Utility/sfProvarCommandResult.js';
|
|
11
|
-
import PropertyFileValidator from '../../../../Utility/propertyFileValidator.js';
|
|
8
|
+
import { ErrorHandler, populateResult, PropertyFileValidator, Messages } from '@provartesting/provardx-plugins-utils';
|
|
12
9
|
/**
|
|
13
10
|
* Validates the provardx-properties.json against JSON standards and provardx schema
|
|
14
11
|
* mentioned under PropertyFileSchema.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../../../src/commands/provar/automation/config/validate.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../../../src/commands/provar/automation/config/validate.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,OAAO,EAAE,YAAY,EAAyB,cAAc,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAE7I;;;;GAIG;AAEH,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,6BAA6B,EAAE,2BAA2B,CAAC,CAAC;AAEnG,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,SAAgC;IAC3E,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC3D,YAAY,GAAiB,IAAI,YAAY,EAAE,CAAC;IAEjD,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC3D,MAAM,qBAAqB,GAAG,IAAI,qBAAqB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC3E,MAAM,qBAAqB,CAAC,QAAQ,EAAE,CAAC;QAEvC,OAAO,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACjF,CAAC"}
|