Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

...

This error occurs when the Google Chrome browser and Chromedriver are not compatible.
In such cases, you must update the browser driver versions. You can get the correct chrome drivers here.

  1. Once downloaded, open Qualitia Automation Studio, go to Setting > Local Profile > Execution Configuration.

  2. Click BrowserChrome.

  3. In Chrome Driver Path, select the chromedriver.exe which you have downloaded & extracted for your chrome version.

  4. Click OK.

...

  1. Download the compatible version of MySQL Driver.

  2. Unzip the file.

  3. 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.

  4. Navigate to %localappdata%\QualitiaWDClient\app-5.x.x\WebDriver.

  5. 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).

  6. Save and close the file.

  7. 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.

To determine which .Net Framework version is installed, refer to the Microsoft documentation.

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.

...

  1. Go to the Windows Service:

    Image RemovedImage Added
  2. Right-click on the Qualitia.Web.Service service.

    Image RemovedImage Added
  3. Click Properties from the context menu.

  4. Click the Log On tab.

  5. Select the This account checkbox:

    Image RemovedImage Added
  6. Click Browse. The Select User window appears:

    Image RemovedImage Added
  7. Click Locations, select the Entire Directory option on the Locations windows, and then click OK:

  8. Enter the name of the system user you want to select and click Check Names:

  9. Enter the password in the Password and Confirm password field.

    Image RemovedImage Added
  10. Click Apply.

  11. Restart the Qualitia.Web.Service service.

...

  • Cannot connect to the Qualitia Server, there might be the following reasons:

    1. Port might not be accessible.

    2. Server URL might be wrong.

    3. 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.

...

  1. Open the computer where the Qualitia Server is installed.

  2. Double-click the Qualitia - Server icon on your desktop.

    Image RemovedImage Added
  3. Click the Repair button.

...

  1. On the Qualitia License Server, open the url: http://localhost:1947/_int_/products.html

  2. If you see following error “Disabled due to Cloning”, take the screenshot and open a support ticket.

  3. If no such error is displayed in the Qualitia License Server, restart the “Sentinal LDK License Manager” service on the server system.

  4. If the issue persists for a particular Qualitia Client system only, re-validate the settings documented /wiki/spaces/QAS8/pages/1381630355 here.
     

    Image RemovedImage Added

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:

...

  1. Launch the Command Prompt as an administrator.

  2. Navigate to the folder where haspdinst.exe exists.

  3. Execute haspdinst.exe.

  4. 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:

...

Image Modified

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:

  1. From the Start menu of your computer, open Control Panel.

  2. Click User Accounts > Credential Manager > Manage Windows Credentials.

  3. Delete all the credentials associated with the Git server.

  4. After deleting the Git server credentials, push the project artifacts.

If you do not have access to Manage Windows Credentials of your computer

Perform the following steps:

  1. Open the command prompt.

  2. Enter the following command and hit Enter to delete the stored Git server credentials:
    For /F "tokens=1,* delims= " %G in ('cmdkey /list ^| findstr git') do cmdkey /delete %H

  3. After deleting the Git server credentials, push the project artifacts.

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.
Image RemovedImage Added

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.

...

This error occurs when the Google Chrome browser and Chromedriver are not compatible.
In such cases, you must update the browser driver versions. You can get the correct chrome drivers here.

  1. Once downloaded, open Qualitia Automation Studio, go to Setting > Local Profile > Execution Configuration.

  2. Click BrowserChrome.

  3. In Chrome Driver Path, select the chromedriver.exe which you have downloaded & extracted for your chrome version.

  4. Click OK.

...

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.

...

  1. Stop the agent.

  2. Go to Applications > MOSAgent > Right click >Show package content > Contents > MacOS.

  3. Double-click RunAgent.
    A terminal opens to start the agent.

  4. 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.

  5. Copy that path and open in finder.

  6. Delete all the content inside the WDATemp folder.

  7. 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.

  8. 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.

  9. 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.

  10. Click Product > Build for >Testing.

  11. After the build is succeeded, click Product > Build.

  12. Close Xcode.

  13. 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:

  1. 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/.

  2. Install Qualitia Server and Client. (Refer to Installation Process for the installation steps) 

  3. Navigate to the path: C:\Users\yourName\AppData\Local\QualitiaWDClient\app-8.1.0\WebDriver.

  4. Open the qualitia-8.1.0.jar file using the 7-Zip achieve method.
    Note: You require 7-Zip tool to perform this activity.

  5. Drag the ChromiumExtension.zip file to C:\Users\yourName\AppData\Local\QualitiaWDClient\app-8.1.0\WebDriver.

  6. Extract the zip file.

  7. Now, keep the extracted file and delete the zip file.

  8. Open the manifest.json file present in the ChromiumExtension folder.

  9. Add the following line to manifest JSON file "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1nNiSfr3mNspSohi6ui/m2CVFKOsS7GxOmwXNTP5pMgW7dManR+jf8DCggQTO5+u6UIl7uBs8Vx4Z96oe7P8UUb2ByGbjXorr5AzQJ4vijvUcUyrZVRk8Wa6P+WtQ+2RO8pR2XnByIzFoII3cvTrVqsWpBjFSfjAxin2Lme4AcCAt+rAF5ce/2VRXq2A9uVamQP7ZzUcG8rTc3fz/bqwiVOvMbTafplvg7yKPL5sUHbjZwXMubLdeSGUvUh++qy8PUt14eHzV2uQluxIVq7L2dYhnB2C0fZy8D4uzErJywDogMFWrf9tU1b6tXMVjAFRKa6ddinWbqGKwT+02kBxTQIDAQAB",

  10. Save and close the file.

  11. Compress all files by selecting them in the ChromiumExtension folder

  12. Rename the compressed file as ChromiumExtension. So it will read as ChromiumExtension.zip.

  13. Now repeat step 4. (Ignore this step if already jar open)

  14. Drag ChromiumExtension,zip file from folder to 7-Zip opened archieve view.

  15. On the popup window, click Yes.

  16. Restart the machine.

  17. Go to C:\Users\yourName\AppData\Local\Temp folder and delete all the files. (Click Skip if files won’t get deleted)

  18. Launch Qualitia Studio Client.

  19. Start Chrome/Edge Recorder.

  20. Open the extension manager in the Chrome/Edge browser and enable Developer Mode.

  21. Now, verify the Qualitia recorder extension ID.

...

In such cases, you must update the browser driver versions. You can get the correct chrome drivers here.

  1. Once downloaded, open Qualitia Automation Studio, go to Setting > Local Profile > Execution Configuration.

  2. Click BrowserChrome.

  3. In Chrome Driver Path, select the chromedriver.exe which you have downloaded & extracted for your chrome version.

  4. Click OK.

...

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 profilethe 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

    1. On your local computer, close all open Remote Desktop sessions.

    2. Launch the Registry editor (regedit.exe).

    3. Do one of the following:

      1. To specify the setting for the current user, open HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client.

      2. To specify the setting for all the users, open HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server Client.

    4. Create a DWORD value as RemoteDesktop_SuppressWhenMinimized and set it to 2 (hexadecimal or decimal).

    5. 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.

    6. 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.

...

Note: Selenium does not support few keys, as mentioned in Working of Qualitia PressKeys | Using-Actions-class-provided-by-Selenium-Web-driver.

The ClickJS Action is Failing on Chrome

...

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:

  1. Log on to Qualitia Automation Studio.

  2. On the Setting menu, click Configuration Setting.

  3. Click OK.

  4. 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:

...