You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The @lambdatest/smartui package is LambdaTest's command-line interface (CLI) aimed to help you run your SmartUI tests on LambdaTest platform.
3
+
4
+
5
+
# Installation
6
+
7
+
### Prerequisites
8
+
1. Node version >=14.15.0 required
9
+
```
10
+
node --version
11
+
```
12
+
13
+
2. Storybook version >=6.4 required. Also, add the following to your `.storybook/main.js`. You can read more about this here [Storybook Feature flags](https://storybook.js.org/docs/react/configure/overview#feature-flags)
## Step 1: Set SmartUI Project Token in environment variables
30
+
31
+
<b>For Linux/macOS:</b>
32
+
33
+
```
34
+
export PROJECT_TOKEN="your-project-token"
35
+
```
36
+
37
+
<b>For Windows:</b>
38
+
39
+
```
40
+
set PROJECT_TOKEN="your-project-token"
41
+
```
42
+
43
+
## Step 2: Create config file
44
+
```bash
45
+
smartui config create .smartui.json
46
+
```
47
+
48
+
## Step 3: Execute tests
49
+
Run the following command to run tests on your Storybook stories. Provide your storybook url, build name and config file (Default config used if no config file provided)
[LambdaTest](https://www.lambdatest.com/) is a cloud based selenium grid infrastructure that can help you run automated cross browser compatibility tests on 2000+ different browser and operating system environments. LambdaTest supports all programming languages and frameworks that are supported with Selenium, and have easy integrations with all popular CI/CD platforms. It's a perfect solution to bring your [selenium automation testing](https://www.lambdatest.com/selenium-automation) to cloud based infrastructure that not only helps you increase your test coverage over multiple desktop and mobile browsers, but also allows you to cut down your test execution time by running tests on parallel.
0 commit comments