Manual Testing Concepts with Examples
1. What is Manual Testing?
Manual testing is the process of manually checking software for defects. The tester takes over the role of a
2. Types of Manual Testing:
- Smoke Testing: Quick check if the application is working.
- Sanity Testing: Verifies new functionality or bug fixes.
- Integration Testing: Testing combined parts of an application.
- System Testing: Entire system is tested as per requirements.
- UAT (User Acceptance Testing): End users test the application.
- Regression Testing: Testing unchanged parts after changes.
3. Test Case Example:
Test Case: Login Functionality
- Test Case ID: TC001
- Description: Verify login with valid credentials
- Steps:
1. Open login page
2. Enter valid username and password
3. Click login
- Expected Result: User should be logged in
4. Bug/Defect Life Cycle:
- New -> Assigned -> Open -> Fixed -> Retest -> Verified -> Closed (or Reopen if failed)
5. Test Plan and Test Strategy:
- Test Plan: Document detailing the scope, approach, and schedule.
- Test Strategy: High-level document that defines the testing approach.
Automation Testing Concepts till Locators including DOM
1. What is Automation Testing?
Automation testing uses tools to execute test cases automatically. It saves time and is useful for regression
2. Selenium Overview:
Selenium is an open-source automation tool for web applications.
3. Selenium Components:
- Selenium IDE
- Selenium WebDriver
- Selenium Grid
4. Locators in Selenium:
- ID: driver.findElement(By.id("email"))
- Name: driver.findElement(By.name("userEmail"))
- Class Name: driver.findElement(By.className("btn-primary"))
- Tag Name: driver.findElement(By.tagName("input"))
- Link Text: driver.findElement(By.linkText("Click Here"))
- Partial Link Text: driver.findElement(By.partialLinkText("Click"))
- CSS Selector: driver.findElement(By.cssSelector("input[type='email']"))
- XPath:
- Absolute: /html/body/div/form/input[1]
- Relative: //input[@type='email']
5. DOM (Document Object Model):
DOM represents the structure of a webpage in tree format.
Each element (e.g., <input>, <div>) is a node in the tree.
Selenium interacts with the DOM to locate elements.