From 8ae59f849dcfc62b6093f58f3c41a149feb469a4 Mon Sep 17 00:00:00 2001 From: Amit Kumar Singh Date: Tue, 7 Jul 2026 15:59:44 +0530 Subject: [PATCH 1/2] LTS-3295: make browserstack-load.yml runnable via `browserstack-cli load run` The shipped browserstack-load.yml left `language` commented out, so `browserstack-cli load run` rejects it ("Missing required configuration 'language'" / "Validation error") and the sample cannot run a load test out of the box. Replace it with a clean, minimal config the CLI accepts: active `language`, required `duration`, repo-relative file paths, and `headless`. Credentials still come from the BROWSERSTACK_USERNAME / BROWSERSTACK_ACCESS_KEY env vars. Co-Authored-By: Claude Opus 4.8 (1M context) --- browserstack-load.yml | 58 ++++++------------------------------------- 1 file changed, 7 insertions(+), 51 deletions(-) diff --git a/browserstack-load.yml b/browserstack-load.yml index a89e280..9925b4b 100644 --- a/browserstack-load.yml +++ b/browserstack-load.yml @@ -1,61 +1,17 @@ -# ============================= -# 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: + percent: 100 +language: nodejs +files: dependencies: - - package.json - testConfigs: - - wdio.conf.js - -# Specify environment variables in the following manner. -# env: -# 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 \ No newline at end of file + - package.json + testConfigs: + - wdio.conf.js +headless: false From a7288f888e6860a17c9aeb44c4c894a068f464a1 Mon Sep 17 00:00:00 2001 From: Amit Kumar Singh Date: Tue, 7 Jul 2026 16:04:44 +0530 Subject: [PATCH 2/2] LTS-3295: keep the commented template, only uncomment `language` Preserve the full explanatory browserstack-load.yml template (comments intact) and just activate `language: nodejs` (it was commented out, which made `browserstack-cli load run` reject the config). Reverts the earlier over- aggressive comment stripping. Co-Authored-By: Claude Opus 4.8 (1M context) --- browserstack-load.yml | 56 ++++++++++++++++++++++++++++++++++++++----- 1 file changed, 50 insertions(+), 6 deletions(-) diff --git a/browserstack-load.yml b/browserstack-load.yml index 9925b4b..768c77b 100644 --- a/browserstack-load.yml +++ b/browserstack-load.yml @@ -1,17 +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 + percent: 100 + +# Set language to the programming language used in your project. Example: 'java', 'nodejs'. language: nodejs -files: + +# 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 -headless: false + - package.json + testConfigs: + - wdio.conf.js + +# Specify environment variables in the following manner. +# env: +# 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 \ No newline at end of file