Amid rapid digital transformation, Qualitia Automation Studio’s (QAS) “Desktop Objects” feature offers a robust solution for efficient test automation. 🔧
💻 QAS’s Desktop Objects feature is crafted to streamline the creation, maintenance, and usage of desktop application test objects. With this feature, users can import and synchronize objects from HP Unified Functional Testing’s (UFT) shared object repositories, ensuring seamless integration and alignment between your testing tools and repositories. This flexibility caters to diverse project needs and significantly boosts the efficiency of your test automation process.
🚀 Compatibility: One of the standout attributes of the Desktop Objects feature is its compatibility with other test automation tools. This feature fosters a harmonized work environment, resulting in improved productivity and quality of your test automation efforts.
🎯 Convenience: Setting up and using the Desktop Objects is simple and intuitive. Users can effortlessly import shared object repositories, view the imported objects, and manage the associated properties all within the QAS interface. This ease of usage reduces the learning curve for a team, allowing them to focus on other aspects of software quality.
⏱️ Efficiency: The true potency of the Desktop Objects feature lies in its ability to create and manage test cases that accurately reflect the desktop application under test. This not only refines the test case creation process but also saves valuable time for your test automation team.
🔄 Synchronization: QAS adopts an innovative approach to sync object, ensuring your test objects in QAS are always up-to-date with the shared object repository. This feature enhances the stability of your test cases, reducing test execution failures due to outdated or missing objects.
📂Intuitiveness: Desktop Objects feature provides a logical structure to manage your objects, making it easier for your team to navigate and handle these crucial test automation elements.
🔐 Secure: QAS safeguards all your desktop objects, ensuring they are secure and only accessible within the confines of the Qualitia Automation Studio environment. This assures control and integrity over your test objects, promoting quality assurance in your test automation process.
Introduction
As a Software Automation Engineer, you can use QAS for Desktop to create script-less test cases for desktop applications. This software leverages Micro Focus - Unified Functional Testing (UFT) to add objects and manage test suite executions.
The functionality for handling test artefacts, like test case creation and test suite execution, remains the same across desktop, web, and mobile applications.
However, creating test objects for desktop applications is a different process. This guide will walk you through the specifics of working with desktop objects in Qualitia.
Desktop Objects in Qualitia Automation Studio
In QAS, Desktop Objects include attributes such as class, properties, and property values. You will work with two types of desktop application objects:
Descriptive Programming (DP):
Create DP objects manually or import UFT objects from a Test Shared Repository (*.tsr file).
Update the DP objects in Qualitia Automation Studio when necessary.
Refer to Working with DP Objects for detailed instructions.
Object Repository (OR):
For UFT objects stored in a Test Shared Repository (tsr), specify the path to the tsr file to map the repository with Qualitia Automation Studio.
Use UFT objects from the mapped repository in your test cases.
Refer to Working with OR Objects for detailed instructions.
Remember, UFT objects in Qualitia Studio can not be modified directly. Modify the existing UFT objects or add new ones in the repository and synchronize the changes in Qualitia Automation Studio.
Supported Technologies
Use Qualitia for Desktop to test desktop applications built with the following technologies:
Technology |
.Net SilverLight |
.Net WebForms |
.Net Windows Forms |
.Net WPF |
ActiveX |
Delphi |
Flex |
Generic |
Mobile |
Oracle |
PeopleSoft |
PowerBuilder |
SAP Web |
SAPNWBC |
SAPWDJ |
SAPWebTxt |
SAPUI5 |
Seibel |
Stringray |
Supplemental |
Swing |
Terminal Emulators |
UI Automation |
Visual Basic |
VisualAge Smalltalk |
Web2.0 and Web |
Win |
Windows Runtime |
View Test Cases Associated with an Object
To view the test cases associated with an object:
Login to you QAS - Client.
Access Develop from left navigation.
Click Objects tab icon from the right side of the screen.
From tree view, right-click the object and select View Test Cases.
You can view a list of test cases associated with the chosen object.
Working with DP Objects
Add a DP Object
Follow these steps to add a DP object:
Login to QAS Client.
Access Develop from left navigation.
Click Objects tab icon from the right side of the screen.
Click DP object tree node in the left pane.
Click New button in the right pane to open the New dialog box.
Follow these steps in the order provided:
Select a parent object.
Enter Object Name and Description.
Select Technology and Object Class.
Click Add.
Double-click the property field to add an object property and its property value.
Click OK.
Note: If you don't define any object property with its value, the object will be highlighted in red and termed as an empty object.
Edit a DP Object
Follow these steps to edit a DP object:
Login to you QAS Client.
Access Develop from left navigation.
Click Objects tab icon from the right side of the screen.
Click the DP object tree node in the left pane.
In the right pane, select Edit.
Make necessary changes and click OK.
Delete DP Objects
Before deleting any DP object, be aware of the following:
Objects used in a task or test case cannot be deleted.
Deleting a parent object will also delete its child objects.
A parent object cannot be deleted if one of its child objects is used in a task or a test case.
Two child objects under different parent objects cannot be deleted simultaneously.
Follow these steps to delete DP objects:
Login to your QAS - Client.
Access Develop from left navigation.
Click Objects tab icon from the right side of the screen.
Click the DP object tree node in the left panel.
In the right panel, select the child object you want to delete.
Press Ctrl (in Windows) and click all the objects that you want to delete.
Click Remove.
Import DP Objects from a tsr or bdb file
After importing DP objects, QAS will only add the new DP objects without updating or removing existing ones. If any object name and its class for an imported DP object conflicts with an existing object, QAS will append '_' followed by a sequential number (starting from 1) in the object name.
Follow these steps to import objects from a tsr or a bdb file:
Login to your QAS - Client.
Access Develop from left navigation.
Click Objects tab icon from the right side of the screen.
Click DP object tree node in the left pane.
Click Import.
Locate tsr or bdb file that you want to import
Click OK.
Working with Object Repository (OR) Objects
Map a tsr file with a Qualitia Project
Follow these steps to map a tsr file with a Qualitia project:
Login to your QAS - Client.
Access Develop from left navigation.
Click Objects tab icon from the right side of the screen.
Click Edit for the project you want to map with a repository.
Click Browse (...) next to the Global TSR Path field, then locate and select the tsr file.
Click Save.
Replace the Mapped tsr File
To replace a mapped tsr file for a project:
Login to your QAS - Client.
Access Develop from left navigation.
Click Objects tab icon from the right side of the screen.
Click Edit for the project you want to map with a repository.
Click Browse (...) next to the Global TSR Path field, then locate and select the new tsr file.
Choose one of the following options:
Preview: View new set of objects in a CSV format report. You can view all new, modified, and deleted objects compared to current Object Repository objects. After viewing, click Proceed or Abort.
Proceed: Map the new tsr file.
Abort: Cancel mapping process.
Synchronize Object Repository Objects with the Test Shared Repository
To synchronize Object Repository objects with the test shared repository:
Login to your QAS - Client.
Access Develop from left navigation.
Click Objects tab icon from the right side of the screen.
Click Sync the TSR located at the top-right corner.
Choose one of the following options:
Preview: View new set of objects as a CSV format report. You can view all new, modified, and deleted objects compared to current Object Repository objects. After viewing, click Proceed or Abort.
Proceed: To sync the objects.
Abort: To cancel the synchronization process.
View Test Cases Associated with an Object Repository Object
Login to your QAS - Client.
Access Develop from left navigation.
Click Objects tab icon from the right side of the screen.
From the tree view, right-click the OR object and select View Test Cases.
The system will then display a list of test cases associated with the chosen OR object.
💡 Golden Nuggets: Best Practices for Desktop Object Management
<TBD>
🔧 Got a problem? Let’s fix!
Sometimes you might face issues while working with desktop objects in Qualitia. Here are some solutions for common problems:
Issue: Object Repository objects are not visible in Qualitia.
Solution: Make sure you have mapped your project with the correct tsr file containing your Object Repository objects. If you have made changes in the repository, remember to synchronize the repository with Qualitia.
Issue: Test execution fails because the object is not found during runtime.
Solution: Double-check the properties and values of the object. Make sure the application's UI has not changed. If it has, update the object properties in UFT's object repository and synchronize the changes with Qualitia.
Issue: Unable to import a DP object from a tsr file.
Solution: Ensure that the tsr file is not open in UFT or any other application during the import process.
Issue: Unable to delete a DP object.
Solution: Check if the object is used in any test cases. An object that is used in a task or test case cannot be deleted. Also, ensure you have the necessary permissions to delete the object.
Remember, to get the most accurate results, always keep your object repository updated and synchronize the changes with Qualitia Automation Studio. Happy testing!
📞📚 Here to Help: Support and Resources
Need a helping hand? Don't hesitate to reach out to your Qualitia Relationship Manager. For more resources, our official Qualitia documentation and community website are just a click away!