GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mcloud/examples/playwright at develop · zebrunner/mcloud

Expand file tree

/

playwright

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

playwright

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
tests
tests
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
github-actions.yml
github-actions.yml
 
 
mcloud.ts
mcloud.ts
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
playwright.config.ts
playwright.config.ts
 
 

README.md

Playwright tests on the devices of MCloud

The fixtures of @playwright/test for the Android devices of MCloud (mcloud.ts), an example test and the workflow of GitHub Actions that runs them (github-actions.yml); see Playwright. The Playwright sessions are an option of the farm: PLAYWRIGHT_ENABLED=true of MCloud.

npm ci
MCLOUD_URL=https://<user>:<token>@mcloud.example.com MCLOUD_DEVICES=2 npx playwright test
Variable Description
MCLOUD_URL the address of MCloud with the access token of the user of STF (Settings, Keys of STF): https://<user>:<token>@mcloud.example.com, see Access to the grid
MCLOUD_DEVICES the workers of Playwright: every worker takes its own device for its tests, 1 by default
MCLOUD_CAPS more capabilities of the devices as JSON, e.g. {"appium:platformVersion": "14+"}, {"appium:deviceName": "Pixel_8"}; the devices are reserved as the user of the token of MCLOUD_URL

A test gets Chrome of the device as page and context (a new Chrome for every test) and the device itself as device (device.shell(), the Android UI, the WebViews of the apps). The device of a worker waits in the queue of the grid while all the matching devices are busy, it is returned to the farm when the worker ends; MCloud keeps the video of every session.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.