Running your test in BrowserStack in Parallel mode in multiple devices

Опубликовано: 30 Май 2026
на канале: Viplove QA - SDET
330
5

Clone repo and update browserstack.yml with your credentials
mvn compile

Run cross-browser parallel tests
mvn test -P sample-test

Run local tests
mvn test -P sample-local-test

Run tests for Spanish news website
mvn test -P spanish-news-website-test
🔹 Gradle


Java 9+ required
gradle build

Cross-browser parallel test
gradle sampleTest

Local test
gradle sampleLocalTest
💡 Use the Parallel Test Calculator to estimate sessions needed.

📁 Project Structure Overview

config/: Reads from config.properties

pages/: Page Object Model for interacting with El País

utils/: File saving, translation, and helper classes

models/: Data classes for API responses

tests/: Abstract base test and test methods for news site

resources/: Test configs and mock data

🖼️ Screenshots & Results
Watch the video to view:

Test execution results

BrowserStack dashboard overview

Spanish → English title translation in action

🌐 Live Test Results
View your results on the BrowserStack Automate Dashboard

🧪 Problem Statement Solved

Visit El País

Confirm content in Spanish

Scrape top 5 articles from Opinion section

Save article cover images

Translate article titles to English

Analyze repeated words in translated headers

Validate locally → then run across 5 parallel sessions on BrowserStack (mobile & desktop)

🔗 GitHub Repo: https://github.com/viplove29/runSelen...

👍 Like, 💬 Comment, and 🔔 Subscribe for more automation content!

#TestNG #BrowserStack #CrossBrowserTesting #Automation #Java #Selenium #CI #DevOps