Automating SOAP Services with Catalan Tool

Aug 11, 2024

Lecture Notes: Catalan Automation Tool - SOAP Services

Introduction

  • Presenter: Ravi
  • Lesson: 11 on Catalan Automation Tool
  • Focus: Automate SOAP services using Catalan tool
  • Importance: Covers basic and advanced concepts of SOAP request automation
  • Reminder: Subscribe to the channel and click the bell icon for notifications

Session Overview

  • Set up API testing projects
  • Add SOAP web service requests
  • Create SOAP API test cases
  • Add web service keywords and validations
  • Validate values in SOAP responses
  • Utilize inbuilt snippets in Catalan (Groovy language)

Step-by-Step Guide

Setting Up

  1. Add SOAP Web Service Request

    • Go to Object Repository -> Right-click -> New -> Web Service Request
    • Name: Country Service (e.g., CountryInfoService)
    • Create a new folder: SOAP Services for organization
    • Add SOAP request type
    • Use WSDL URL
    • Example: Country Currency operation
    • Methods: HTTP Body, Request
  2. Wizzler Chrome Extension

    • Add Wizzler Chrome Extension for viewing operations in WSDL file
    • Visualize operations of SOAP services
    • Load service functions in Catalan

Creating and Validating SOAP Requests

  1. Creating SOAP Requests

    • Create a sample SOAP request (e.g., Country Currency)
    • Provide WSDL URL, request body, and parameters (e.g., ISO code)
    • Save and run the request
    • Check response (e.g., USD for USA)
  2. Verification and Validation

    • Use verification tab for response status code validation
    • Customize snippets for specific validations (e.g., response code, ISO code)
    • Create test cases with validation steps
    • Store response in a variable for further validation
    • Use send request and verify keywords
    • Validate JSON paths within test cases

Advanced Validation

  1. Adding Validation in Test Cases
    • Add new steps in test cases for advanced validations
    • Verify element property values
    • Example: Validate ISO code and currency name in response
    • Use control structures (e.g., Control + K) for JSON path inclusion

Practical Examples

  1. Running Test Cases
    • Demonstrate running and validating SOAP requests
    • Ensure proper response and validation (USD, INR example)
    • Highlight common issues and troubleshooting

Conclusion

  • Key Concepts Reviewed: Adding SOAP requests, creating test cases, validating responses
  • Importance of understanding and using snippets for efficient validations
  • Encouragement to ask questions and subscribe for more content

Additional Resources

  • Previous Sessions: Session 9 and Session 10 for REST services overview
  • Tools: Wizzler Chrome Extension, Catalan Automation Tool
  • Languages: Groovy for scripting