How to Generate Desktop Automation Code in VitthaTestPro
Manual testing helps testers check website functionality by interacting with the website. But when you need to repeat the same testing activities, automation can help save time.
VitthaTestPro includes a Functional Testing Automation Code mode that helps testers generate Python and Playwright automation code based on supported recorded testing actions.
In this guide, you will learn how to use the Functional Testing Automation Code mode in VitthaTestPro and where to find the generated automation code.
What Is Functional Testing Automation Code in VitthaTestPro?
Functional Testing Automation Code in VitthaTestPro helps you generate a starting point for desktop UI test automation using Python and Playwright.
You can perform supported testing interactions, and the application uses the captured actions to generate automation code.
The generated code is intended to help you get started with automation. You should review, customize and validate the code before using it for your actual testing requirements.
[Upload Screenshot Here: VitthaTestPro dashboard showing Functional Testing Automation Code mode]
Suggested caption: Select Functional Testing Automation Code in VitthaTestPro.
Image Alt Text: Functional Testing Automation Code mode in VitthaTestPro desktop UI testing software
Step 1: Open VitthaTestPro
Open VitthaTestPro on your Windows computer.
If you haven’t installed the application yet, follow our installation guide first.
How to Download and Install VitthaTestPro on Windows
After opening the application, locate the available testing modes.
[Upload Screenshot Here: VitthaTestPro main dashboard]
Suggested caption: Open the VitthaTestPro dashboard to access automation testing features.
Image Alt Text: VitthaTestPro desktop testing software dashboard
Step 2: Select Functional Testing Automation Code
Select Functional Testing Automation Code from the available testing modes.
This mode is designed to generate desktop functional testing automation code from supported testing actions.
Once a testing mode is selected, other testing mode buttons remain disabled while the selected testing session is in progress, according to the application’s workflow.
[Upload Screenshot Here: Functional Testing Automation Code mode selected]
Suggested caption: Select Functional Testing Automation Code to begin the automation code generation workflow.
Image Alt Text: Functional Testing Automation Code selected in VitthaTestPro
Step 3: Start Your Testing Session
Start your testing session and follow the application interface to begin interacting with the website you want to test.
You can use the website’s functionality to perform the testing actions that you want to use as a basis for automation.
[Upload Screenshot Here: Actual VitthaTestPro automation code testing session started]
Suggested caption: Start your desktop automation code generation session in VitthaTestPro.
Image Alt Text: VitthaTestPro desktop automation code testing session
Step 4: Perform Website Testing Actions
Now interact with the website and perform the supported testing actions that you want to use as the basis for automation code.
For example, if you are testing a login page, you may perform actions such as:
| Action | Example |
|---|---|
| Open a website | Navigate to the login page. |
| Enter username | Type the username into the username field. |
| Enter password | Type the password into the password field. |
| Click login | Click the login button. |
| Observe response | Check the response displayed by the website. |
These testing actions help create a starting point for automation code.
[Upload Screenshot Here: Actual browser interactions during Functional Testing Automation Code session]
Suggested caption: Perform website testing actions that will be used as the basis for automation code.
Image Alt Text: Performing website login testing actions in VitthaTestPro automation code mode
Step 5: Generate Automation Code
After performing your supported testing actions, use the application’s workflow to generate the automation code.
VitthaTestPro generates Python and Playwright code based on supported recorded actions.
This code can help testers start building automation scripts without writing every initial interaction from scratch.
[Upload Screenshot Here: Actual generated Python and Playwright automation code inside VitthaTestPro]
Suggested caption: Generate Python and Playwright automation code using VitthaTestPro.
Image Alt Text: Python and Playwright desktop UI automation code generated by VitthaTestPro
Step 6: Review the Generated Automation Code
Generated automation code is a starting point, not a guarantee of a complete test script.
Before using the code, review it carefully.
You should check:
-
Whether the website URL is correct.
-
Whether the recorded actions match your testing requirements.
-
Whether the selectors are suitable and stable.
-
Whether the expected results are included.
-
Whether additional validation is required.
-
Whether the code handles errors appropriately.
-
Whether the code works correctly in your test environment.
[Upload Screenshot Here: Actual generated automation code being reviewed]
Suggested caption: Review and customize the generated Python and Playwright automation code.
Image Alt Text: Reviewing generated Python Playwright automation script from VitthaTestPro
Step 7: Save and Use the Generated Code
Review the generated code and use the application’s supported workflow to access or save your generated files.
You can customize the script according to your project requirements.
For example, you may add additional validations, test data, assertions and error-handling logic to make the automation script more suitable for your testing requirements.
[Upload Screenshot Here: Actual generated automation code file in the VitthaTestPro results folder]
Suggested caption: Access the generated desktop automation code from your testing results.
Image Alt Text: Generated desktop UI automation code file in VitthaTestPro test results
Step 8: Find Your Testing Results
VitthaTestPro stores testing results separately from the application installation folder.
Testing Results Folder:
C:\VitthaTestPro_Test_Results\
Depending on your testing session, this folder may contain:
-
Screenshots
-
Testing evidence
-
Recorded browser actions
-
Testing findings
-
Reports
-
Generated automation code
[Upload Screenshot Here: Actual VitthaTestPro_Test_Results folder displaying generated automation files]
Suggested caption: Find generated automation code and testing evidence in the VitthaTestPro results folder.
Image Alt Text: VitthaTestPro test results folder containing generated desktop automation code
Example: How Desktop Automation Code Can Help
Imagine you need to test a login page every time the website is updated.
You normally perform the following actions manually:
-
Open the login page.
-
Enter a username.
-
Enter a password.
-
Click the login button.
-
Check the response.
VitthaTestPro’s Functional Testing Automation Code mode can help generate a starting point for Python and Playwright automation code based on supported recorded actions.
You can then review and improve the code to include the expected results and additional validations required for your test case.
Manual testing is like checking the same process yourself every time. Automation code helps you prepare a script that can repeat supported testing actions, after you review and configure it properly.
Functional Testing vs Functional Testing Automation Code
| Functional Testing | Functional Testing Automation Code |
|---|---|
| Perform website UI testing | Generate Python + Playwright automation code |
| Capture browser actions | Use supported recorded actions as a basis for code |
| Collect screenshots and evidence | Create a starting point for automation |
| Record testing findings | Review and customize generated code |
| Document testing activities | Use the script for further automation development after validation |
Other VitthaTestPro Tutorials
-
How to Update VitthaTestPro on Windows – Link to your published update guide
-
How to Use Functional Testing in VitthaTestPro – Link to your published Functional Testing guide
-
How to Use Mobile Testing – Tutorial coming soon
-
How to Generate Mobile Automation Code – Tutorial coming soon
Conclusion
VitthaTestPro Functional Testing Automation Code mode helps testers generate a starting point for desktop UI automation using Python and Playwright.
Instead of starting every script from scratch, you can use supported recorded testing actions to generate automation code, review it and customize it according to your project requirements.
Test Smarter. Save Time.
Explore VitthaTestPro:
Official VitthaTestPro Website