Error while uploading info folder. Script upload failed.

Error while uploading <SCRIPT NAME> info <FOLDER> folder. Script upload failed. Error: Object reference not set to an instance of an object.

Backup the old ALM-Client folder and then access the ALM webpage again to download the ALM client again:

Location of ALM-client:

for the windows 7 and windows 2008 machine, ALM client is at 2 locations

•C:\ProgramData\HP\ALM-Client &

•C:\Users\<USER>\AppData\Local\HP\ALM-Client

for the Windows XP or 2003 machine, the ALM-client is at

•C:\Documents and Settings\<User>\Local Settings\Application Data\HP\ALM-Client

Make sure you launch IE with Administrative privileges, and then access the ALM website

note: if the ALM-client do not gets downloaded at both locations, copy paste it from one location to another

Error in Lab Management License page after changing port for JBOSS

If you get the following error in the Lab Management License page after changing port for JBOSS from default 8080 on the ALM machine to port 80:

"The requested item cannot be found. It has been deleted from the system. Refresh the previous page to view updated information."

And if this error occurs in the “Performance Server General Settings page” as well: (Tools –> Performance Server General Settings)

This issue is due to the port change for the JBOSS on ALM server. The error log from the PC server shows the following : (<PC>\\ orchidtmp\orchidtmp\LTLogger\w3wp\log.txt)

2012-03-07 23:50:12,944 [5084] [6] ERROR HP.PC.Rest.RestProxy – An exception occurred on the REST server:PCRemoteException output START

Message:

Could not locate an entityNot Found

StatusCode:

NotFound

Stacktrace:

Printing data members start:

[client_requiest_info]:The requested uri was: http://<ALM_Server>:8080/qcbin/rest/domains/DEFAULT/projects/LAB_PROJECT/labtasks/1004,the method was: GET,the content type was: application/xml

Printing data members end:

PCRemoteException output END

[Context: 7130b975-60a0-4dea-9e8e-a43cfa2592ba] [FullContext: QCServer:http://<ALM_Server&gt;:8080/qcbin/ UserName:_pc_system_ Domain:DEFAULT Project:LAB_PROJECT]

2012-03-07 23:50:12,960 [5084] [6] ERROR HP.PC.ServiceModel.Errors.ErrorHandler – PCRemoteException output START

Message:

Could not locate an entityNot Found

StatusCode:

NotFound

Stacktrace:

at HP.PC.Rest.RestProxy.ExecuteRequest(String httpMethod, String body, HttpWebRequest request)

at HP.PC.Rest.ResourceProxy`1.GetResource(String httpMethod, String body, HttpWebRequest request)

at HP.PC.Rest.ResourceProxy`1.GetResource(HttpWebRequest request)

at HP.PC.Rest.ResourceProxy`1.GetResource(Int32 id)

at HP.PC.BL.QC.Api.EntityBL`2.Get(Int32 id)

at HP.PC.TaskManagement.TaskManager.PerformOperation(Int32 opCode, Object listParams)

at HP.PC.TaskManagement.TaskManager.Operate(Int32 opCode)

at HP.PC.TaskManagement.Services.TaskManagementService.Operate(Int32 opCode)

at SyncInvokeOperate(Object , Object[] , Object[] )

at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)

at HP.PC.ServiceModel.Interceptors.OperationInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)

at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)

at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)

at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)

at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)

at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)

at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)

at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

Printing data members start:

[client_requiest_info]:The requested uri was: http://<ALM_Server>:8080/qcbin/rest/domains/DEFAULT/projects/LAB_PROJECT/labtasks/1004,the method was: GET,the content type was: application/xml

Printing data members end:

PCRemoteException output END

[Context: 7130b975-60a0-4dea-9e8e-a43cfa2592ba] [FullContext: QCServer:http://<ALM_Server&gt;:8080/qcbin/ UserName:_pc_system_ Domain:DEFAULT Project:LAB_PROJECT]

The reason for this error to occur is because the database still has the incorrect URL for external and internal URL.

As seen in the error, the Server is requesting the xml file of the license page from the following URL:

The requested url was:

http://<ALM_Server>:8080/qcbin/rest/domains/DEFAULT/projects/LAB_PROJECT/labtasks/1004

the method was: GET, the content type was: application/xml

However instead of 8080, the port used is 80. Therefore the URL should be changed to

http://<ALM_Server>/qcbin/rest/domains/DEFAULT/projects/LAB_PROJECT/labtasks/1004

To change the configuration for the QC server URL for ALM/PC,

Go to Site Administration – Lab Management

Click on the LAB_PROJECT on the left plane.

Click on LAB_PC_SETTINGS.

The two settings for “QC_INTERNAL_URL” and “QC_EXTERNAL_URL” should point to the correct URL

http://<ALM_Server>/qcbin/

However, they were http://<ALM_Server>:8080/qcbin/ and this is not correct.

To change these two settings, we need to do it directly in the database for ALM – SQL Server or Oracle.

Therefore login the DB server and Open SQL server Management Studio, and find the DB named “default_lab_project_db0” and run the SQL below (where ALM Server is pwcapp23)

UPDATE [default_lab_project_db0].[td].[LAB_PC_SETTINGS]

SET [PC_SET_VALUE] = ‘http://pwcapp23/qcbin/

WHERE [PC_SET_ID]=1005

GO

UPDATE [default_lab_project_db0].[td].[LAB_PC_SETTINGS]

SET [PC_SET_VALUE] = ‘http://pwcapp23/qcbin/

WHERE [PC_SET_ID]=1006

GO

Alternatively, right click on the table TD.LAB_PC_SETTINGS in “default_lab_project_db” and select the option to “Edit the first 200 rows”. Change the values for the external and internal URLs.

After the database change, check in the Site Administration – Lab Management to see if the setting are changed, and then restart the ALM service to make the change take effect.

Now you should be able to see the License Page and the Performance Server General Settings Page.

Randomize a selected row with the Oracle 2-Tier function

Using VuGen 11.00 to test an Oracle 2-Tier application which has a result set returned based on various selections. As the VuGen script needs to perform an update it is important that Vusers select a unique record. The VuGen Oracle 2-Tier function lrd_ora8_save_col should allow this but there is no example on how to use a parameter in this function to determine which row needs to be selected.

For example: the x should become a random parameter in the following call:

lrd_ora8_save_col(OraStm1,1,x,0,"Saved_Requirement_String");

Try the following custom VuGen code. It randomizes the row accessed in GRID8 by substituting a value, e.g. 1,2,3,4 6, 10, etc defined in the script’s GridSel.dat parameter file.

<snip>

int=x;

x = atoi(lr_eval_string("{GridSel}"));

lrd_ora8_save_col(OraStm1,1,x,0,"Saved_Requirement_String");

lrd_ora8_fetch(OraStm1, -34, 300, &uliFetchedRows, PrintRow322, 2, 0, 0);

GRID8(322);

</snip>

ALM-PC: How to remove an orphaned Collate Results Remote Task

If you are using ALM-PC 11.00 Patch 4v2 the currently Running Tasks window accessed through My Performance Center will show a Collate Results Remote Task in progress from a load test which was executed over a month ago. In this case the Progress column shows Executing "Collate Results" for run id: 64: (0%) and it does not change.

If you check the status of Run id 64 in ALM-PC Lab Management > Test Runs , it shows the Run State as "Before Creating Analysis Data". Furthermore for Run id 64 the RawResults.zip file is available for download or Analysis, therefore the hung Collate Results Task displayed in My Performance Center is no longer required.

To remove the orphaned Collate Results Remote Task from the Currently Running Tasks window

1. Connect to Site Administration > Site Projects > and select the Project database of the project reporting the problem.

2. Expand the TASKS table and the TASK_DESCRIPTION column to look for Executing "Collate Results" for run id: 64 (in this case). This will give you the TASK_ID of the orphaned Results Collation task (e.g. 1009).

3. On the same page Execute SQL to update the TASK_STATE to 5. For example:

UPDATE tasks

SET task_state=5

WHERE task_id=1009

4. Run My Performance Center and check the Running Tasks window to see if problem is resolved.

Installation stuck on ‘Registering Modules’ when installing a patch on a PC 11.00 Host or Server

During the installation of a patch on a Performance Center (PC) 11.00 Host or Server, if the process is stuck on ‘Registering Modules’ the reason for this error is because the MSI process is stuck on registering a DLL and this is blocking the installation from completing the process.

To fix this issue

• Open the Task Manager,

• Kill the appropriate MSIEXEC process (the one with the highest CPU).

This will free the installation lock and the patch installation will complete.