Generate test data using Zia in Zoho QEngine | Zoho QEngine Help

Generate test data using Zia

In a nutshell
The Generate Data task removes the need to manage and update static test datasets by letting you describe the data you need and generate it on demand. Using Zia, QEngine's AI assistant, you can create realistic, structured sample data directly during test execution, using a plain-text prompt, a reference file, or both.
Availability
  1. Super admins, admins, managers, and testers can use the Generate Data task.

1. Overview

The Generate Data task is a test data generation utility that helps you create realistic, structured sample data during test execution. Instead of maintaining static datasets that go stale, you describe the data you need, and Zia generates it for you on demand, using simple, scenario-based prompts.

This capability is powered by Zia, QEngine's AI assistant, which uses the AI model configured for your portal under Setup. Based on your configuration, Zia can leverage Zoho GenAI, OpenAI, Google Gemini, or Anthropic to generate contextually relevant data. The task behavior and output format remain consistent regardless of which provider is active.

You can use this task to produce structured inputs such as form fields, grouped test data, or scenario-specific datasets. For example, data for a registration form, an employee onboarding workflow, or a multi-step checkout flow, enabling more meaningful and realistic test coverage.

How it works
You write a prompt based on the test case you are building, describing the fields, values, or constraints your scenario requires. Zia uses this to generate data that fits your test context directly.

You can provide this input as:
  1. A plain-text prompt describing the data you need. For example, Generate form fields for a student picnic registration”. 
  2. A reference file (JPG, JPEG, PNG, or PDF, up to 3 MB), such as a screenshot or document that Zia uses to infer the required fields and generate matching values. You can also pair a file with a prompt to specify additional constraints or formatting rules. 
Zia processes your input and returns a JSON-formatted string containing the generated data. You store this output in a variable and reference it in subsequent test steps to populate form fields, simulate user inputs, or drive complex test scenarios without relying on external data files.

The Generate Data task works across Web, Android, and iOS platforms, so you can use the same syntax and expect the same output behavior regardless of the application environment you are testing.

Prerequisite

The Generate Data task requires Zia to be connected to an AI model under Setup. Without a configured provider, the task cannot generate data. Learn how to configure an AI model for Zia

2. Syntax

zia.generateData(<prompt>); 
or
zia.generateData(<filename>,<prompt>);

Parameters
Description
<prompt>
A natural language instruction describing the sample data you want Zia to generate. Optionally, when used with a file, the prompt acts as a directive, telling Zia how to interpret the file or what to extract from it.

NotesNote: The maximum length the prompt can have is 3000 characters.
<filename>
A reference to a file uploaded in your project's Files settings, used by Zia to model the generated data. 

Referenced using the built-in files namespace as files.<user_defined_name>, where <user_defined_name> is the name you assigned when uploading the file. 

Notes
Note: The supported formats for the file are jpg, jpeg, png, and pdf. And, their file size must be under 3 MB. 

Notes
Security Tip:  Avoid including personally identifiable information (PII) or confidential details in any content you upload, as it will be processed by the underlying language model. If you are using Zoho's GenAI model, your data will remain within your organization and will not be used for any external purposes.

Return Value
 
Type 
Description
String
A JSON-formatted string containing the generated sample data. The output structure reflects the fields and context described in your prompt or inferred from the uploaded file. This output structure is consistent regardless of which AI model is configured for your portal.

3. Use case

An HR application has an employee registration form with two date fields: date of birth and date of joining. The form enforces that the date of joining must always fall after the date of birth. Testing this validation requires multiple employee records with realistic, correctly ordered dates.

Using the Generate Data task with a plain-text prompt, you can describe the data requirements, including the date ordering constraint. Zia generates a set of realistic employee records satisfying this rule. The output is stored in a variable and used to populate form fields in subsequent test steps.

  1. // Generate employee records with valid DOB and DOJ pairs
  2. employeeData = zia.generateData("Generate 5 employee records. Each record must include a full name, date of birth, and date of joining. The date of joining must always be after the date of birth. Format: Name, DOB (YYYY-MM-DD), DOJ (YYYY-MM-DD).");
  3. info(employeeData);

  4. // Store the generated data to use across test steps
  5. testData = employeeData;

4. Points to note

  1. Each prompt can contain up to 3000 characters
  2. The Generate Data task accepts file in the following formats:  jpg, jpeg, png, and pdf.
  3. Each file passed to the task must not exceed 3 MB.
  4. Each call to the task accepts only one file.
  5. The task will time out if Zia does not return a response within 60 seconds.
  6. When you use Zoho GenAI as the configured AI model, the Generate Data task is subject to throttling with a limit of 50 requests per user per minute. If this threshold is exceeded, subsequent requests will be delayed or temporarily restricted until usage falls back within the allowed limit. For other providers (OpenAI, Google Gemini, Anthropic), throttling is governed by the respective provider's own rate limits

        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

                                  Zoho FSM Video Tutorials


                                        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

                                                                                                                                    • 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 ...
                                                                                                                                    • Click task

                                                                                                                                      In a nutshell The Click task automates a click on any web element during test execution. It validates that a click produces its intended outcome, such as adding an item to a shopping cart or signing into an account. User interactions in web ...
                                                                                                                                    • 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 ...
                                                                                                                                    • Configuring Zia for Zoho QEngine

                                                                                                                                      What does this page cover Learn how to configure an AI model for Zia, Zoho QEngine's AI assistant, to enable capabilities such as generating manual test cases and test data. This page explains how to set up Zoho GenAI or connect external AI models ...
                                                                                                                                      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