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
  • If Statement
  • IF-Else Statement
  • Frequently Asked Questions (FAQs)
  1. Introduction to Test Management in SimplifyQA
  2. Conditional Statements

Decision Making Statement

PreviousConditional StatementsNextLooping Statement

Last updated 1 month ago

Decision Making Statements are essential for automating test execution by enabling dynamic decision-making. They help control the flow of execution based on specified conditions, ensuring that the test behaves differently under different scenarios.

These include:

  • IF Statement

  • IF-Else Statement


If Statement

The If Statement executes a specific action if a given condition is met.

How to Create an IF Condition in SimplifyQA?

  1. Navigate to the test case and click on "Add Step" Dropdown.

  2. Choose the 'IF Condition' block.

  3. Click on the condition icon to define the condition and parameters.

  1. Define the parameters:

    1. Add Parameter: Type '#' to select the object or type '/' to select a parameter.

    2. Operator: Choose the comparison type (e.g., equal to, greater than, contains).

    3. Parameter: Set the expected value.

  2. Description: Provide a brief explanation.

  3. Click Save to apply the condition.

  1. Specify the steps within the IF block to execute if the condition is met.

Example:

  • Condition: If the login status is "Success"

  • Action: Proceed to the dashboard.


IF-Else Statement

The IF-Else Statement executes one action if the condition is met and another action if it is not.

How to Create an If-Else Condition in SimplifyQA?

  1. Follow the same steps as for the IF Condition.

  2. After defining the IF Condition, add an ELSE Condition.

  1. Define the alternate steps to execute if the condition is not met.

  2. Click Save.

Example:

  • Condition: If the login attempt is successful

    • Action: Redirect to the homepage

  • Else: If login fails

    • Action: Show an error message

Additional Information

Types of comparison operators supported are:

  • Equals to (==)

  • Not Equals to (!=)

  • Greater than (>)

  • Less than (<)

  • Greater than or equals to (>=)

  • Less than or equals to (<=)

Frequently Asked Questions (FAQs)

Can I nest IF Statements inside another IF Statement?

Yes, you can use nested IF Statements to evaluate multiple conditions within another IF block.

What happens if I don’t define an Else block?

If the condition is false and there's no ELSE block, then the steps outside the conditional statement would get executed (if any).