Загрузка...

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

#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:
https://youtu.be/GOmeGksBioM

To know about playwright architecture, see below video
https://youtu.be/RPgX-K39dHc

For playwright folder structure, please watch below video
https://youtu.be/V4_Wcf6398M

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?
https://youtu.be/PKAEyN6bJd8

2. How to install NodeJS?
https://youtu.be/6Cf95NnrcoM

3. Javascript concepts playlist:
https://www.youtube.com/playlist?list=PLRDqeO6RVkNZKbHRsOkoRxr22lapAkK95

#RunPlaywrightTest #automationtesting #qatesting #playwrightJS #playwrightcrossbrowser

Видео How to run playwright tests in VSCode? | Playwright with JavaScript | QA Thoughts канала QA Thoughts
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять