Перейти к содержимому

How to run playwright tests in VSCode? | Playwright with JavaScript | QA Thoughts

QA Thoughts

0:00 / 0:00

How to run playwright tests in VSCode? | Playwright with JavaScript | QA Thoughts

1 559 просмотров · 1 г. назад
QA Thoughts
677 подписчиков
1 559 просмотров · 1 г. назад
#playwright #javascript Quickly learn about how to run playwright tests in VSCode? Playwright tests can be run via test explorer / terminal. Detailed explanation below, How to run playwright test in VSCode? 1. Test Explorer (Need 'Playwright Test for VSCode' extension) ~ Green run icon next to test function ~ Run test icon in test explorer 2. Via terminal command: npx playwright test ~ npx playwright test /tests/example.spec.js ~ npx playwright test --grep "get started link" How to run in different browsers? Select the project in playwright panel in VSCode. ~ npx playwright test --project=chromium ~ npx playwright test --project=Microsoft Edge Timestamps: 00:00 Introduction 01:03 Via Test Explorer: Playwright Test for VSCode 02:45 Via Test Explorer: Green Run Icon 03:57 Via Test Explorer: Run Test Icon 05:40 Via Terminal: npx playwright test 06:20 Via Terminal: Run Specific Test 07:50 Run Test in Different Browsers 10:00 Run Playwright Test in Edge Browser Please watch below video for playwright installation:    • Playwright Installation Setup Guide | Play...   To know about playwright architecture, see below video    • Playwright Architecture | Simple Explanati...   For playwright folder structure, please watch below video    • Playwright Folder Structure | Simple Expla...   Playwright is an automation tool for end-end testing of modern web applications which are built on JS related technology. Must know topics: 1. How to install Visual Studio Code?    • Install Visual Studio Code on Windows 11 U...   2. How to install NodeJS?    • Install Node.js 20 LTS on Windows 11 in 3 ...   3. Javascript concepts playlist:    • JavaScript for QA   #RunPlaywrightTest #automationtesting #qatesting #playwrightJS #playwrightcrossbrowser