-
Notifications
You must be signed in to change notification settings - Fork 6
JavaScript for QA Tester
Somkiat Puisungnoen edited this page Dec 27, 2024
·
1 revision
- 1 day
-
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)
- 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)
- 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
- 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
-
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