📘

Master Class on Katalon Studio

Jul 4, 2024

Master Class on Katalon Studio

Introduction

  • Instructor: Raghav, training partner with Katalon Studio
  • Session Style: Practical, hands-on
  • Target Audience: Complete beginners
  • OS Compatibility: Windows, Mac, Linux
  • Website for tutorials: Automation Step by Step

Agenda

  1. Introduction to Katalon Studio
  2. Downloading and setting up Katalon Studio
  3. GUI and features
  4. Web UI automation testing
    • Different modes of test creation (Recording, Manual, Scripting)
  5. Test Cases, Test Suites, Test Suite Collections
  6. Logs and Reports
  7. Custom Keywords
  8. Execution Environments
  9. Katalon Recorder
  10. Variables
  11. Data-Driven Testing
  12. Checkpoints
  13. Command Line Runs
  14. Failure Handling
  15. Listeners
  16. Setup and Teardown
  17. Self-Healing Mechanism
  18. Debugging and Troubleshooting
  19. Frames Handling
  20. Visual Validation
  21. Cloud Repositories Integration (e.g., GitHub)
  22. Source Code Management Integration (e.g., GIT)
  23. Useful Tips and Best Practices

Download and Setup Katalon Studio

  1. Go to Katalon.com
  2. Create an account or sign in
  3. Download Katalon Studio and Runtime Engine
  4. Unzip and keep in a preferred location on your system
  5. Open Katalon Studio by clicking on katalon.exe
  6. Activate using your email and password

GUI and Features

  • Menu Bar: File, Action, Edit, Project, Debug, Window, Tools, Help
  • Main Toolbar: Save, Spy Web, Record Web, Test Execution options
  • Test Explorer: Project files in a tree format
  • Editor Window: To edit files and scripts
  • Keywords Browser: Built-in and custom keywords
  • Log Viewer: Displays logs of the test execution
  • Command Palette: Shortcuts for functionalities (Ctrl Alt C)
  • Themes: Light and Dark

Test Automation with Katalon Studio

Test Creation Modes

  1. Recording Mode

    1. Create a test case
    2. Click Record Web
    3. Perform actions on web application
    4. Save the recorded steps
    5. Execute and verify test
  2. Manual Mode

    1. Capture objects using Spy Web
    2. Manually add steps and objects in the test case editor
  3. Scripting Mode

    1. Create a test case
    2. Write script using WebUI class
    3. Save and run the script

Test Suites and Test Suite Collections

  • Test Suite: Group of test cases

    • Create via New > Test Suite
    • Add test cases and save
    • Set execution settings
    • Execute the test suite
  • Test Suite Collection: Group of test suites

    • Create via New > Test Suite Collection
    • Add test suites
    • Set execution settings (sequential or parallel)
    • Execute the collection

Logs and Reports

  • Logs: Generated for individual test cases and other executions
  • Reports: Generated for test suites and collections
    • Formats: CSV, HTML, PDF
    • Access via Project > Settings > Plugins > Report
    • View report summary, test suite/case details, execution environment details, screenshots for failures

Custom Keywords

  • Built-in Keywords: Predefined, ready to use
  • Custom Keywords: User-defined, scripted keywords for specific actions
    • Create via New Keyword
    • Add annotation @Keyword to methods
    • Use in test cases
    • Can take parameters for dynamic actions
    • Categorize using keywordObject annotation

Quiz and Future Learning

  • Take quizzes on Katalon Studio for better understanding