Functions
Last updated
Last updated
Functions in Qyrus allows you to group various steps together into a single function. This simplifies the process of importing multiple steps as a cohesive function. Moreover, Functions also enable the import of entire scripts into the desired script, providing the flexibility to execute tests efficiently within your chosen context.
Previously created project
Previously created test script
Step 1: Navigate to the "Web Testing" service, choose the desired project, proceed to select the desired module, and then select the specific test script.
Step 2: After accessing the test steps page, locate and click on the "Edit Steps" icon positioned at the top right corner. Upon clicking this icon, you'll gain the ability to select and modify the steps as needed.
Step 3: To proceed with creating a function, follow these steps:
Select the checkbox next to the steps you want to include. Make sure to choose at least two steps.
After selecting the steps, click on the "Create Function" button. This button is located on the right-hand side of the panel, specifically in the "Actions" section.
Step 4: Upon clicking the "Create Function" button, a prompt will appear on the screen. Here, you should enter the function name and description.
If desired, you can also input tags (e.g., "click function"). Note: that providing tags is optional.
After entering the necessary information, click the "Create Function" button. Following this action, a toast message will appear at the bottom right corner of the screen, indicating that the function was successfully created.
Step 1: Select the "Functions" action type from the dropdown next to the step number.
After selecting "Functions," two options will appear: one to Execute Function and the second to Execute Test Case.
Execute Function: Using the "Execute Function" option allows you to import the steps present in a previously created function.
Step 2: Click on the "Execute Function" option. Provide the necessary description and then click on "Select Function."
After clicking, a prompt will appear, allowing you to choose a previously created function.
"After selecting the function you want to import into the script, you'll be able to view the steps of that function."
If you wish to add parameterization to the available steps, locate the "Parameterize" button next to the description field. Click on it, then toggle the "Parameterize Step" option.
Once enabled, input the desired value in the "Data Column" field for parameterization. After entering the value, click on the "Save" button.
If you haven't added parameterization, you can directly execute your test by clicking the "Dry Run" button.
In case you have added parameterization in the functions, a panel on the right-hand side will be visible. An option will already be selected and highlighted as "Parameter File." This option will be enabled by default for the new feature. Note: Parameterization in functions is only available for the new feature TDM.
Step 1: Navigate to the web testing service and click on the project you have previously created. Inside this project, where you have both scripts and functions, locate and select the "Project Setup" section.
Step 2: After clicking on the "Project Setup," navigate to the "Functions" tab located on the left-hand side panel.
Here, you will find a list of all functions, including recently added ones. You can click on the three dots located to the left of the function name.
This will reveal a menu with two options: "Edit" and "Delete." Choose the "Edit" option to modify the function. Choose the "Delete" option to Delete the function.
After choosing the 'edit' option, you will see a prompt with the prepopulated function name, description, and tags (if you mentioned them earlier while creating the function). You can click on the respective fields to edit them and then click on the 'update function' button.
Step 1: Click on the function for which you want to edit the steps. Upon clicking, you will be navigated to the steps page.
On this page, locate and click the 'Edit Steps' button in the top-right corner. After making your edits, click the 'Save' button.