ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Software Testing & Quality Assurance
    COMP4125
    Progress0 / 9 topics
    Topics
    1. Testing techniques2. Black Box testing techniques3. White Box testing techniques4. Grey Box testing techniques5. Quality Assurance planning and execution6. Automated testing: constructing a framework7. Scripting techniques for automated testing8. Generating test data9. Generating test reports
    COMP4125›Automated testing: constructing a framework
    Software Testing & Quality AssuranceTopic 6 of 9

    Automated testing: constructing a framework

    3 minread
    551words
    Beginnerlevel

    📘 AUTOMATED TESTING: CONSTRUCTING A FRAMEWORK


    ✅ 1. What is Automated Testing?

    Definition: Automated Testing is the process of using tools and scripts to execute test cases automatically, without manual effort.

    👉 Simple meaning: A computer program runs your tests instead of a human.


    🎯 Key Idea:

    • Saves time
    • Increases accuracy
    • Useful for repetitive testing

    🟢 2. What is a Test Automation Framework?

    📌 Definition:

    A Test Automation Framework is a set of guidelines, tools, and rules used to design and run automated tests efficiently.

    👉 Simple meaning: It is a structure/system that helps organize automated testing.


    🎯 Why Use a Framework?

    • Improves reusability of test scripts
    • Reduces maintenance effort
    • Makes testing organized and scalable
    • Produces better reports

    🧩 3. COMPONENTS OF AN AUTOMATION FRAMEWORK


    🔵 1. Test Scripts

    • Actual automation code
    • Written using tools/languages

    👉 Example:

    • Login test script

    🔵 2. Test Data

    • Input data for testing

    • Stored in:

      • Excel
      • CSV
      • Database

    🔵 3. Object Repository

    • Stores elements of UI (buttons, fields)

    👉 Example:

    • Login button ID
    • Username field

    🔵 4. Test Execution Engine

    • Runs test scripts automatically

    🔵 5. Reporting Tool

    • Generates:

      • Pass/Fail results
      • Logs

    🔵 6. Configuration Files

    • Store settings like:

      • URL
      • Browser type

    📊 FRAMEWORK STRUCTURE DIAGRAM

    Test Scripts → Execution Engine → Application
          ↑              ↓
     Test Data       Reports
          ↑
     Object Repository
    

    🔑 4. TYPES OF AUTOMATION FRAMEWORKS


    🟢 1. Linear Framework (Record & Playback)

    📌 Definition:

    Tests are recorded and played back.

    🎯 Features:

    • Simple
    • No coding required

    ❌ Limitation:

    • Not reusable

    🔵 2. Modular Framework

    📌 Definition:

    Application is divided into modules, and each module is tested separately.

    🎯 Example:

    • Login module
    • Payment module

    🟡 3. Data-Driven Framework

    📌 Definition:

    Test data is separated from test scripts.

    📊 Example:

    Username Password
    user1 pass1
    user2 pass2

    🎯 Key Point:

    • Same script runs with multiple data sets

    👉 🔥 Frequently asked!


    🟣 4. Keyword-Driven Framework

    📌 Definition:

    Uses keywords instead of code.

    📊 Example:

    Keyword Action
    Login Enter username/password
    Click Press button

    🟠 5. Hybrid Framework

    📌 Definition:

    Combination of:

    • Data-driven
    • Keyword-driven

    🎯 Key Point:

    • Most commonly used in real projects

    🪜 5. STEPS TO CONSTRUCT AN AUTOMATION FRAMEWORK


    🔵 Step 1: Define Scope

    • Identify what to automate

    • Example:

      • Regression tests

    🔵 Step 2: Select Tool

    • Choose automation tool

    • Example:

      • Selenium

    🔵 Step 3: Design Framework Structure

    • Decide:

      • Folder structure
      • Naming conventions

    🔵 Step 4: Create Reusable Components

    • Functions for:

      • Login
      • Navigation

    🔵 Step 5: Integrate Test Data

    • Use external data sources

    🔵 Step 6: Implement Reporting

    • Add reporting tools

    🔵 Step 7: Execute & Maintain

    • Run tests
    • Update scripts regularly

    ⚖️ ADVANTAGES & DISADVANTAGES

    ✅ Advantages:

    • Fast execution
    • Reusable scripts
    • Less human error
    • Supports regression testing

    ❌ Disadvantages:

    • High initial cost
    • Requires technical skills
    • Maintenance needed

    🔥 FREQUENTLY ASKED EXAM POINTS

    ✔ Define Automation Framework ✔ Types of frameworks ✔ Data-driven framework explanation ✔ Steps to build framework ✔ Advantages of automation


    📊 QUICK REVISION TABLE

    Framework Type Key Idea Advantage Disadvantage
    Linear Record/playback Easy Not reusable
    Modular Divide modules Organized More setup
    Data-Driven Separate data Flexible Complex
    Keyword-Driven Use keywords No coding Slower
    Hybrid Combination Powerful Complex

    🎯 FINAL SUMMARY

    • Automated testing uses tools to run tests automatically

    • A framework provides structure and organization

    • Important frameworks:

      • Data-driven (most important for exams)
      • Hybrid (most used in industry)
    • Steps include:

      • Planning
      • Designing
      • Implementing
      • Executing

    Previous topic 5
    Quality Assurance planning and execution
    Next topic 7
    Scripting techniques for automated testing

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time3 min
      Word count551
      Code examples0
      DifficultyBeginner