Skip to content

Commit a364dd9

Browse files
authored
Merge pull request #15 from keys-github/patch-1
Update SmartUI GitHub READ.ME
2 parents 6022813 + 86c351a commit a364dd9

File tree

1 file changed

+112
-21
lines changed

1 file changed

+112
-21
lines changed

README.md

Lines changed: 112 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,82 @@
1-
# smartui-github-testing
1+
<h1>Smart UI Testing With GitHub</h1>
22

3-
For Testing Github App Integration with SmartUI
3+
<img height="400" src="https://user-images.githubusercontent.com/126776938/232716259-60606fe2-d9ed-4449-9586-321a5950308e.png">
44

5+
<p align="center">
6+
<a href="https://www.lambdatest.com/blog/?utm_source=github&utm_medium=repo&utm_campaign=playwright-sample" target="_bank">Blog</a>
7+
&nbsp; &#8901; &nbsp;
8+
<a href="https://www.lambdatest.com/support/docs/?utm_source=github&utm_medium=repo&utm_campaign=playwright-sample" target="_bank">Docs</a>
9+
&nbsp; &#8901; &nbsp;
10+
<a href="https://www.lambdatest.com/learning-hub/?utm_source=github&utm_medium=repo&utm_campaign=playwright-sample" target="_bank">Learning Hub</a>
11+
&nbsp; &#8901; &nbsp;
12+
<a href="https://www.lambdatest.com/newsletter/?utm_source=github&utm_medium=repo&utm_campaign=playwright-sample" target="_bank">Newsletter</a>
13+
&nbsp; &#8901; &nbsp;
14+
<a href="https://www.lambdatest.com/certifications/?utm_source=github&utm_medium=repo&utm_campaign=playwright-sample" target="_bank">Certifications</a>
15+
&nbsp; &#8901; &nbsp;
16+
<a href="https://www.youtube.com/c/LambdaTest" target="_bank">YouTube</a>
17+
</p>
18+
&emsp;
19+
&emsp;
20+
&emsp;
521

22+
*Learn the how to get started with testing GitHub app integration with SmartUI on the LambdaTest platform.*
623

7-
### Getting Started Github App Integration with SmartUI Product - Selenium Automation
24+
[<img height="58" width="200" src="https://user-images.githubusercontent.com/70570645/171866795-52c11b49-0728-4229-b073-4b704209ddde.png">](https://accounts.lambdatest.com/register?utm_source=github&utm_medium=repo&utm_campaign=playwright-sample)
825

9-
Steps 1: Setup Github App with lambdatest from link github setup
26+
27+
## Table of Contents:
28+
29+
* [Pre-requisites](#pre-requisites)
30+
* [Getting Started With Github App Integration with SmartUI](#getting-started-with-github-app-integration-with-smartui)
31+
32+
33+
## Pre-requisites
34+
35+
* An account with Github with valid permission to install new applications to your repositories.
36+
* Basic understanding of Continuos Integration tools (CI) is required.
37+
* Should have setup the SmartUI suite, else please read [this](https://www.lambdatest.com/support/docs/selenium-visual-regression/).
38+
39+
## Getting Started With Github App Integration with SmartUI
40+
41+
### Steps 1: Integrate the your Lambdatest Account with GitHub App.
42+
43+
You can integrate your LambdaTest account with the GiHub application in the following ways:
1044

1145
- Using OAuth
1246

13-
- Cloud, or
47+
![github-app-landing-92ef6e152a7302cb9ab88f5034b9ec0c](https://user-images.githubusercontent.com/126776938/232715867-f375b4df-1bc9-4e88-8340-44e986be2e9a.png)
1448

15-
- Self Hosted
1649

17-
Step 2: Once setup is done, you will see like
50+
### Step 2: Select your GitHub repository
1851

19-
Step 3: Now you need to setup a sample repository where your test case are mentioned, [smartui-github-testing](https://github.com/LambdaTest/smartui-github-testing)
52+
Go to your GitHub repository where you want to configure your SmartUI project. Check out our GitHub sample [here](https://github.com/LambdaTest/smartui-node-sample).
2053

21-
Step 4: For Github Status updates on PR/ commit need to add capabilities in test suite,
54+
### Step 3: Configure your test suite
2255

23-
```
24-
github: {
25-
"url": "https://api.github.com/repos/OWNER/REPO/statuses/commitId",
26-
"owner": "{OWNER}", //Optional
27-
"repo": "{REPO}", //Optional
28-
"commit": "{commitId}" //Optional
29-
},
56+
Add the `Github` capability to your current test configuration:
57+
58+
```bash
59+
const capabilities: {
60+
platform: "Windows 10",
61+
browserName: "chrome",
62+
version: "latest",
63+
"smartUI.project": "Smart UI sample test",
64+
github: {
65+
"url": "https://api.github.com/repos/OWNER/REPO/statuses/commitId", // Mandatory
66+
"owner": "{OWNER}", //Optional
67+
"repo": "{REPO}", //Optional
68+
"commit": "{commitId}" //Optional
69+
}
70+
}
3071
```
3172

32-
Step5: How to get the `github.url` value in test suite
73+
### Step 4: Setting up your CI configuration
3374

34-
Here we have taken an example of github action, Add below steps in your github action file [.github/workflows/ci.yml](https://github.com/LambdaTest/smartui-github-testing/blob/main/.github/workflows/ci.yml)
75+
Setting up your CI workflow to execute on GitHub. Here is an example setup with `GitHub Actions`:
3576

36-
```
77+
Go to `.github/workflows/<your_ci_file>.yml`.
78+
79+
```bash
3780
name: Execute SmartUI Test with Github App Integration
3881
runs-on: ubuntu-latest
3982
steps:
@@ -52,7 +95,55 @@ Here we have taken an example of github action, Add below steps in your github a
5295
echo "GITHUB_URL=$GITHUB_URL" >> $GITHUB_ENV
5396
```
5497

98+
### Step5: Execute your test suite with CI
99+
100+
After the setup is completed, you can now execute your test suite with the Continuos Integration (CI) pipeline with any tool of your choice.
101+
102+
**Please Note:** *On running the tests with this repository the user should be able to trigger the `GitHub Action` and execute the `SmartUI` tests for `Selenium`, `Cypress, CDP, and Taiko` frameworks. As this action does not work for `StoryBook`, check our how you can SmartUI test with `StoryBook` [here](https://github.com/LambdaTest/smartui-storybook).*
103+
104+
### Step 6: Commit you changes over git on a branch and raise the PR to main branch.
105+
106+
### Step 7: Now you will see the `lambdatest-smartui-app` in the PR.
107+
108+
## Documentation & Resources :books:
109+
110+
Visit the following links to learn more about LambdaTest's features, setup and tutorials around test automation, mobile app testing, responsive testing, and manual testing.
111+
112+
* [LambdaTest Documentation](https://www.lambdatest.com/support/docs/?utm_source=github&utm_medium=repo&utm_campaign=playwright-sample)
113+
* [LambdaTest Blog](https://www.lambdatest.com/blog/?utm_source=github&utm_medium=repo&utm_campaign=playwright-sample)
114+
* [LambdaTest Learning Hub](https://www.lambdatest.com/learning-hub/?utm_source=github&utm_medium=repo&utm_campaign=playwright-sample)
115+
116+
## LambdaTest Community :busts_in_silhouette:
117+
118+
The [LambdaTest Community](https://community.lambdatest.com/?utm_source=github&utm_medium=repo&utm_campaign=playwright-sample) allows people to interact with tech enthusiasts. Connect, ask questions, and learn from tech-savvy people. Discuss best practises in web development, testing, and DevOps with professionals from across the globe 🌎
119+
120+
## What's New At LambdaTest ❓
121+
122+
To stay updated with the latest features and product add-ons, visit [Changelog](https://changelog.lambdatest.com/)
123+
124+
## About LambdaTest
125+
126+
[LambdaTest](https://www.lambdatest.com?utm_source=github&utm_medium=repo&utm_campaign=playwright-sample) is an intelligent unified digital experience testing cloud that helps businesses drastically reduce time to market through faster test execution, ensuring quality releases and accelerated digital transformation. The platforms allows you to perform both real time and automation testing across 3000+ environments and real mobile devices, making it a top choice among other cloud testing platforms. Over 10,000+ enterprise customers and 2+ million users across 130+ countries rely on LambdaTest for their testing needs.
127+
128+
### Features
129+
130+
* Run Selenium, Cypress, Puppeteer, Playwright, and Appium automation tests across 3000+ real desktop and mobile environments.
131+
* Real-time cross browser testing on 3000+ environments.
132+
* Test on Real device cloud
133+
* Blazing fast test automation with HyperExecute
134+
* Accelerate testing, shorten job times and get faster feedback on code changes with Test At Scale.
135+
* Smart Visual Regression Testing on cloud
136+
* 120+ third-party integrations with your favorite tool for CI/CD, Project Management, Codeless Automation, and more.
137+
* Automated Screenshot testing across multiple browsers in a single click.
138+
* Local testing of web and mobile apps.
139+
* Online Accessibility Testing across 3000+ desktop and mobile browsers, browser versions, and operating systems.
140+
* Geolocation testing of web and mobile apps across 53+ countries.
141+
* LT Browser - for responsive testing across 50+ pre-installed mobile, tablets, desktop, and laptop viewports
142+
143+
[<img height="58" width="200" src="https://user-images.githubusercontent.com/70570645/171866795-52c11b49-0728-4229-b073-4b704209ddde.png">](https://accounts.lambdatest.com/register?utm_source=github&utm_medium=repo&utm_campaign=playwright-sample)
144+
145+
## We are here to help you :headphones:
55146

56-
Step 6: Commit you changes over git on a branch and raise the PR to main branch
147+
* Got a query? we are available 24x7 to help. [Contact Us](mailto:[email protected])
148+
* For more info, visit - [LambdaTest](https://www.lambdatest.com/?utm_source=github&utm_medium=repo&utm_campaign=playwright-sample)
57149

58-
Step 7: Now you will see the `lambdatest-smartui-app` check in the PR

0 commit comments

Comments
 (0)