LogoLogo
  • About SimplifyQA
  • Get Started with SimplifyQA
    • Agile & Non-Agile Framework
    • OS Support
    • SimplifyQA Hosting
      • On-premise Installation Guide
        • Pre-requisites
        • Installation Guide
      • Support and Resources
      • Training and Onboarding
    • Explore SimplifyQA for your Application Lifecycle Management
  • SimplifyQA Installation & Setup
    • Setup QAWizard
    • Register QAWizard
    • Register your Machine
    • Setup Android Device
      • How to enable settings in android device?
      • How to register android device?
      • Setup emulators on Android Studio for automation in SimplifyQA
    • Setup iOS Device
      • How to setup and register iOS device?
  • Get to know your Workspace
    • Blueprint of SimplifyQA
    • Key Terminologies
    • Search/Global Search
      • How to use global search?
      • How to use advance search?
      • How to use column sort?
      • How to use column filters?
      • Add or remove columns
    • Rich Text Editor
    • Import & Export
      • Learn how to import/export Test Cases
      • Learn how to import/export Test Data
    • Add Attachments
    • Add Linkages
    • Add Comments
    • Manage Cards in board view
    • Configure Watchlist
    • Track Edit History
    • Hierarchy Tree
  • Admin Controls & Configurations
    • Manage Projects & Users
      • Introduction to Projects in SimplifyQA
      • Create Project and Invite Users
      • Project Settings
        • Create and Manage Custom Fields
        • Manage Roles and Privileges
        • Configure Auto-logging of Defects
      • Grant Admin Privilege to User
      • Invite/Add Users to Team
      • User Directory and Access Control
      • Configure Page Layout
    • Configure your clients
    • Password settings
  • Release & Sprints
    • Introduction to Releases
    • Create & Manage Release & Sprint
    • Start & Close a Sprint
  • Create and Manage your Requirements
    • Introduction to Requirement Management
    • Create & Manage Epic
    • Create & Manage Features
    • Create & Manage User Stories
      • Generate using AI Genius
  • Introduction to Test Management in SimplifyQA
    • Create a Manual Test Case in SimplifyQA
    • Create an Automation Test Case in SimplifyQA
    • Learn API Testing in SimplifyQA
      • Create an API Test Case in SimplifyQA
      • Quick Test the API
      • Validating API Responses
      • Understanding API Parameterisation
      • Save API Response Data
      • Achieve Data flow for E2E Testing
    • Create a Database Test Case in SimplifyQA
    • Create Hybrid Test Case in SimplifyQA
    • Leverage Re-usability in your Tests
    • Organise your Test Cases
    • Linking a Test Case to User Story
    • Linking a Test Case to Defect
    • Version Control your Test Case
    • Create a Copy of your Test Case
    • Copy Test Case to different Project
    • Conditional Statements
      • Decision Making Statement
      • Looping Statement
      • BREAK & CONTINUE Statement
    • Supported Actions
    • Utilising Mobile Inspector in SimplifyQA
  • Introduction to Script-less Recording of Test Case
    • Record a Web Test Case in SimplifyQA
    • Record an Android Test Case in SimplifyQA
    • Record an iOS Test Case in SimplifyQA
    • Record Functions in SimplifyQA
    • Understand Object Recognition Mechanism & Self Healing in SimplifyQA
    • Low Level Recording
  • Test Data Management
    • Generate dynamic data using Formulas to Optimise Test Data
    • Import and Export Test Data Sets
  • Introduction to Object Repository
    • Capture Objects for your Tests
    • Organise your Test Objects
    • Parameterise your Test Object Properties
  • Introduction to Parameters
    • Various Types of Parameters
    • Create and Utilise Parameters in your Test Case
    • Understanding Runtime Parameters
  • Code Editor
    • Using Git Commands
    • Configuring Privileges for Sync Actions
    • How to Sync Actions using Code Editor?
    • How to use AI to write code?
  • Introduction to Test Execution in SimplifyQA
    • Create an Execution Plan
    • Create a Suite
      • Execute your Test Suite and View Suite Reports
      • Execute your Suite on Cloud (Serial/Parallel)
    • Schedule your Execution
    • Create Pipelines
  • Defect Management
  • Marketplace
    • Integration with Project Management Tools
      • Integrating SimplifyQA with Jira
        • Configure Web-hooks
        • SimplifyQA Setup for Integration
          • Setup your Account for Jira Integration
          • Configuration in SimplifyQA Admin
          • Steps to Generate a Jira API Token
          • Steps to create SimplifyQA token
          • Steps to get Jira Account ID
          • Synchronisation Functionality Between SimplifyQA and Jira
          • Analyse Logs for Data Synchronisation
        • Mapping Fields for Issue Types
        • Viewing SimplifyQA Test Cases in Jira
    • Integrating with CI/CD Tools
      • Gitlab
      • Azure Devops
      • Concourse
    • Integrating with Cloud Platforms
      • VM Based
  • Legal Documents
    • End-User License Agreement
Powered by GitBook
On this page
  • Prerequisites
  • How to Record a Function?
  • Benefits of Using Reusable Functions
  • Frequently Asked Questions (FAQs)
  1. Introduction to Script-less Recording of Test Case

Record Functions in SimplifyQA

PreviousRecord an iOS Test Case in SimplifyQANextUnderstand Object Recognition Mechanism & Self Healing in SimplifyQA

Last updated 1 month ago

Reusable functions are modular units of code that can be defined once and used multiple times within your automation scripts, improving code structure and reducing redundancy.

In this section we will guide you through the process of recording a function which enhances code organization and maintainability.

Prerequisites

  • A clear understanding of the software feature or functionality you're testing.

  • Access to the project for which you want to create automation test case and privilege to create function.

  • SimplifyQA Wizard needs to be installed and running. Learn how to setup Wizard here .

  • Before recording, identify the specific actions or sequences of steps that you want to reuse.

How to Record a Function?

  • Launch the Recorder: Locate the recorder icon and select the required technology and select 'Function' option to record the function.

  • Define the Function Name: Provide the name of the function and mention the URL of the application under test.

  • Start Recording: Click on start recording. Begin interacting with the application you want to test. The recorder will capture your actions, including clicks, keystrokes, navigation, etc.

  • Stop, Pause and Resume Recording: Once you've completed the desired actions on the application under test, navigate back to SimplifyQA and click Stop Recording to end the session.

    If you need to temporarily halt the recording (e.g., to perform setup steps or navigate without capturing actions), you can use the Pause Recording option. When you're ready to continue, simply click Resume Recording to start capturing steps again.

  • Review the Test Steps: Review the recorded steps. Object and parameters names would be automatically captured with appropriate names. Data provided during the recording would also be captured in test data.

  • Define Function Details: Specify the function name and module and save your function.

Benefits of Using Reusable Functions

  • Improved Code Organisation: Functions help structure your scripts and make them easier to understand and maintain.

  • Enhanced Maintainability: When making changes to a common set of actions, you only need to update the function once, reducing the risk of errors.

  • Increased Efficiency: Reusing functions eliminates the need to record the same actions multiple times, saving time and effort.

  • Better Readability: Functions provide a more concise and readable representation of your test cases.

Additional Tips

  • Function Naming: Choose descriptive names for your functions to clearly indicate their purpose.

  • Parameterisation: Use parameters to make your functions more flexible and adaptable to different scenarios.

  • Error Handling: Implement error handling mechanisms within your functions to gracefully handle unexpected situations.

Frequently Asked Questions (FAQs)

Can I add validations while recording a function?

Yes, all validations can be captured just like in a test case by using the same recording tools, including Double Shift for validations.

Can I use functions inside other functions?

Yes, SimplifyQA allows nesting functions within other functions. This helps in building modular and reusable logic structures. However, it’s important to ensure that the nesting is logical and does not create circular dependencies.

Can I delete a function?

Yes, but only if it’s not in use in any test case. SimplifyQA will prompt you if the function is referenced elsewhere.

Learn how to organise and manage functions here .

Organise your Test Cases
/Functions
Setup QAWIzard