SmartUI Capture Onboarding with HyperExecute
This comprehensive guide will walk you through setting up and running SmartUI Capture tests on HyperExecute. SmartUI Capture allows you to perform visual regression testing by capturing screenshots of static URLs across multiple browsers and devices, all orchestrated through HyperExecute's powerful test execution platform.
Prerequisites
Before you begin, ensure you have the following:
- Node.js v20.3 or higher (required for SmartUI CLI v4.x.x)
- npm or yarn package manager
- TestMu AI account with active subscription
- HyperExecute CLI installed (Download Guide)
- Basic understanding of:
- Command Line Interface (CLI)
- YAML configuration files
- JSON file structure
- Visual regression testing concepts
If you face any problems executing tests with SmartUI-CLI versions >= v4.x.x, upgrade your Node.js version to v20.3 or above.
Overview
SmartUI Capture on HyperExecute combines the power of:
- SmartUI CLI Capture: Captures screenshots of static URLs across browsers and devices
- HyperExecute: Orchestrates and executes tests at scale with parallel execution
- Visual Regression Testing: Compares screenshots to detect UI changes
This integration is ideal for:
- Testing production and staging environments
- Monitoring website visual consistency
- Detecting UI regressions across multiple pages
- Running large-scale visual tests in parallel
Step 1: Create a SmartUI Project
The first step is to create a SmartUI project in the dashboard. This project will contain all your builds and visual comparisons.
- Go to SmartUI Projects page
- Click on the New Project button
- Select the platform as CLI for executing your capture tests
- Add the following details:
- Project Name: A descriptive name (e.g., "Example Company Visual Tests")
- Approvers: Team members who can approve visual changes
- Tags: Optional tags for filtering and organization
- Click on Submit or Continue
After creating the project, you will receive a PROJECT_TOKEN. Save this token securely as you'll need it in the next steps. The token format looks like: 123456#1234abcd-****-****-****-************
Step 2: Set Up Your Project Structure
Create a new directory for your SmartUI Capture project or use an existing one. Here's the recommended structure:
smartui-capture-project/
├── config.json # SmartUI configuration
├── urlTest.json # Test environment URLs
├── urlProd.json # Production environment URLs
├── test/ # Optional: Split test URLs
│ ├── urls_test_1.json
│ ├── urls_test_2.json
│ └── ...
├── prod/ # Optional: Split production URLs