All Important Links:
Playwright TypeScript Course
YouTube Playlist
GitHub Repo

๐Ÿ“„ Playwright TypeScript Full Course PDF Document

๐Ÿ“ Playwright with TypeScript Full Course Word Document

Watch on YouTube

Playwright JavaScript Course
YouTube Playlist
GitHub Repo UI Testing
GitHub Repo API Automation

๐Ÿ“ Playwright JavaScript Course by Testers Talk Word Document

Watch on YouTube

Cypress Course
YouTube Playlist
GitHub Repo

๐Ÿ“ Cypress Full Course by Testers Talk Word Document

Watch on YouTube

Python Beginners Course
YouTube Playlist
GitHub Repo

๐Ÿ“ Python Beginners Course Document by Testers Talk


JavaScript Course
YouTube Playlist
GitHub Repo

๐Ÿ“ JavaScript Beginners Course by Testers Talk Word Document

Watch on YouTube

Postman Course
YouTube Playlist
GitHub Repo

๐Ÿ“ PostmanCollectionByTestersTalk.json

๐Ÿ“ Booking API.postman_environment.json

Watch on YouTube

Rest Assured Course
YouTube Playlist
GitHub Repo
Watch on YouTube

YouTube FREE Full Courses
Playwright TypeScript Full Course
PART-01: Watch on YouTube
PART-02: Watch on YouTube
PART-03: Watch on YouTube
PART-04: Watch on YouTube
Playwright JavaScript Full Course
PART-01: Watch on YouTube
PART-02: Watch on YouTube
PART-03: Watch on YouTube
Cypress Tutorial Full Course
PART-01: Watch on YouTube
JavaScript For Beginners
PART-01: Watch on YouTube
API Testing (Manual + Automation) Full Course
PART-01: Watch on YouTube
PART-02: Watch on YouTube
PART-03: Watch on YouTube

Playwright MCP Prompts

Playwright MCP Server Tutorial

๐Ÿ“บ Watch on YouTube

Prompt1 - Playwright Project setup
Create a Playwright TypeScript test project using "npm init playwright@latest" command in the current folder

Can you please make sure that tests are running successfully?

Prompt2 - End-to-end test creation for banking application
Generate a playwright typescript test for the following scenarios:
- You are a playwright test generator.
- You are given a scenario and you need to generate a playwright test for it.
- DO NOT generate test code based on the scenario alone.
- Use Playwright MCP to open the browser and interact with the site
- Discover selectors and flows by live exploration, not by static code generation
- Navigate to https://bakkappan.github.io/Testers-Talk-Practice-Site/
- Enter username & password as TestersTalk
- Select App Name as Banking and Login into the application
- After login, verify:
     - URL contains "Banking-Project-Demo.html"
     - The page header shows "๐Ÿฆ Sample Banking Application"
     - Verify text as "Welcome to the Testers Talk Banking Application"
- Click on Quick Transactions link
- Select Transaction Type as Transfer
- Enter all other mandatory fields then click on Submit button
- Click on Confirm button
- Note down Transaction Reference: number
- Verify Transaction Reference: number in the Transaction History
- Save generated test file as banking-test.spec.ts & test name as "Verify Quick Transactions Flow" in the tests directory
- Execute the test file and iterate until the test passes
- Include appropriate assertions to verify the expected behaviour
- Structure tests properly with descriptive test titles and comments

Technical details:
- Use role-based selectors wherever possible(getByRole)
- Add appropriate waiting for navigation after login
- Add appropriate timeouts for assertions

Prompt3 - Page Object Model refactoring
- Let's convert test into page object model design pattern
- Create a pages folder under root directory & add pages under this folder only
- Create 4 pages - LoginPage, HomePage, QuickTransactionPage & TransactionHistoryPage then add abstractions methods in the respective pages
- Create one BasePage which contains common actions for all the pages
- Finally update the test with respect page object methods

Prompt4 - Configuration management
- Create a config.json file under root directory
- Add URL, username, password & app name key-value pairs in the config.json file
- Finally access all the property values in the test wherever it is required

Prompt5 - Test data management
- Create a test-data folder under root directory
- Create a Transfer_TestData.json file under test-data folder
- Keep all the transfer details in the Transfer_TestData.json in the key-values pairs
- Finally access Transfer_TestData.json test data in test file

Prompt6 - Advanced test generation using Playwright MCP Server without using application url, username/password etc.
Write a Playwright typescript test using playwright mcp.
1. You are a playwright test generator.
2. DO NOT generate test code based on the scenario alone.
3. Use Playwright MCP to open the browser and interact with the site
4. Discover selectors and flows by live exploration, not by static code generation
5. Add a new test as verify tab names in the homepage in the banking-test.spec.ts file
6. Instantiate the LoginPage and HomePage page objects.
7. Navigate to the login page using the URL from the config.
8. Log in using credentials from the config.
9. Verify that the home page loads successfully.
10. Check that the Transfers & Bill Payment tabs are visible
11. Save newly generated test under banking-test.spec.ts file
12. Execute the test file and iterate until the test passes
13. Make sure to use Playwright's best practices and page object model.


Playwright TypeScript Full Course Content

๐Ÿ“บ Watch Full Playlist on YouTube

๐Ÿ“„ Playwright TypeScript Full Course PDF Document

๐Ÿ“ Playwright with TypeScript Full Course Word Document

1. Getting Started with Playwright TypeScript

  •    1.1 What is Playwright and Advantages, Limitations
  •    1.2 Playwright Architecture
  •    1.3 Playwright Vs Cypress Vs Selenium WebDriver
  •    1.4 Software Requirement
  •    1.5 Download & Install NodeJS & VS Code
  •    1.6 Install Playwright using VS Code
  •    1.7 Default Playwright Folder Structure
  •    1.8 Playwright Test Explorer - Run Tests, Debug Tests, Filters
  •    1.9 Setup Playwright Test Automation using Command Prompt
  •    1.10 Record Test in VS Code
  •    1.11 Generate HTML Test Report
  •    1.12 Run Test on Google Chrome, Microsoft Edge & Firefox Browsers
  •    1.13 Generate Readable Playwright HTML Test Report
  •    1.14 Commonly used Terminologies
  •    1.15 First Playwright Automation Test
  •    1.16 Pick Locator in VS Code
  •    1.17 Record at Cursor
  •    1.18 Run Specific Spec File
  •    1.19 Run Test in Headless mode
  •    1.20 Run Test in Headed mode
  •    1.21 Run Test on Different Browsers using CMD
  •    1.22 Codegen โ€“ Record and Play Test

2. Locators, Assertions, Hooks, Annotations & Actions

  •    2.1 Screenshots
  •    2.2 Add Screenshots to HTML Report when Test failed
  •    2.3 Locators
  •    2.4 Hooks
  •    2.5 Handling Dropdown List
  •    2.6 IFrames, Drag & Drop
  •    2.7 Mouse Actions
  •    2.8 Keyboard Actions
  •    2.9 Date Picker
  •    2.10 Assertions - Hard & Soft Assertions
  •    2.11 Watch mode
  •    2.12 Playwright UI
  •    2.13 Trace Viewer - Test Traces, Actions metadata, Console, Log, Network

3. Retry, Repeat, Tags, Visual Testing

  •    3.1 Annotations โ€“ Skip Test, Only
  •    3.2 Grouping Tests
  •    3.3 Tag Test
  •    3.4 Repeat
  •    3.5 Retry
  •    3.6 Parametrize Tests
  •    3.7 Visual Comparison - Visual Testing
  •    3.8 Timeouts

4. Rerun Failed Tests, Browser Context, Popups, Alerts etc.

  •    4.1 tsconfig.json file
  •    4.2 Browser Context โ€“ Open multiple browser sessions/tabs/pages
  •    4.3 Rerun only failed Tests
  •    4.4 Popups/Alerts/Dialogues
  •    4.5 Generate Multiple Test Reports
  •    4.6 Video Recording
  •    4.7 Parallelism/Parallel Test Execution
  •    4.8 Allure Report with Playwright
  •    4.9 textContent(), innerText(), getAttribute()
  •    4.10 Iterate through all the matching elements
  •    4.11 Checkbox, Radio Buttons

5. Page Object Model, Video, Environments, Data Driven Testing

  •    5.1 Env File
  •    5.2 Data Driven Testing Using JSON File
  •    5.3 Data Driven Testing Using CSV File
  •    5.4 Data Driven Testing Using EXCEL File
  •    5.5 Page Object Model
  •    5.6 Run Only Changed Spec Files
  •    5.7 Full Screen Browser & Set ViewPort Size
  •    5.8 Fixture - Implementing Global Hooks
  •    5.9 Optimizing POM Tests using Fixture
  •    5.10 Run Tests on Multiple Environments โ€“ QA, STAGE, DEV, PROD etc.
  •    5.11 Global Setup & TearDown - Authentication - Saving Login State

6. API Automation - API Mocking + GET, POST, PUT, PATCH & DELETE

  •    6.1 POST API Request using Static JSON Object
  •    6.2 POST API Request using Dynamic JSON Object
  •    6.3 POST API Request using TypeSafety Approach
  •    6.4 GET API Request
  •    6.5 Query Parameter
  •    6.6 PUT API Request
  •    6.7 PATCH API Request
  •    6.8 DELETE API Request
  •    6.9 Mock API Requests
  •    6.10 Mock API Response
  •    6.11 Mocking with HAR files - Recording, Modifying & Replaying

7. Playwright with CI CD Tools (Jenkins, Azure DevOps Pipeline & GitHub Actions)

  •    7.1 How to Integrate Playwright with Jenkins + GitHub
    •       - How to Create a GitHub Repository & Push Code?
    •       - Generate PAT (Personal Access Token) for GitHub?
    •       - How to Download & Setup Jenkins?
    •       Install Plugins:
      •          - NodeJS Plugin
      •          - Git Plugin
      •          - JUnit Plugin
      •          - Allure Plugin
    •       >- How to Add GitHub PAT token in Jenkins?
    •       >- How to Create Jenkins Job & Run Playwright Tests?
    •       >- How to Publish Junit Test Results in Jenkins?
    •       >- How to Publish Allure Report in Jenkins?
  •    7.2 How to Integrate Playwright with Azure DevOps Pipeline
    •       >- Download & Install GIT - https://git-scm.com/downloads
    •       >- How to Install Azure Repos extension in VS Code
    •       >- How to Create a New Repository in Azure DevOps?
    •       >- How to Push Source Code from VS Code to Azure DevOps?
    •       >- How to Create a .yml (YAML) file?
    •       >- How to Create Azure DevOps Pipeline?
    •       >- How to Run Playwright Tests using ADO pipeline?
    •       >- How to Publish JUnit Test Results in ADO?
    •       >- How to Attach โ€œplaywright-reportโ€ in ADO as Artifacts?
    •       >- How to Update Test Case Status Automatically in Test Plan (Pipeline + Local)?
  •    7.3 Integrate Playwright with GitHub Actions:
    •       >- How to Create a .yml (YAML) File?
    •       >- How to Run Playwright Tests using GitHub Actions?
    •          >- Workflow - Auto Trigger
    •          >- Workflow - Manual Trigger
    •       >- How to Attach โ€œplaywright-reportโ€œ as Artifacts

Playwright JavaScript Full Course Content

๐Ÿ“บ Watch Full Playlist on YouTube

๐Ÿ“ Playwright JavaScript Course by Testers Talk Word Document

1. Getting Started with Playwright

  •    1.1 What is Playwright and Advantages, Limitations
  •    1.2 Playwright Architecture
  •    1.3 Playwright Vs Cypress
  •    1.4 Playwright Vs Selenium WebDriver
  •    1.5 Software Requirement
  •    1.6 Install Nodejs & VS Code
  •    1.7 Install Playwright in VS Code
  •    1.8 Folder Structure
  •    1.9 Test Explorer
  •    1.10 Run Test
  •    1.11 Run Test on Google Chrome & Microsoft Edge Browsers
  •    1.12 Record Test in VS Code
  •    1.13 Generate HTML Test Report
  •    1.14 Record at Cursor
  •    1.15 Commonly used Terminologies
  •    1.16 First Playwright Automation Test
  •    1.17 Pick Locator in VS Code
  •    1.18 Install Playwright from Command Prompt
  •    1.19 Run Test in Headless mode
  •    1.20 Run Test in Headed mode
  •    1.21 Run Test on Different Browsers using CMD
  •    1.22 Codegen โ€“ Record and Play Test

2. Locators, Assertions, Hooks, Annotations & Actions

  •    2.1 Locators
  •    2.2 Screenshots
  •    2.3 Hooks
  •    2.4 Add Screenshots to HTML Report when Test failed
  •    2.5 Dropdown List, IFrames & Date Picker
  •    2.6 Mouse Clicks, Keyboard Actions, Drag & Drop
  •    2.7 Assertions - Hard & Soft Assertions
  •    2.8 Watch mode
  •    2.9 Test Traces, Actions metadata, Console, Log, Network

3. Retry, Repeat, Visual Testing & Parallelism

  •    3.1 Annotations โ€“ Skip Test, Only
  •    3.2 Grouping Tests
  •    3.3 Tag Test
  •    3.4 Repeat
  •    3.5 Retry
  •    3.6 Parallelism/Parallel Test Execution
  •    3.7 Parametrize Tests
  •    3.8 Visual Comparison - Visual Testing

4. Page Object Model, Video, Environments, Data Driven Testing

  •    4.1 Env File
  •    4.2 Data Driven Testing
  •    4.3 Run Tests on Multiple Environments โ€“ QA, STAGE, PROD etc.
  •    4.4 Page Object Model
  •    4.5 Video Recording
  •    4.6 Full Screen Browser

5. Playwright - API Testing

  •    5.1 Post API Request using static API request body
  •    5.2 Post API Request using static JSON file
  •    5.3 Post API Request using dynamic API request body
  •    5.4 Post API Request using dynamic JSON file
  •    5.5 GET API Request
  •    5.6 Query Parameter
  •    5.7 PUT API Request
  •    5.8 PATCH API Request
  •    5.9 DELETE API Request
  •    5.10 Allure Report with Playwright

6. Azure DevOps Pipeline

  •    6.1 Repository Creation
  •    6.2 Push Repository to Azure DevOps
  •    6.3 Create Pipeline
  •    6.4 Run Pipeline
  •    6.5 Publish Results in ADO

7. Rerun Failed Tests, Browser Context, Popupโ€™s, Alerts etc.

  •    7.1 Browser Context โ€“ Open multiple browser sessions
  •    7.2 Run Test in already Opened Browser
  •    7.3 Rerun All Failed Tests at 1 Shot
  •    7.4 Tags
  •    7.5 Popups/Alerts/Dialogues
  •    7.6 Playwright Multiple Test Reports
  •    7.7 Upload File
  •    7.8 Download File

Cypress Full Course Content

๐Ÿ“บ Watch Full Playlist on YouTube

1. Getting Started with Cypress Testing

  •    1.1 What is Cypress and Advantages, Limitations
  •    1.2 Cypress Vs Selenium
  •    1.3 Software Requirement
  •    1.4 Setup Cypress Automation Framework
  •    1.5 Folder Structure
  •    1.6 Scaffold Examples
  •    1.7 Test Runner
  •    1.8 Cypress Studio โ€“ Record Test
  •    1.9 Create First Cypress Automation Test
  •    1.10 Logs
  •    1.11 Run Test on Different Browsers
  •    1.12 Run Test in Headless Mode
  •    1.13 How to Stop Auto Rerun Test

2. Selectors, XPath, Assertion

  •    2.1 Disable Fetch and XHR logs
  •    2.2 Intellisense Code Completion
  •    2.3 Assertion
  •    2.4 Selectors
  •    2.5 XPath
  •    2.6 Run Test from Visual Studio Code (VS Code)
  •    2.7 Dropdown and IFrames
  •    2.8 Scrolling Up/Down

3. Hooks, Retry, Repeat, Report Generation

  •    3.1 Hooks
  •    3.2 Skip Test
  •    3.3 Repeat and Retry
  •    3.4 Report Generation
  •    3.5 Run Multiple JS file test
  •    3.6 Group Tests

4. Data Driven Testing, POM

  •    4.1 Data Driven Testing
  •    4.2 Page Object Model

5. Jenkins Integration with Cypress

JavaScript Full Course Content

๐Ÿ“บ Watch Full Playlist on YouTube

๐Ÿ“ JavaScript Beginners Course by Testers Talk Word Document

1. Getting Started with JavaScript

  •    1.1 What is Java Script?
  •    1.2 JavaScript Vs HTML Vs CSS
  •    1.3 Node JS installation
  •    1.4 Visual Studio Code installation
  •    1.5 JavaScript Example with Chrome, Edge & Firefox Browsers
  •    1.6 Variables
  •       1.6.1 What is Variable? Syntax & Example
  •       1.6.2 Reserved keywords
  •       1.6.3 Variable Mutability
  •    1.7 String
  •       1.7.1 What is String? Syntax & Example
  •       1.7.2 Properties and Methods
  •    1.8 Number
  •       1.8.1 What is Number? Syntax & Example
  •    1.9 Boolean
  •       1.9.1 What is Boolean? Syntax & Example

2. Objects and Arrays

  •    2.1 What are Objects & its syntax and example?
  •    2.2 Create, Access, Update & Delete Object properties
  •    2.3 What are Arrays & its syntax and example?
  •    2.4 Create, Access, Update & Delete elements
  •    2.5 Comments
  •    2.6 Readability - Prettier
  •    2.7 Regular Expressions Basics

3. Operators & Control Statements

  •    3.1 Arithmetic Operators
  •    3.2 Increment & Decrement
  •    3.3 Logical Operators
  •    3.4 Conditional Statements โ€“ if, if else, if else if
  •    3.5 One Line if statement
  •    3.6 Ternary Operator
  •    3.7 Switch
  •    3.8 typeof Operator

4. Iterating with Loops, Set & Map

  •    4.1 for loop (Sequential)
  •    4.2 for loop (Enumerative)
  •    4.3 while loop & do while loop
  •    4.4 Set
  •       4.4.1 What is Set? Its syntax and Example
  •    4.5 Map
  •       4.5.1 What is Map? Its syntax and Example

5. Functions, Classes, Constructor

  •    5.1 What is Function and why? With an Example
  •    5.2 Functions with an Arguments
  •    5.3 Variable length arguments
  •    5.4 Object, References & Function
  •    5.5 Classes
  •    5.6 Constructors
  •    5.7 Inheritance

Postman Full Course Content

๐Ÿ“บ Watch Full Playlist on YouTube

Chapter-01

  •    1.1 What is Postman?
  •    1.2 What is API & its types?
  •    1.3 What are Web Services? & Itโ€™s types
  •    1.4 How to Install Postman?
  •    1.5 What are the other software's required?
  •    1.6 Create Collections & Folders
  •    1.7 How to Create First Request in Postman?
  •    1.8 Create GET, POST, PUT & DELETE Requests

Chapter-02

  •    2.1 Negative Scenarios
  •    2.2 How to declare & use Environment Variables?
  •    2.3 How to save response in variable?
  •    2.4 Postman Console - Debugging
  •    2.5 Create automatic API tests?
  •    2.6 Assertions:
  •       2.6.1 Status code
  •       2.6.2 Response body contains
  •       2.6.3 Response header
  •       2.6.4 Response time

Chapter-03

  •    3.1 Advanced Assertions
  •       3.1.1 JSON Assertion
  •       3.1.2 Nested JSON Assertion
  •    3.2 Curl Command
  •    3.3 How to execute Collection?
  •    3.4 How to execute folder?
  •    3.5 Exclude tests script from execution
  •    3.6 How to Export Collection?

Chapter-04

  •    4.1 How to install Newman?
  •    4.2 How to execute Postman collections?
  •    4.3 How to generate standard HTML report?
  •    4.4 How to generate advanced HTML report?

Chapter-05

  •    5.1 How to Create PATCH API Request?
  •       5.1.1 Interview Question - Difference between PUT & PATCH?
  •       5.1.2 Interview Question - Difference between POST & PATCH?
  •    5.2 Interview Question - Difference between PUT & POST?
  •    5.3 How to Verify JSON Schema?

Chapter-06, 07

  •    6.1 Data Driven Testing using JSON file?
  •    7.1 Data Driven Testing using CSV file?

Chapter-08

  •    8.1 How to install Jenkins?
  •    8.2 How to run Postman collections from Jenkins?
  •    8.3 How to Set CRON pattern?
  •    8.4 How to generate Newman advanced HTML in Jenkins?

Chapter-09

  •    9.1 How to Upload File in Postman API Testing?

Chapter-10

  •    10.1 How to Set Cookies Postman?
  •    10.2 How to Get Cookies Postman?
  •    10.3 How to Delete Cookies Postman?

Chapter-11

  •    11.1 Basic Authentication in Postman API Testing?

Chapter-12

  •    12.1 Local Variable in Postman?
  •    12.2 Environment Variable in Postman?
  •    12.3 Global Variable in Postman?

Chapter-13

  •    13.1 Integrate Postman with GitHub & Jenkins

RestAssured Full Course Content

๐Ÿ“บ Watch Full Playlist on YouTube

Chapter-01

  •    1.1 What is REST-ASSURED? Why? Advantages & Disadvantages?
  •    1.2 What is API Testing? Advantages of API Testing?
  •    1.3 What are the software's required?
  •    1.4 Pre-Condition?
  •    1.5 Sample Rest Assured API Request
  •    1.6 How to install Eclipse IDE & TestNG Framework?
  •    1.7 How to Create a Maven Project?
  •    1.8 Create a First GET API Request & Validate Status Code, Status line, Response Header & Response body
  •    1.9 How to Log API request and response details? Log if validation fails?
  •    1.10 Create a POST API request & Validate status code, Status Line & Response Headers
  •    1.11 API Response - JSON Object key-values & Nested JSON object key-values using Assertions
  •    1.12 How to create API Chaining? How to pass parameters

Chapter-02

  •    2.1 Create a POST API Request using file?
  •    2.2 Validate status code, API response, Validate complex JSON response using JSONPath Expressions
  •    2.3 Create a GET API Request & Validate response
  •    2.4 How to pass parameters?
  •    2.5 How to Create API Chaining?

Chapter-03

  •    3.1 What is Serialization & De-Serialization in API Testing?
  •    3.2 Create a POST API Request using POJOโ€™s?
  •    3.3 Validate API Response
  •    3.4 Create a GET API Request
  •    3.5 Validate API Response
  •    3.6 JSON Schema validation?

Chapter-04

  •    4.1 JSON Web Token (JWT)
  •    4.2 Create a PUT API Request?
  •    4.3 Verify status code & API response body
  •    4.4 Create a PATCH API Request?
  •    4.5 Verify status code & API response body

Chapter-05

  •    5.1 Create a DELETE API Request?
  •    5.2 Validate API response
  •    5.3 How to create TestNG suite file?
  •    5.4 How to Run project as a Maven Test?
  •    5.5 How to multiple TestNG suite files?
  •    5.6 How to Execute API tests from command prompt?

Chapter-06

  •    6.1 How to Configure Log4j for creating logs?
  •    6.2 How to Generate log4j file?
  •    6.3 How to write API request/response to the log4j file?

Chapter-07

  •    7.1 How to Configure Allure Report?
  •    7.2 How to Generate Allure Report?

Chapter-08, 09, 10

  •    8.1 Data Driven Testing using JSON file?
  •    9.1 Data Driven Testing using Excel file?
  •    10.1 Data Driven Testing using CSV file?

Chapter-11

  •    11.1 How to install Jenkins?
  •    11.2 How to create Jenkins job?
  •    11.3 How to schedule Jenkins job using CRON pattern?
  •    11.4 How to generate Allure html report in Jenkins?

Chapter-12, 13, 14

  •    12.1 How to Run Test Based on YES?NO Flag from Excel File?
  •    13.1 How Rerun/Retry Steps in Test in Rest Assured?
  •    14.1 How to Create Dynamic API Request Body?

Chapter-15, 16, 17

  •    15.1 How to Run Multiple TestNG suite files at one click?
  •    16.1 How to Retry/Rerun failed Test programmatically?
  •    17.1 How to Upload File in Rest Assured?

Chapter-18

  •    18.1 How to SET Cookies in Rest Assured?
  •    18.2 How to GET Cookies in Rest Assured?
  •    18.3 How to DELETE Cookies in Rest Assured?

Chapter-19

  •    19.1 Basic Authentication in Rest Assured?