Table of Contents |
---|
This topic provides information on how to resolve the common issues you may encounter while working on web and mobile applications automation.
General Issues
This topic provides information about the general issues that you may see while working with Qualitia Studio.
...
Problem: The following error message occurs while adding a new LDAP user: The user name or password is incorrect.
Root Causes: The above error may occur due to the following reasons:
You are trying to add a LDAP user by accessing the Notification Server remotely.
The application identified is a local account and does not have the permission to browse the Active Directory.
Domain password of the user you are trying to add has expired.
Solution: To resolve this issue, refer to https://knowledge.broadcom.com/external/article/151985/systemruntimeinteropservicescomexception.html .
Qualitia Shows Java Out of Memory Error
...
Unzip the file.
Copy mysql-connector-java-8.0.11.jar and place it to %localappdata%\QualitiaWDClient\app-5.x.x\WebDriver\lib location on the machine where you have installed Qualitia.
Navigate to %localappdata%\QualitiaWDClient\app-5.x.x\WebDriver.
Edit build.xml and replace mysql-connector-java-x.x.x-bin with the new file name (i.e. mysql-connector-java-8.0.11.jar).
Save and close the file.
Restart Qualitia Automation Studio.
Incompatible .Net Framework: Method not found: '!!0[] System.Array.Empty()'
...
Summary: This issue occurs when .Net framework you have installed is not compatible.
...
Close the dialogue box and upgrade the .Net Framework to 4.6.2. Refer to the Prerequisites and Configurations section for more information.
...
Suite Execution Gets Aborted During Execution for Suite with Test Cases Having 1000 or More Test Steps
Problem: Suite Suite execution gets aborted during execution for Suite with test cases having 1000 or more test steps.
Reason: This issue is observed when you execute suites from different Windows client machines connected over VPN that point to a Qualitia server, which is located on a different machine. This issue occurs when the Set time automatically option on your Windows client machines is turned on and the sync time for all the Windows client machines is different.
...
The following table shows the error message displayed on the screen or shown in the logs.
Message | Description |
---|---|
User is Inactive | When the user is marked as inactive in the database. The solution is the user must be activated from the database. |
Invalid Password | When the user has entered the wrong password. The solution is to enter the correct password or request the admin to reset a password. |
The Authentication has failed | When the user authentication fails due to an incorrect username. |
No active session is mapped to the client | When a user logins again, the user is not able to find any session. |
Could not find a client with the specified client Id | When the client id is invalid. The solution is to provide the valid client Id must be provided from the configuration file. |
Could not find a user with the specified user Id | When user Id is invalid. The solution is to enter the correct user Id. |
...
Solution:
This error occurs when Qualitia is launched using the incorrect shortcut and user tries to execute the test case for Mobile web or native application.
...
Go to the Windows Service:
Right-click on the Qualitia.Web.Service service.
Click Properties from the context menu.
Click the Log On tab.
Select the This account checkbox:
Click Browse. The Select User window appears:
Click Locations, select the Entire Directory option on the Locations windows, and then click OK:
Enter the name of the system user you want to select and click Check Names:
Enter the password in the Password and Confirm password field.
Click Apply.
Restart the Qualitia.Web.Service service.
...
Cannot connect to the Qualitia Server, there might be the following reasons:
Port might not be accessible.
Server URL might be wrong.
Qualitia Server might not be running.
Summary: Qualitia Services might be unstable.
Solution: You need to repair the Qualitia services that are installed on the Qualitia server.
...
Open the computer where the Qualitia Server is installed.
Double-click the Qualitia - Server icon on your desktop.
Click the Repair button.
...
On the Qualitia License Server, open the url: http://localhost:1947/_int_/products.html
If you see following error “Disabled due to Cloning”, take the screenshot and open a support ticket.
If no such error is displayed in the Qualitia License Server, restart the “Sentinal LDK License Manager” service on the server system.
If the issue persists for a particular Qualitia Client system only, re-validate the settings documented /wiki/spaces/QAS8/pages/1381630355 here.
Solution: This error occurs when the Sentinel License Manager is missing on the designated machine. Before initiating the Qualitia installation, you must first activate Qualitia license. Activating license includes installing Sentinel License Manager (haspdinst.exe).
To resolve this error:
...
You will find this file in the Support_Packages folder shared with Qualitia Automation Studio setup.
...
Launch the Command Prompt as an administrator.
Navigate to the folder where haspdinst.exe exists.
Execute haspdinst.exe.
Continue the /wiki/spaces/QAS8/pages/1381630463Installation Process.
Qualitia License Key Not Found. (H0007)
...
This topic provides information about the issues that you may face while working with test data.
Unable to Add Test Data
Problem: You may encounter any of the following pop-up messages while adding the test data:
...
Reason: The antivirus of your system has blocked the test data excel file.
...
Solution:
Do one of the following:
If you have access to Manage Windows Credentials of your computer | Perform the following steps:
|
If you do not have access to Manage Windows Credentials of your computer | Perform the following steps:
|
Filename too long (Git-version control system)
...
Workaround 3:
Update the registry key (in Windows 10, version 1607, and later)
HKLM\\SYSTEM\\CurrentControlSet\\Control\\FileSystem LongPathsEnabled (Type: REG_DWORD) should be set to 1.
Info |
---|
If any of the workaround mentioned above does not work or you are unable to follow these workarounds due to any permission-related issues, you can move the Qualitia project to some local drive with relatively shorter path. Moving the project to the local drive or shorter path saves some character space and may resolve the issue. |
Error in updating the test case, please check your access to GIT server. Git error: Too many redirects of error in authentication.
...
This error occurs when authentication details provided under Project Settings are incorrect.
...
Though we do not recommend this, however, an alternative can be to set the Enable protected mode ON and set the Internet security options to Medium. This but can have flaky behaviors here and there.
...
Qualitia Object Spy Does Not Add Objects with XPath Locator Type
...
Problem: Qualitia Automation Web Recorder does not work and shows the following message "Recorder process could not be initiated within the stipulated time(120 s). Please try starting recording again".
Reason 1: AUT is not loading within 120s.
Solution 1: You can check whether your application under test is taking more than 120 seconds to load. Contact Qualitia support on configuring the time-out.
Reason 2: This error message is displayed as your QAS client is using Open JDK.
...
Unable to Switch to Mobile Web-View
Problem: In the Qualitia Mobile Recorder, you might not be able to open a web application or web-view context of a hybrid application if chrome has more than 20 open tabs. Unable Unable to switch to Mobile Web View and Loader keeps on Loading the screen.
Solution: It is recommended to close all the tabs.
Problem in Viewing Samsung Galaxy S9+ in Qualitia Mobile Recorder
Problem: Samsung Galaxy S9 view + is distorted in Qualitia Mobile Recorder and MOS.
...
Stop the agent.
Go to Applications > MOSAgent > Right click >Show package content > Contents > MacOS.
Double-click RunAgent.
A terminal opens to start the agent.In the logs, find the following message using the WDA path:
/var/folders/vt/f2c8mcz536x6d9_vbgs7dh740000gn/T/QualitiaMOSAgent/WDATemp
Note: This path differs for every user.Copy that path and open in finder.
Delete all the content inside the WDATemp folder.
Download WDA v2.20.0 for your Xcode version from the following location:
https://github.com/appium/WebDriverAgent/releases
Note: Download the WDA version that best matches to your Xcode Version.Extract the downloaded file, copy all the contents, and paste
them in the WDATemp folder in the following location: /var/folders/vt/f2c8mcz536x6d9_vbgs7dh740000gn/T/QualitiaMOSAgent/WDATemp
Note: This path differs for every user, you must find the WDATemp folder path as explained in step. 4.Open WebDriverAgent.xcodeproj in Xcode and make sure you set proper Team and check Automatically manage signing in the Signing and Capabilitiessection for WebDriverAgentLib, WebDriverAgentRunner and IntegrationApptargets.
Click Product > Build for >Testing.
After the build is succeeded, click Product > Build.
Close Xcode.
In the agent, connect to a device and select an application.
Note: You might have to perform this step every time you restart the machine as the temp folders are deleted and recreated whenever the machine restarts.
...
Every time you launch the Chrome or Edge recorder, the extension ID remains the same, which is dlihcndnnidnnmhpobcpjfhepjkjigjc. You must whitelist this ID. This ID remains the same as long as the key in the manifest configuration file is not changed.
This modification to fix the extension loading issue is available in Qualitia Automation Studio 8.3.2. For older releases, perform the following steps:
Download the build from the following path: https://s3.console.aws.amazon.com/s3/buckets/local-it-backup?prefix=dailybuilds/QAS/release/8.1.0/8.1.0.702/.
Install Qualitia Server and Client. (Refer to Installation Process for the installation steps)
Navigate to the path: C:\Users\yourName\AppData\Local\QualitiaWDClient\app-8.1.0\WebDriver.
Open the qualitia-8.1.0.jar file using the 7-Zip achieve method.
Note: You require 7-Zip tool to perform this activity.Drag the ChromiumExtension.zip file to C:\Users\yourName\AppData\Local\QualitiaWDClient\app-8.1.0\WebDriver.
Extract the zip file.
Now, keep the extracted file and delete the zip file.
Open the manifest.json file present in the ChromiumExtension folder.
Add the following line to manifest JSON file
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1nNiSfr3mNspSohi6ui/m2CVFKOsS7GxOmwXNTP5pMgW7dManR+jf8DCggQTO5+u6UIl7uBs8Vx4Z96oe7P8UUb2ByGbjXorr5AzQJ4vijvUcUyrZVRk8Wa6P+WtQ+2RO8pR2XnByIzFoII3cvTrVqsWpBjFSfjAxin2Lme4AcCAt+rAF5ce/2VRXq2A9uVamQP7ZzUcG8rTc3fz/bqwiVOvMbTafplvg7yKPL5sUHbjZwXMubLdeSGUvUh++qy8PUt14eHzV2uQluxIVq7L2dYhnB2C0fZy8D4uzErJywDogMFWrf9tU1b6tXMVjAFRKa6ddinWbqGKwT+02kBxTQIDAQAB",
Save and close the file.
Compress all files by selecting them in the ChromiumExtension folder
Rename the compressed file as ChromiumExtension. So it will read as ChromiumExtension.zip.
Now repeat step 4. (Ignore this step if already jar open)
Drag ChromiumExtension,zip file from folder to 7-Zip opened archieve view.
On the popup window, click Yes.
Restart the machine.
Go to C:\Users\yourName\AppData\Local\Temp folder and delete all the files. (Click Skip if files won’t get deleted)
Launch Qualitia Studio Client.
Start Chrome/Edge Recorder.
Open the extension manager in the Chrome/Edge browser and enable Developer Mode.
Now, verify the Qualitia recorder extension ID.
...
Problem: Test case execution on a custom browser profile fails if any instance of the same browser is open. The error log of the test suite execution result contains the message “user data directory is already in use".
Root Cause: In the associated execution profile, the specified Capability Profile path is common for all the browser profiles.
...
The DragAndDropToObject Action is not Working
Problem: The DragandDropToObjectaction fails to drag and drop an object to the specified location. The execution report displays the associated step as Passed though no operation was performed on the object.
Summary: The DragAndDropToObject action fails when the draggable attribute for the associated HTML element for the object is set to false.
Solution: Modify the associated HTML element for the object to set the draggable attribute to true or auto.
The OpenApplication Action is Getting Failed
Problem: The OpenApplication action fails on UFT version 2021 and above.
Reason: The OpenApplication action fails while launch API due to technical limitation.
Solution: Use the UFT versions older than 2021.
The SearchandSelect Action of Lookup is Getting Failed
Problem: The SearchandSelect action of lookup fails while executing the recording through Qualitia Automation Studio.
Reason: While recording, the lookup results might display names with secondary information as well. In such cases, the Qualitia Automation Web Recorder captures both values.
For example, if you search for "John" and there are results that display the related names with their secondary information, such as their designation, team, and so on, then the recorder captures both values. Refer to the following screenshot for more information:
...
Here the recorder selects the parameter as "John Lightning Training" instead of only "John".
Solution: Manually edit the parameters of the SearchandSelect action in QAS, keeping only the relevant information.
The PressKeys Action Does not Execute on an Inactive Screen
...
Case 1: When the screen is minimized
On your local computer, close all open Remote Desktop sessions.
Launch the Registry editor (regedit.exe).
Do one of the following:
To specify the setting for the current user, open HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client.
To specify the setting for all the users, open HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server Client.
Create a DWORD value as RemoteDesktop_SuppressWhenMinimized and set it to 2 (hexadecimal or decimal).
Modify the registry settings on your local (controlling computer) so that minimizing the Remote Desktop window does not affect the GUI of the controlled computer.
Close the Registry Editor.
Case 2: When The When The VM is disconnected
The press keys functionality is achieved by using a script with the SendKeys action, in VBScript. To open the RDP session, Windows provides the tscon utility which allows to connect to another session on a Remote Desktop session Host server.
...
Solution: Before executing the test suite, you need to configure the mapped or default execution profile from the Qualitia client.
Info |
---|
If you are executing through the offline suite, open the Qualitia Offline Configuration Manager to select the offline suite and the mapped execution profile. |
Perform the following steps:
...
Solution: Create a new offline package for the newly created custom action. For more information, refer to Creating an Offline Package.
Importing Offline Package Report
...
Qualitia configuration file does not exist, can you please save Qualitia Configuration
...
This issue occurs when the configuration file is missing. The file is created when you save the configuration settings for the first time.
This issue may occur when creating offline package (from File > Offline Package) as well.
Solution:
Log on to Qualitia Automation Studio.
On the Setting menu, click Configuration Setting.
Click OK.
Now create an offline package from File > Offline Package.
...
Problem: When upgrading the MOS agent from any of its previous version, you may face issue in an ongoing MOS or Mobile Recorder session.
Reason: After After uninstalling the previous MOS agent and MOS Server on the Macintosh machine, the WDATemp folder is not getting cleaned. Hence, when you install the new MOS agent build, it still uses the older WDA dependencies that are present in the WDATemp folder, which causes the problem.
Solution: After installing the new MOS agent on the Macintosh machine, you need to restart the machine. The WDATemp folder is cleaned and it downloads the newer WDA dependencies.
...
Generate the PAT with a user that is part of the Project Administrators group.
Qualitia recommends this option for generating a PAT.Allow Bypass Rules on Work Items Updates
Perform the following steps:In TFS/Azure DevOps project, ensure that the user that is used to generate PAT is member Contributors group / Project Team members group.
Click Project Settings > Permissions.
Select the user group that has the user to whom you want to provide access (Contributors/Project Team members).
From the Bypass rules on work items updates list, select Allow.
Refer to the following screenshot.
Qualitia does not recommend this option for PAT generation as it changes the access levels for all the users in the group.
Note: Please connect with your Azure DevOps Admin team to discuss the PAT generation and access level management.
...
Teamcity Agent Running Headless Execution on Window Server System
Sometimes users are unable to view the test case execution on theexecution on the designated TeamCity build agent.
It is observed that setting the right Java path resolves this problem. You can try below:
...