ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalCOMP4125Automated Testing Fram…
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    COMP4125

    Software Testing & Quality Assurance

    Progress0 / 9 done
    Topics9
    1Testing techniques2Black Box testing techniques3White Box testing techniques4Grey Box testing techniques5Quality Assurance planning and execution
    6constructing a framework7Scripting techniques for automated testing8Generating test data9Generating test reports
    3 min read
    Topic 6 of 9
    Topic Study Note Illustration
    06

    Automated testing: constructing a framework

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

    πŸ“˜ 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 view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    3mremaining
    551words
    Beginnerlevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Software Testing & Quality Assurance