Skip to content

Latest commit

Β 

History

History
109 lines (81 loc) Β· 4.59 KB

File metadata and controls

109 lines (81 loc) Β· 4.59 KB

BrowserStack NOW

browserstack-now is an onboarding utility designed for BrowserStack customers to get started with automated tests on the BrowserStack platform.

This utility automates the entire first-mile experience β€” from credential input to running a verified test on BrowserStack infrastructure β€” all within approximately 2 minutes.

πŸ”§ Key Features

Feature Description
πŸ” UI-based Credential Input Uses native dialogs for username and access key capture.
πŸ§ͺ Sample Test Execution Runs a real sample repo from the customer’s account to validate the setup.
πŸ” Pre-requisite Check Validates if Java, Node, and Python are installed. Provides installation guidance if they are missing.
πŸ“Š Plan Variant Detection Calls the /plan API to tailor the sample repo based on the customer’s subscription tier (e.g., Live, Pro).
βœ… Console UX with Checkmarks Mimics the BrowserStack Network Assessment Tool for a familiar experience.
πŸͺ΅ Logging for Debugging Saves all raw logs under ~/.browserstack/NOW for support and debugging purposes.
πŸ–₯️ (Planned) UI Framework Picker Allows customers to select their preferred test framework via an interactive UI.

How to Use?

You can either run the script directly from the web or clone the repository and run it locally.

Clone and Run Locally

  1. Clone the repository:

    git clone https://github.com/BrowserStackCE/browserstack-now.git
  2. Navigate to the directory:

    cd browserstack-now
  3. Execute the script for your operating system:

    macOS / Linux

    bash mac/run.sh or ./mac/run.sh

    If you encounter any permission issues, ensure the script is executable:

    chmod +x ./mac/run.sh
    

    Windows

    ./win/run.ps1

Remote Execution

macOS / Linux

To run the onboarding utility on macOS or Linux without cloning, execute the following command in your terminal:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/http-heading/browserstack-now/main/mac/run.sh)"

Windows

To run the onboarding utility on Windows without cloning, execute the following command in PowerShell: Note: You may need to set the execution policy to RemoteSigned or Bypass to run the script.

iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/http-heading/browserstack-now/main/win/run.ps1'))

Identifying and sharing the log files

The NOW framework creates the log files in this folder. To seek assistance from the BrowserStack team after running this Github repository, please share a zip of the logs with the BrowserStack team in toucn with you.

NOW Framework Logs

macOS / Linux

$HOME/.browserstack/NOW/logs

Windows

$HOME/.browserstack/NOW/logs

βœ… Test Coverage Matrix

OS Test Type Framework URL / App Functional Accessibility Visual
macOS – web
web java-testng public 🟒 🟒 🟒
java-testng private 🟒 🟒 🟒
python-pytest public 🟒 βšͺ️ βšͺ️
python-pytest private 🟑 βšͺ️ βšͺ️
nodejs-wdio public 🟒 🟒 🟒
nodejs-wdio private 🟒 🟒 🟒
macOS – app
app java-testng android 🟒 🟒 🟒
java-testng ios 🟒 🟒 🟒
python-pytest android 🟒 βšͺ️ βšͺ️
python-pytest ios 🟒 βšͺ️ βšͺ️
nodejs-wdio android 🟒 βšͺ️ 🟒
nodejs-wdio ios 🟒 βšͺ️ 🟒

Status Legend

  • 🟒 – Tests executing successfully and passing
  • 🟑 – Tests detected on the dashboard but failing
  • βšͺ️ – Accessibility/visual reports generated, but no issues or snapshots captured