Self-Solve Knowledge Search

Minimize Maximize
How to enable handling of PDF files during load replay in TruClient Firefox
Title :
How to enable handling of PDF files during load replay in TruClient Firefox
Document ID :
KM01274552
Product - Version:
loadrunner 12.00 ;
OS :
Updated :
Tue Nov 25 10:09:34 GMT 2014
Summary :
During load mode replay of a script in TruClient Firefox, the step responsible for opening a PDF document in the browser fails with an error.
Problem

During load mode replay of a script in TruClient Firefox, the step responsible for opening a PDF document in the browser fails.
This could result in a similar error:

t=00007192ms: Error -205177: ** 4: Activate browser window #2 ** failed - runtime error:
    'Ordinal': The specified value (2) is invalid    [MsgId: MERR-205177]

Cause

The display of a PDF document in the browser is handled differently in TruClient Firefox replay modes. In Interactive (Develop script) mode the content of the PDF document is displayed in the browser page. In Load mode replay the PDF content is not displayed. Instead a "Save as" dialog is shown.

The difference is caused by the different mimetypes.rdf file used in the interactive and load profiles for the script. The mimetypes.rdf used in load mode does not contain information about handling PDF files.

Fix

To handle the PDF files properly in load mode replay, TruClient must use the same mimeTypes.rdf as the one used during interactive replay.

To fix the issue:

  1. Copy the file mineTypes.rdf from the <script>\profiles\interactive folder
  2. Paste it into <LR installation directory>\bin\firefox\browser\defaults\profile\ - create the folder if it doesn't exist