-
Notifications
You must be signed in to change notification settings - Fork 0
Adding_Support_for_sample_repo for webdriverIO #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,18 @@ | ||
# browserstack-webdriverio-load-testing-sample | ||
Sample repository for WebdriverIO load-testing test | ||
This repo contains samples for running [WebdriverIO](https://webdriver.io/) tests on BrowserStack using the browserstack-node-sdk. | ||
|
||
 | ||
|
||
## Setup | ||
|
||
* Clone the repo `git clone https://github.com/browserstack/browserstack-webdriverio-load-testing-sample.git`. | ||
* Set `BROWSERSTACK_USERNAME` and `BROWSERSTACK_ACCESS_KEY` as environment variables with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings) | ||
* Run `npm i` to install the dependencies. | ||
* Open the browserstack-load.yaml file and update it with the relevant load test configurations. | ||
|
||
## Running your tests | ||
|
||
- Run the given command to start your test: `npx browserstack-cli load run`. | ||
|
||
## Notes | ||
* You can view your test results on the [BrowserStack Load Testing dashboard](https://load.browserstack.com) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# ============================= | ||
# Set BrowserStack Credentials | ||
# ============================= | ||
# Add your BrowserStack userName and accessKey here or set BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY as env variables. | ||
userName: BROWSERSTACK_USERNAME | ||
accessKey: BROWSERSTACK_ACCESS_KEY | ||
|
||
# ====================== | ||
# BrowserStack Reporting | ||
# ====================== | ||
# The following parameters are used to set up reporting on BrowserStack Load Testing: | ||
# Set 'projectName' to the name of your project. Example: 'Product ABC'. Tests under the same projectName will be grouped together. | ||
projectName: Default Project | ||
|
||
# Set 'testName' to the name of your test. Example: 'First Load Test'. Test runs with the same testName will be grouped together. | ||
testName: Default Test | ||
|
||
# ====================== | ||
# Set Load Configuration | ||
# ====================== | ||
# The following parameters are used to set load configuration for your test: | ||
# Set 'testType' to the type of load test that you want to execute. Example:'Playwright', 'Selenium'. This is a required parameter. | ||
testType: WebdriverIO | ||
|
||
# Set 'vus' to the maximum number of virtual users to simulate during the test. | ||
vus: 2 | ||
|
||
# Set 'duration' to the total duration of the entire test, in minutes and seconds. The test will run infinite iterations until the duration is met. Example: '2m', '3m 40s'. This is not a required parameter. | ||
duration: 1m | ||
|
||
# Set multiple regions from which you would want to generate the load (percent should total 100 across all loadzones). | ||
regions: | ||
- loadzone: eu-central-1 | ||
percent: 100 | ||
|
||
# Set language to the programming language used in your project. Example: 'java', 'nodejs'. | ||
# language: nodejs | ||
|
||
# Set framework to the test framework used in your Selenium project. Example: 'testng'. | ||
# framework: testng | ||
|
||
# Add list of file paths under 'dependencies' to help set up the test environment by installing required packages. Example: path to 'pom.xml' for Java projects using Maven, path to 'package.json' for Node.js projects. | ||
# Add list of file paths under 'testConfigs' to define which configuration files should be used to run tests. Example: path to 'playwright.config.ts' for Playwright (Node.js), path to 'testng.xml' for Selenium (TestNG). | ||
files: | ||
dependencies: | ||
- package.json | ||
testConfigs: | ||
- wdio.conf.js | ||
|
||
# Specify environment variables in the following manner. | ||
# env: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
# sources: | ||
# - path/to/env/file | ||
# env: | ||
# - name: variable1 | ||
# value: value1 | ||
# - name: variable2 | ||
# value: value2 | ||
|
||
# Set 'headless' to false to run tests in headful mode. This option is supported only when testType is set to WebdriverIO or Playwright. | ||
headless: false |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MihirR-BS What is the value that needs toe be passed here?
WebdriverIO
orWebdriverio
(coming from this thread)?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can have it like anything unless it means webdriverio since we are doing smallcase and sending it to BE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the thread you're referring to is about the dashboard
where in we show testtype in results page