Self-Solve Knowledge Search

Minimize Maximize
Controller crashes after LoadRunner is upgraded from 11.5x to 12.00 or 12.01
Title :
Controller crashes after LoadRunner is upgraded from 11.5x to 12.00 or 12.01
Document ID :
KM01262854
Product - Version:
loadrunner ;
OS :
Updated :
Thu Nov 20 09:06:49 GMT 2014
Summary :
After LoadRunner has been upgraded from 11.5x to 12.00 or 12.01, Controller crashes in cases where the ALM connection is configured to be established automatically.
Problem
After LoadRunner has been upgraded from 11.5x to 12.0x, the Controller component crashes in cases where the ALM connection is configured to be established automatically.
Cause
From technical point of view, the ALM connection technique used in LoadRunner 12.0x is different from the one in version 11.52’s. As of 12.00 for backward compatibility, the Controller copies the ALM connection settings stored in wlrun7.ini and generates a new file named AlmConnectionSettings.xml.
Due to the old password encryption format, Controller 12.0x fails to properly decrypt the password value and thus authenticate correctly, hence an exception is thrown.

For example:

In LoadRunner 11.52, these settings are kept in <LR installation folder>\config\Wlrun7.ini:

[TestDirector_ActiveUser]
TDUserName=sa
[TestDirectorUser_sa]
LoginAutomatically=1
ReconnectToDB=0
ReconnectToServer=1
TDAllowLocalDB=1
TDCategoryField=
TDCycle=
TDDatabase=Addins
TDDomain=DEFAULT
TDPassword=5461904ce
TDServer_0=http://myd-vm01158.hpswlabs.adapps.hp.com:8080/qcbin
TDTestTypeIndex=-1
TDTreePath=Subject

In LoadRunner 12.0x, these settings are kept in <LR installation folder>\config\AlmConnectionSettings.xml

<StorableProperties xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ConnectToUrl>http://alm_server_url:8080/qcbin</ConnectToUrl>
  <Login>sa</Login>
  <Domain>DEFAULT</Domain>
  <Project>Addins</Project>
  <Reconnect>false</Reconnect>
  <ReAuthenticate>false</ReAuthenticate>
  <Relogin>false</Relogin>
  <EncryptedPassword>5461904ce</EncryptedPassword>
  <Urls>
    <string>http://myd-vm01158.hpswlabs.adapps.hp.com:8080/qcbin</string>
  </Urls>
</StorableProperties>
Fix
To overcome the issue, a modification to the ALM connection settings in either Controller or Analysis must be done.
As a result the encrypted password will be rewritten in a format compatible with the 12.00 ALM.

Solution #1
  1. Go to <LR installation folder>\config directory,
  2. Edit file AlmConnectionSettings.xml
     <Reconnect>false</Reconnect>
      <ReAuthenticate>false</ReAuthenticate>
      <Relogin>false</Relogin>
Solution #2
  1. Launch HP LR Analysis
  2. Select Tools > HP ALM Connection
  3. Type a valid URL, make connection, authentication and log in and uncheck [Reconnect to server on startup] option
  4. Launch Controller again