Tests fail due to low resolution using Lab Service (SSE) with auto-login feature

Automated tests failing, usually due to object not found in application under test

The ALM Lab Service, using the auto-login functionality, will establish a remote session on the host machine.

The native resolution of the session is determined by the video drivers used on the physical machine or virtual machine.

In some cases this causes a lower than normal screen resolution such as 800×600 which causes UFT to not locate the objects on the screen of the application under test.

To fix this upgrade and/or configure new video drivers on the physical box or VM which support the screen resolution established when the automated test was recorded using UFT.

Make sure the native resolution provided by the video drivers supports the same resolution when the test was recorded.

To set the resolution use: https://social.msdn.microsoft.com/Forums/azure/en-US/1c215514-aeef-41d9-b47b-5c838a0bf83f/how-to-change-the-vm-default-screen-resolution?forum=WAVirtualMachinesforWindows

Advertisements

Error Message: “Unspecified Error” appears in the automatic runner

When you attempt to launch a UFT test from ALM 11 the error “Unspecified Error” appears in the automatic runner. This happens when UFT is open on the target machine and does not matter if it has a test loaded or not, and a limb attempts to start the test remotely. Happens only for remote execution

The reason is because the DCOM user does not have enough permissions

To resolve this issue, Switch the user to “launching user”

In order to change it, please follow these steps:

Go to Start -> Run

Type: dcomcnfg

Navigate through the following path:

Component Services -> MyComputer -> DCOM -> right click HP UFT -> properties -> identity tab

Select the “launching user” option.

Location of ALM/QC Excel Add-in mappings

The location for tasks(mappings) for ALM/QC Excel Add-In is: %appdata%\Microsoft\Excel\XLSTART\TDAddin

Also in XLSTART folder the last connection to HP ALM/QC server can be founded in the file:

ExcelAddin.ini

Regarding how to reuse the task(mapping)  file, please refer to below instructions:
1. Copy the mapping file over from one computer to another
2. Locate ExcelAddin.ini file under task file location
3. Find [Tasks] section and add the mapping file’s filename (only the prefix before the dot ‘.’) to appropriate lines.
4. Save it and then start Excel again
Note: The suffix stands for the type of the mapping: .tst is for Test; .req is for Requirement; .bug is for Bug.

Rename Entity Type dropdown list Item in ALM 11.00

To rename Resource Type or Test Type in Application Lifecycle Management (ALM) 11.00

For example:

QUICKTEST_TEST to QTP_TEST

First of all, because this is a database (DB) change, it is highly recommended to make a back up of your project database before doing any changes on it.

Please follow these steps in order to change the name of resource type “Testing Activity”:

1. Login into your Site Administration

2. Navigate to your project in the tree

3. Expand its tables

4. Go to ENTITY_SUBTYPES Table

5. In the query box enter the following Query

For Test Type (QUICKTEST_TEST):

— this script will update the type visible in Test Plan

UPDATE ENTITY_SUBTYPES

SET EST_NAME=’QTP_TEST’ — the name you want to set

WHERE EST_ID = ‘QUICKTEST_TEST’ — you can check it in the same table

AND EST_ENTITY_TABLE_NAME = ‘TEST’

— this script will update the type visible in Test Lab

UPDATE ENTITY_SUBTYPES

SET EST_NAME=’QTP_TEST’ — the name you want to set

WHERE EST_ID = ‘QUICKTEST_TEST’ — you can check it in the same table

AND EST_ENTITY_TABLE_NAME = ‘RUN’

For Resource Type:

UPDATE ENTITY_SUBTYPES

SET EST_NAME=’Resource Type Name’ — the name you want to set

WHERE EST_ID = ‘Resource Type ID’ — you can check it in the same table

AND EST_ENTITY_TABLE_NAME = ‘RESOURCE’

6. Close your browser

7. Open your Temp folder (in windows explorer path enter %temp%)

8. Find and delete folder called “TD_80”

9. Open your browser again and load the HP ALM components

10. Login into the project and check the name of the type you have changed.

Excel Add-in error occurs when exporting to QC 11/ALM 11

When exporting tests from an Excel file into ALM/QC 11, the Excel Add-in crashes after Step 7 of 8 with the error "A general error has occurred: ‘Automation error, The object invoked has disconnected from its clients.’"

The root "Subject" is added into the Subject entries in the Excel file. For example, a wrong entry in Subject column is like "Subject\sub_01\sub_02".

NOTE: The error can also occur due to the application issues.

The root "Subject" folder in the Subject column needs to be removed. The subject entry should be like "sub_01\sub_02".

How to change the JBoss heap memory

After the installation of JBoss , it is sometimes necessary to change the heap memory used by JBoss. This is usually done when there is an increase in the number of active projects in Quality Center or an increase in the number of concurrent user sessions.

Increasing the heap size (virtual memory) for JBoss

For Windows, you can increase the heap size by uninstalling/reinstalling the Quality Center Service and modifying the InstallJbossService.bat file. For Linux/Unix, you need to modify the run.sh file. The user who re-installs the JBOSS service should be the same user that is running the JBOSS service. Usually that is the Local System Account.

Recommended heap sizes, depending on the number of concurrent user sessions:

Small: 128 – 256MB ~ Up to 10 concurrent user sessions

Medium: 256 – 512MB ~ Up to 100 concurrent user sessions

Very Large: 1024 – 2048MB ~ Up to 350 concurrent user sessions

Notes:

Neither value can be more than your max RAM size

Neither value can be more than supported by your Operating System

Uninstall/Reinstall QC Service for Windows:

Note: Verify that users are not working on Quality Center and Quality Center Service is stopped.

1. Open Command Prompt and navigate to "<Drive Letter:>\program files\HP\Quality Center\jboss\bin" folder.

Note: For TestDirector for Quality Center 9.0 the path is "<Drive Letter:>\program files\Mercury\Quality Center\jboss\bin"

2. Execute the following command (this will uninstall the existing service):

InstallJbossService.bat -uninstall

3.Edit the InstallJbossService.bat file.

Example:

If the heap memory is currently:

set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx512m

increase the heap size as follows:

set JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx1024m

4. Save and close the InstallJbossService.bat.

5. Execute the following command (this will install the service with the modified heap size parameter):

InstallJbossService.bat -c default (-help shows options)

6. Verify that the service has been installed, Control Panel -> Administrative Tools -> Services.

7. Start the HP Quality Center Service.

8. Check that the Quality Center Debug Console shows heap size that was specified as available memory:

http://hostname:8080/qcbin/servlet/tdservlet?method=debuginfo

http://hostname:8080/sabin/servlet/tdsiteadminservlet?method=debuginfo

Notes:

If you are using a cluster environment, the hostname should be the cluster machine name, and you will need to apply the above steps to each cluster.

Also edit the run.bat file to ensure it is synchronized with the way the QC service runs.

Modify the run.bat file:

1. On the application server, locate the JBoss bin folder under your TD for QC installation. By default, the location is <System Drive:>\Program Files\HP\Quality Center\JBoss\bin.

Note: For TestDirector for Quality Center 9.0 the path is <System Drive:>\Program Files\Mercury\Quality Center\JBoss\bin.

2. Edit the run.bat file (or run.sh for Linux/Unix).

Example:

If the heap memory is currently:

set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx512m

increase the heap size as follows:

set JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx1024m

3. Save and close the run.bat.

4. Execute the run.sh file only for Linux/Unix.