Skip to content

JavaScript for QA Tester

Somkiat Puisungnoen edited this page Dec 27, 2024 · 1 revision

Course :: JavaScript for QA/Test

  • 1 day

Outline

Session 1: Introduction to JavaScript (1 Hour)

  • Overview of JavaScript in Testing

    • Importance of JavaScript for QA
    • Real-world use cases (e.g., UI testing, automation, debugging)
  • Core JavaScript Basics

    • Variables and Data Types (let, const, var)
    • Operators and Expressions
    • Conditionals (if, else, switch)

Session 2: Functions and DOM Manipulation (1 Hour)

  • Functions for Testing Automation
    • Creating and using functions
    • Arrow functions (=>) and callbacks
  • Understanding the DOM (Document Object Model)
    • Selecting elements (getElementById, querySelector)
    • Modifying elements and attributes
    • Event handling (e.g., click, change)

Session 3: JavaScript for Testing Basics (1.5 Hours)

  • Scripting for QA
    • Writing simple test scripts
    • Simulating user actions (e.g., form filling, button clicks)
  • Error Handling
    • try-catch blocks
    • Debugging techniques with browser dev tools
  • Browser Automation Introduction
    • Basics of automation with tools like Selenium, Puppeteer, Cypress and Playwright

Session 4: Testing Frameworks and Best Practices (1.5 Hours)

  • Introduction to Testing Frameworks
    • Overview of Mocha, Chai, and Jest
    • Writing and running basic test cases
  • Assertions and Mocking
    • Writing assertions for expected outcomes
    • Introduction to mocking data
  • Best Practices for JavaScript in Testing
    • Writing clean and reusable test scripts
    • Common pitfalls to avoid

Session 5: Hands-on Workshop (2 Hours)

  • Creating a Simple Test Script

    • Automate form validation testing using JavaScript
    • Simulating user interactions and validating outcomes
  • Automating a Web Page

    • Use JavaScript to validate elements, navigation, and functionality

Clone this wiki locally