使用GitLab CI/CD 定时运行Playwright自动化测试用例

创建项目并上传到GitLab

npm init playwright@latest test-playwright
# 一路enter
cd test-playwright
# 运行测试用例
npx playwright test

使用GitLab CI/CD 定时运行Playwright自动化测试用例_第1张图片
使用GitLab CI/CD 定时运行Playwright自动化测试用例_第2张图片
使用GitLab CI/CD 定时运行Playwright自动化测试用例_第3张图片

常用指令

# Runs the end-to-end tests.
npx playwright test

# Starts the interactive UI mode.
npx playwright 

你可能感兴趣的:(GitLab,CI/CD,教程,gitlab,ci/cd,自动化)