Adding Actions on Automated Tests - Sofy Support Docs: No-Code Automation Testing Platform Help

Adding Actions on Automated Tests

Swipe Until Overview

What is Swipe Until ? When testing a mobile app, you may need to swipe on the screen to locate and select an element. However, the number of swipes required often varies across devices due to differences in screen size and technology. Read more

Adding a Swipe Until Action to a Test Case

When testing an app, the number of swipes needed to find an element can vary by device and screen size—often causing tests to fail. The Swipe Until condition solves this by letting you specify that the action should continue until an element is found rather than stopping at a predetermined number of swipes. Read more

Recording a Swipe Until Step

Swipe Until is a powerful feature in Sofy’s No Code Automation that makes automated swipes work reliably across different devices and screen sizes. Instead of hardcoding a fixed number of swipes, you can now tailor your tests to accurately handle variations. Read more

Switching between apps

In some scenarios, while you are performing tests on your mobile application, you might need to switch to a different application such as Google Chrome or Mozilla Firefox. Sofy provides you with the ability to handle this seamlessly. Read more

Resetting your app

While you are inside the Lab environment and are experimenting with tests, you can also soft or hard reset and relaunch your application whenever needed. You can find the reset button inside the Action panel. Read more

Setting Performance Thresholds

While creating Automated Tests using Recording, you can set performance Thresholds. When the Threshold exceeds during test execution, it is flagged in the performance graph in the Test Result. Read more

Adding Delays in Automated Test Cases

Sometimes during an automated test, loading times from screen to screen can vary between high-end and low-end devices or based on how "heavy or light" an XML may be. To account for differences in loading times, you can introduce delays. Read more

Adding Conditions to Test Cases

Adding conditions to Test Case allows you to perform different actions while executing your test. Conditions in Sofy follow the If and Else statement workflow that can be defined as executing a certain path based on the results of a previous step. Read more

Adding Asserts During and After Test Recording

An assert is a boolean expression used to help debug and test a condition as part of the code execution. If the condition is met (true), the program continues to run as normal. If not, it logs an error. Read more

Adding an API Step to your Test

Test cases are not just a set of steps performed on your screen. Today, test cases require creating runtime test data from API responses and using that data in subsequent steps (or deleting data afterwards). Read more

Storing Variables and Using them in API Requests

In many cases, it might be useful to make several API requests in succession where we use data obtained from one request and feed it into another request. Such examples may include registering a new user and then logging them in. Read more

Automate OTP verification via email

An application may require the user to authenticate their identity via a One-Time Password (OTP) received on their email. This is often used when the application needs to authenticate a user for a sensitive action. Read more

Automate OTP verification via text message

An application may require the user to authenticate their identity via a One-Time Password (OTP) received via text message / SMS. This is common in applications ensuring secure user identity authentication. Read more

Long Press

Long-press actions are common interaction patterns used in mobile devices to perform specific actions or access additional functionalities such as navigation, refreshing screens, or opening additional menus. Read more

Swipe

Swipes are common interaction patterns used in mobile devices to perform specific actions or access additional functionalities such as navigation, refreshing screens, or accessing contextual menus. Read more

Adding a Visual Match to a Test Step

Visual Match allows you to override and fine-tune your click target in automated test steps. When enabled, you can draw a new bounding box around the element you’d like Sofy to select during test playback. Read more

Manual Override - Best Practices

What is Manual Override? Manual Override is a powerful feature that allows you to manually adjust how an element is identified during test automation. You can override default values or define a custom locator strategy. Read more

Arithmetic Operations

The Arithmetic Expression feature in Sofy allows you to perform mathematical operations within test cases and assert the results dynamically. This functionality is designed for scenarios where numeric calculations are needed during tests. Read more

Editing Different Types of Actions during Recording

With Sofy's authoring mode, you can edit your test while recording to modify and automate your tests much faster with greater accuracy. Each step during Authoring can be edited as required. Read more

Delete Step During Recording

Recording tests can be stressful if you are not allowed to make any mistakes. However, you can author as many tests as you would like without the added stress of worrying about making errors. Read more

Edit Steps During Recording

Recording tests can be challenging when every action needs to be perfect. Sofy aims to make test authoring a seamless experience, allowing you to create as many tests as needed without worrying about perfection on the first try. Read more

Variable-Based Conditional Actions

As reusability becomes important in scaling applications faster and more effectively, leveraging variable-based conditional actions can enhance your test authoring and execution. Read more

Testing Deeplinks

Testing deeplink functionality just got easier. Sofy now provides a dedicated Deeplink button within the device pane, streamlining your workflow and eliminating the need to manually launch a browser for testing. Read more

Drag and Drop

The Drag and Drop action lets you record a swipe-based drag gesture as a test step — picking up an element and dropping it onto another location or element on screen. This is useful for testing reordering functionalities within apps. Read more