Creating Android or iOS test cases using Recorder | Zoho QEngine Help

Creating mobile test cases using recorder


In a nutshell

Zoho QEngine's recorder captures your physical interactions within a mobile application and converts them into automation test scripts automatically, without requiring you to write scripts manually. It is accessed from the test case editor after switching to the Android or iOS platform and connecting your real or virtual device through a <local agent>, which mirrors the device screen for recording. All interacted elements and their locators are saved automatically as part of the generated script, making recording a faster option for test case creation.

1. Overview 

The recorder feature in Zoho QEngine streamlines test case creation for both Android and iOS platforms by capturing user interactions directly within the mobile app or website. This powerful test automation tool captures every action you perform on the mobile app or website, such as taps, swipes, and text inputs, and converts them into precise automation test scripts. As a result, the process of creating and managing test cases has been greatly simplified, making it ideal for QA testers with limited coding experience or those seeking efficiency in their mobile app testing process.

The recorder is designed to work with both real and virtual devices, giving the user flexibility in testing environments. By capturing each user action on these devices, the recorder automatically generates test steps, enabling faster test creation and helping maintain consistency in the tests created.

2. Setting up the recorder

Before using the recorder, make sure to set up the necessary environment. First, connect the required devices, whether real or virtual, through Zoho QEngine’s local agent. The local agent acts as a bridge, allowing the platform to interact with the required Android or iOS devices for the recording and playback of test actions. 
Notes
Note
- To configure devices, follow the prerequisite steps outlined in the Android or iOS Configuration documents.
- To configure agents, refer to the Agent Setup document. This document provides detailed instructions on installing and linking the local agent to Zoho QEngine.

3. Recording a test case on the Android or iOS platform

Once you've connected your Android or iOS devices to the agent, follow these steps to start recording a test case:
  1. Begin by creating a test case, then switch to the Android or iOS platform to start writing.


  1. Click Record to initiate recording your test case.


  1. In the pop-up window, select the desired Agent from the list. The Reachable Address field will automatically populate with the network's IP address.



    NotesNote: The Reachable Address field is editable, as the IP address may sometimes change. The browser may prompt for one-time consent to establish a new connection when the agent connects to your network IP address for the first time or when the IP address changes.
    In the prompt, on clicking OK, you get navigated to a browser page asking for one-time consent. Click on advanced and then, click Proceed to tell QEngine to trust the network.

  2. Choose the required Device and upload the necessary APK or IPA file for the app. You can either select the file from the saved list in the Files section or upload a new file directly from your device. Learn more

  3. Click Start to begin recording the test case.

    Now, the
    recorder will mirror the device screen with the requested app ready to capture the actions.

  4. Perform the required interactions within the app—for example, scheduling a new appointment, updating booking preferences, sending appointment reminders to clients, and much more.



    NotesNote: The tools include a keyboard, a wait task, a tool bar for swipe actions, and at the bottom, an annotator. The annotator highlights the interacted element, so that it's easier for you to see which part is undergoing testing within the application. You can change the color used for the annotation by clicking the annotator icon { } inside Container Tools. For Android, the annotator includes an additional Back button, allowing testers to simulate the Back action specific to Android devices. 
  5. The focus element pop-up shows the locator tags of all elements you interact with, and the Settings icon lets you perform certain select tasks with these elements. To pause recording at any point, click Pause.



  6. Click Save & Exit to stop the recording.



    Now you'll be taken back to the test case editor, where elements are recorded along with their page name. All the elements you interacted with during the recording are listed for selection. Previously saved elements will be listed as
    Existing Locators, and newly saved elements, irrespective of their page name, will be listed as New Locators.

  7. Choose the required elements, name them appropriately, and select the type of locator you want for that element from the listed recorded elements. Then, click Save. To learn more about how the recorded elements are saved, refer to the help page for elements.


  1. All the recorded test cases will be saved by default. Click Run or configure run to preview the test case. Learn more



Once the live preview test results have been successfully validated, you can add them into a test suite and, subsequently, into a test plan for inclusion in scheduled testing.

4. Updating an existing test case using the recorder

When you need to update the test scripts in an existing test case, you can use the Record option again to make changes. This allows you to append to the current script or start a fresh recording while keeping access to previous versions for reference. 
  1. Initiate the re-recording process by clicking the Record button in your test case.



  2. A prompt will appear asking if you want to continue with the existing script or start fresh. You will have two options:



    • If you click Yes, the recorder will mimic the earlier interactions and stop at the last line of the script, allowing you to resume recording from where you left off.
    • If you click No, I Want A Clean Session, the previous script will be removed. However, you can view or restore the replaced script from the previous version(s) if needed.

5. Points to remember

  • Optimize your test steps using tasks, while creating test cases. For example, the wait task has two syntax options. The first one waits for a specific duration, irrespective of the element being present or not on the current screen. In contrast, the other wait option waits with respect to the element being found on the screen. By opting for the latter option, the execution time can be reduced.

  • Coordinates are supported as a locator for tasks. However, utilizing them for element interaction may result in failure when executed on different devices, simulators, or emulators due to variations in screen resolution. Therefore, it's advisable to use element coordinates only when dealing with devices that share the same screen resolution.
  • For mobile tasks, prioritize the use of ID or Accessibility ID as locators for interacted elements. While tasks support alternatives like Class Name, Absolute XPath, or Relative XPath as locators. The ID or Accessibility IDs offer more reliable and efficient way to uniquely identify elements, thereby enhancing the robustness of your test scripts.

  • Zoho QEngine supports testing for both native and hybrid apps. However, for hybrid apps, it's recommended to use the absolute path for locating elements to ensure accurate identification during testing. 

  • To reduce navigation time during testing, testers are recommended to utilize the openURL task instead of writing test steps for navigating to specific places within the application . This task enables the deep link feature, allowing testers to directly access specific pages or features. By incorporating deep links, testers can streamline their testing process and focus on targeted functionalities.

  • In web browsing, all elements are accessible after page load, while in mobile, elements are rendered upon swiping. However, only elements within the visible screen area can be interacted with on mobile, necessitating swiping to reveal elements before tapping. For example, in mobile apps, users prefer choosing explicit actions like searching to locate specific items efficiently. Unlike web browsing, where users can scroll through entire lists, mobile users rely on dynamic rendering based on visibility. 

6.  Related Links  

7. What's next

Next steps
Previous steps
Next steps
After recording a test case, you can optimize the test steps using the Editor or Builder mode within the platform's test case editor.
Previous steps
Before recording an iOS test case, ensure that the agent is connected and the devices to be tested (Android or iOS) are both linked to the agent and properly configured. For more details, refer to the documents Configuring your Android Devices or Configuring your iOS devices.




        Create. Review. Publish.

        Write, edit, collaborate on, and publish documents to different content management platforms.

        Get Started Now


          Access your files securely from anywhere

            Zoho CRM Training Programs

            Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

            Zoho CRM Training
              Redefine the way you work
              with Zoho Workplace

                Zoho DataPrep Personalized Demo

                If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

                Zoho CRM Training

                  Create, share, and deliver

                  beautiful slides from anywhere.

                  Get Started Now


                    Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                    BOOK A SESSION







                                Quick LinksWorkflow AutomationData Collection
                                Web FormsEnterpriseOnline Data Collection Tool
                                Embeddable FormsBankingBegin Data Collection
                                Interactive FormsWorkplaceData Collection App
                                CRM FormsCustomer ServiceAccessible Forms
                                Digital FormsMarketingForms for Small Business
                                HTML FormsEducationForms for Enterprise
                                Contact FormsE-commerceForms for any business
                                Lead Generation FormsHealthcareForms for Startups
                                Wordpress FormsCustomer onboardingForms for Small Business
                                No Code FormsConstructionRSVP tool for holidays
                                Free FormsTravelFeatures for Order Forms
                                Prefill FormsNon-Profit

                                Intake FormsLegal
                                Mobile App
                                Form DesignerHR
                                Mobile Forms
                                Card FormsFoodOffline Forms
                                Assign FormsPhotographyMobile Forms Features
                                Translate FormsReal EstateKiosk in Mobile Forms
                                Electronic Forms
                                Drag & drop form builder

                                Notification Emails for FormsAlternativesSecurity & Compliance
                                Holiday FormsGoogle Forms alternative GDPR
                                Form to PDFJotform alternativeHIPAA Forms
                                Email FormsFormstack alternativeEncrypted Forms

                                Wufoo alternativeSecure Forms

                                TypeformWCAG


                                    All-in-one knowledge management and training platform for your employees and customers.

                                              Create. Review. Publish.

                                              Write, edit, collaborate on, and publish documents to different content management platforms.

                                              Get Started Now





                                                                You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                    Manage your brands on social media


                                                                      • Desk Community Learning Series


                                                                      • Digest


                                                                      • Functions


                                                                      • Meetups


                                                                      • Kbase


                                                                      • Resources


                                                                      • Glossary


                                                                      • Desk Marketplace


                                                                      • MVP Corner


                                                                      • Word of the Day


                                                                      • Ask the Experts


                                                                        Zoho Sheet Resources

                                                                         

                                                                            Zoho Forms Resources


                                                                              Secure your business
                                                                              communication with Zoho Mail


                                                                              Mail on the move with
                                                                              Zoho Mail mobile application

                                                                                Stay on top of your schedule
                                                                                at all times


                                                                                Carry your calendar with you
                                                                                Anytime, anywhere




                                                                                      Zoho Sign Resources

                                                                                        Sign, Paperless!

                                                                                        Sign and send business documents on the go!

                                                                                        Get Started Now




                                                                                                Zoho TeamInbox Resources





                                                                                                          Zoho DataPrep Demo

                                                                                                          Get a personalized demo or POC

                                                                                                          REGISTER NOW


                                                                                                            Design. Discuss. Deliver.

                                                                                                            Create visually engaging stories with Zoho Show.

                                                                                                            Get Started Now








                                                                                                                                • Related Articles

                                                                                                                                • Creating mobile test cases using editor or builder mode

                                                                                                                                  In a nutshell Automated mobile test cases for Android and iOS can be created manually using Editor or Builder mode within Zoho QEngine's test case editor. Editor is a pro-code scripting mode that gives automation experts full control to write, ...
                                                                                                                                • Understand Mobile Testing

                                                                                                                                  In a nutshell Zoho QEngine provides dedicated testing environments for both Android and iOS, each designed to handle the platform-specific devices, screen sizes, and app interactions unique to that ecosystem. Test cases can be created using the ...
                                                                                                                                • Test Cases

                                                                                                                                  Overview Test cases, simply put, are steps to perform an action. They contain a series of inputs to be provided, and expected outcomes to be validated for an action or a function that has to be tested. This determines whether the system or ...
                                                                                                                                • Create manual test cases using Zia

                                                                                                                                  In a nutshell Zia transforms natural language prompts into AI-generated test scenarios with clear steps and expected outcomes, streamlining QA efforts. Using the capabilities of NLP and LLM technology, it suggests relevant test cases to simplify ...
                                                                                                                                • Converting manual test cases to automation scripts using Zia

                                                                                                                                  In a nutshell Zia's manual-to-automation capability converts your manual test case into a ready-to-run automation script without writing any code. It maps each step to the corresponding UI element on the target page, validates them live in your ...
                                                                                                                                  Wherever you are is as good as
                                                                                                                                  your workplace

                                                                                                                                    Resources

                                                                                                                                    Videos

                                                                                                                                    Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                    eBooks

                                                                                                                                    Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                    Webinars

                                                                                                                                    Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                    CRM Tips

                                                                                                                                    Make the most of Zoho CRM with these useful tips.



                                                                                                                                      Zoho Show Resources