Skip to content

Commit d0e260e

Browse files
committed
Read Me
1 parent 8659ad0 commit d0e260e

File tree

1 file changed

+40
-11
lines changed

1 file changed

+40
-11
lines changed

README.md

Lines changed: 40 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,27 +74,56 @@ The following software are required:
7474
```
7575
- Install Java 8 or above, Allure Reports require Java 8 or higher.
7676

77-
- allure commandline : Install allure command line for generating Allure Reports using
77+
- allure commandline : Install allure command line for generating Allure Reports using
7878
```sh
7979
npm install -g allure-commandline
80-
```
80+
```
81+
8182
### Installation
8283

8384
1. Clone the repo using below URL
84-
```sh
85-
https://github.com/akshayp7/playwright-typescipt-playwright-test.git
86-
```
85+
86+
```sh
87+
https://github.com/akshayp7/playwright-typescipt-playwright-test.git
88+
```
89+
8790
2. Navigate to folder and install npm packages using:
88-
```sh
89-
npm install
90-
```
91+
92+
```sh
93+
npm install
94+
```
9195

9296
<!-- USAGE EXAMPLES-->
9397

9498
## Usage
9599

96100
1. For Browser Configuration, change required parameters in "playwright.config.ts".
97101
2. For execution entire test suite on all available browsers simultaneously execute:
98-
```JS
99-
npm run test
100-
```
102+
103+
```JS
104+
npm run test
105+
```
106+
107+
3. For executing single test case on Chrome browser execute the below command, ypu can change the browser for execution e.g. if you want to run test cases on Firefox, you can change "--project=Firefox" against "test:single" in "package.json", just make sure the browser name given matches the name given in "playwright.config.ts".
108+
109+
```JS
110+
npm run test:single
111+
```
112+
113+
4. For executing test cases in parallel, provide a suitable tag "@SmokeTest" at the start of your test case name, then in "package.json" against "test:parallel" give the tag value and execute :
114+
115+
```JS
116+
npm run test:parallel
117+
```
118+
119+
5. For executing test cases in sequence, provide a suitable tag "@SmokeTest" at the start of your test case name, then in "package.json" against "test:serial" give the tag value and execute, "workers" parameter correspond to test cases you want to execute simultaneously e.g. "--workers=3", executes 3 test cases simultaneously :
120+
121+
```JS
122+
npm run test:serial
123+
```
124+
125+
6. For executing API test cases :
126+
127+
```JS
128+
npm run test:api
129+
```

0 commit comments

Comments
 (0)