Skip to content

Commit 656f48a

Browse files
authored
Merge pull request #37 from ProvarTesting/updateReadme
Update readme
2 parents aee95f5 + 3f76317 commit 656f48a

1 file changed

Lines changed: 222 additions & 10 deletions

File tree

README.md

Lines changed: 222 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,226 @@
1-
Run In dev provardx plugin on your local
1+
# @provartesting/provardx-cli
22

3-
# Prerequisite:
3+
[![Version](https://img.shields.io/npm/v/@provartesting/provardx-cli.svg)](https://npmjs.org/package/@provartesting/provardx-cli)
4+
[![Downloads/week](https://img.shields.io/npm/dw/@provartesting/provardx-cli.svg)](https://npmjs.org/package/@provartesting/provardx-cli)
45

5-
Node, npm , nvm, yarn, Latest sf cli.
6+
# What is the ProvarDX CLI?
67

7-
# Steps to run on local:
8+
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).
89

9-
1. git clone the Repo from the feature branch: https://github.com/ProvarTesting/provardx-cli/
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
10+
# Installation
11+
12+
```sh-session
13+
$ sf plugins install @provartesting/provardx-cli
14+
```
15+
# Commands
16+
17+
- [`sf provar automation config generate`](#sf-provar-automation-config-generate)
18+
- [`sf provar automation config validate`](#sf-provar-automation-config-validate)
19+
- [`sf provar automation config load`](#sf-provar-automation-config-load)
20+
- [`sf provar automation config get`](#sf-provar-automation-config-get)
21+
- [`sf provar automation config set`](#sf-provar-automation-config-set)
22+
- [`sf provar automation setup`](#sf-provar-automation-setup)
23+
- [`sf provar automation project compile`](#sf-provar-automation-project-compile)
24+
- [`sf provar automation metadata download`](#sf-provar-automation-metadata-download)
25+
- [`sf provar automation test run`](#sf-provar-automation-test-run)
26+
27+
## `sf provar automation config generate`
28+
29+
Generate a boilerplate ProvarDX properties file.
30+
31+
```
32+
USAGE
33+
$ sf provar automation config generate [--json] [-p <value>]
34+
35+
FLAGS
36+
-p, --properties-file=<value> (required) Path to the properties file that will be generated.
37+
-n, --no-prompt Don't prompt to confirm file should be overwritten.
38+
39+
GLOBAL FLAGS
40+
--json Format output as json.
41+
42+
DESCRIPTION
43+
Generate a boilerplate property file.
44+
45+
EXAMPLES
46+
Generate a basic properties file named provardx-properties.json:
47+
48+
$ sf provar automation config generate -p provardx-properties.json
49+
```
50+
51+
## `sf provar automation config validate`
52+
53+
Check if the loaded properties file has all the required properties set.
54+
55+
```
56+
USAGE
57+
$ sf provar automation config validate [--json]
58+
59+
GLOBAL FLAGS
60+
--json Format output as json.
61+
62+
DESCRIPTION
63+
Check if the loaded properties file has all the required properties set.
64+
65+
EXAMPLES
66+
Check if the loaded properties file has all the required properties set:
67+
68+
$ sf provar automation config validate
69+
```
70+
71+
## `sf provar automation config load`
72+
73+
Validate and load a ProvarDX properties file for later use.
74+
75+
```
76+
USAGE
77+
$ sf provar automation config load -p <value> [--json]
78+
79+
FLAGS
80+
-p, --properties-file=<value> (required) Path of the properties file to be loaded.
81+
82+
GLOBAL FLAGS
83+
--json Format output as json.
84+
85+
DESCRIPTION
86+
Validate and load a ProvarDX properties file for later use.
87+
88+
EXAMPLES
89+
Validate that the myproperties.json file is valid.
90+
91+
$ sf provar automation config load -p myproperties.json
92+
```
93+
94+
## `sf provar automation config get`
95+
96+
Retrieve a value from the loaded properties file.
97+
98+
```
99+
USAGE
100+
$ sf provar automation config get [--json]
101+
102+
GLOBAL FLAGS
103+
--json Format output as json.
104+
105+
DESCRIPTION
106+
Retrieve a value from the loaded properties file.
107+
108+
EXAMPLES
109+
Get the testEnvironment property value from the provardx-properties.json properties file:
110+
111+
$ sf provar automation config get environment.testEnvironment
112+
```
113+
114+
## `sf provar automation config set`
115+
116+
Set one or more properties in the loaded properties file.
117+
118+
```
119+
USAGE
120+
$ sf provar automation config set [--json]
121+
122+
GLOBAL FLAGS
123+
--json Format output as json.
124+
125+
DESCRIPTION
126+
Set one or more properties in the loaded properties file.
127+
128+
EXAMPLES
129+
Set the environment to "SIT” in the provardx-properties.json properties file:
130+
131+
$ sf provar automation config set environment.testEnvironment="SIT"
132+
133+
Set the testEnvironment to "SIT” and the webBrowser to "Chrome”, within the environment property:
134+
135+
$ sf provar automation config set environment.testEnvironment="SIT" environment.webBrowser="Chrome"
136+
137+
Set testCases to a list of test case paths in the provardx-properties.json properties file:
138+
139+
$ sf provar automation config set testCases='["tests/myTestCase.testcase","tests/testSuite1/myTestCase1.testCase"]'
140+
```
141+
142+
## `sf provar automation setup`
143+
144+
Download and install Provar Automation.
145+
146+
```
147+
USAGE
148+
$ sf provar automation setup [--json] [-v <value>]
149+
150+
FLAGS
151+
-v, --version=<value> Provar Automation build version number.
152+
153+
GLOBAL FLAGS
154+
--json Format output as json.
155+
156+
DESCRIPTION
157+
Download and install Provar Automation.
158+
159+
EXAMPLES
160+
Install version Provar Automation version 2.12.1:
161+
162+
$ sf provar automation setup --version 2.12.1
163+
```
164+
165+
## `sf provar automation project compile`
166+
167+
Compile PageObject and PageControl Java source files into object code.
168+
169+
```
170+
USAGE
171+
$ sf provar automation project compile [--json]
172+
173+
GLOBAL FLAGS
174+
--json Format output as json.
175+
176+
DESCRIPTION
177+
Compile PageObject and PageControl Java source files into object code.
178+
179+
EXAMPLES
180+
Compile the project using the configuration set in the properties file:
181+
182+
$ sf provar automation project compile
183+
```
184+
185+
## `sf provar automation metadata download`
186+
187+
Download any required metadata for a specified Provar Salesforce connection.
188+
189+
```
190+
USAGE
191+
$ sf provar automation metadata download -c <value> [--json]
192+
193+
FLAGS
194+
-c, --connections=<value> (required) Comma-separated list of names of Provar Salesforce connections to use, as defined in the project.
195+
196+
GLOBAL FLAGS
197+
--json Format output as json.
198+
199+
DESCRIPTION
200+
Download any required metadata for a specified Provar Salesforce connection.
201+
202+
EXAMPLES
203+
Refresh metadata for the MySalesforceConnection connection and store it in folder set in the properties file:
204+
205+
$ sf provar automation metadata download -c MySalesforceConnection
206+
```
207+
208+
## `sf provar automation test run`
209+
210+
Run the tests as specified in the loaded properties file.
211+
212+
```
213+
USAGE
214+
$ sf provar automation test run [--json]
215+
216+
GLOBAL FLAGS
217+
--json Format output as json.
218+
219+
DESCRIPTION
220+
Run the tests as specified in the loaded properties file.
221+
222+
EXAMPLES
223+
Run the tests as specified in the loaded properties file:
224+
225+
$ sf provar automation test run
226+
```

0 commit comments

Comments
 (0)