💻

Introduction to Automated Testing

Jul 1, 2024

Introduction to Automated Testing

Overview of Today's Session

  • Introduction to Manual Testing and Automation Testing
  • Overview of Selenium
  • Addressing Queries at the End

Key Points

  • Manual Testing: Testing without using any tools, performed by a human tester.
  • Automation Testing: Testing using automated tools.
  • Software Testing: Process of finding bugs or defects with the goal of releasing a quality product.
  • Challenges in Manual Testing: Retesting and Regression Testing.
  • Introduction to Selenium for automated testing.

Software Testing

  • Definition: Process of finding defects to release a quality product.
  • Manual Testing: Testing without the use of tools.
  • Automation Testing: Using tools to perform tests.

Manual Testing

  • Challenges:
    • Retesting: Executing the same test multiple times with different data.
    • Regression Testing: Ensuring new code changes do not affect existing functionality.

Automation Testing

  • Definition: Testing with the help of tools (e.g., Selenium).
  • Benefits: Overcomes challenges of manual testing (time and effort).
  • Process:
    • Convert manual test cases to automated scripts.
    • Provide instructions in a language the tool understands (e.g., Java, Python).

Selenium

  • General Overview:
    • Collection of multiple components.
    • Web- based automation tool.
    • Developed by Jason Haggins in 2004 at ThoughtWorks.
    • Open source and community-driven.
  • Components of Selenium:
    • Selenium IDE
    • Selenium WebDriver
    • Selenium Grid

Advantages of Selenium

  • Open Source: Free of cost, customizable.
  • Supports Multiple:
    • Operating Systems (Windows, Mac, Linux)
    • Browsers (Chrome, Firefox, Opera, Safari)
    • Languages (Java, Python, C#, Ruby, JavaScript)
  • Third-Party Integration: Capable of integrating with tools like Apache POI, TestNG, Extent Reports, etc.

Disadvantages of Selenium

  • Doesn’t Support:
    • Window-based applications
    • Reporting (without third-party tools)
    • Excel files (without third-party tools)
    • Graphs and CAPTCHAs

Types of Applications

  • Web Applications: Accessed via browsers.
  • Desktop Applications: Installed locally, don’t need the internet.
  • Mobile Applications: Downloaded from app stores.

Selenium Versions

  • 1.x - 4.x:
    • Began with Selenium IDE and RC.
    • WebDriver replaced RC in 2.x.
    • 3.x and 4.x added support for more browsers.

Conclusion

  • Programming knowledge important for automation testing.
  • Selenium popular due to its flexibility and open-source nature.
  • Future sessions will focus on programming languages and detailed usage of Selenium.