Highlighted
n0body
New Member.
59 views

TruCleint Verify PDF does not work with Parameter nor TC.getParam() values

Jump to solution

It seems that Verify PDF file does not work with Parameter nor with TC.getParam() in its Javascript equivalent, although these two options are offered in the DevelopScript GUI. A constant value works fine without issue.

e.g.

Step 1. set a parameter value with the name "name" with some value.

Step 2. Verify a PDF file with
Condition = Contain,
Value (Parameter Name) = name, OR,
Value (JavaScript) = TC.getParam('name').

Error message is displayed on executing step 2: ".. contains [xxxx] failed - an argument is invalid: Value. The value cannot be empty: 'undefined'.

In that error message above, xxxx is the correct/expected string value that was set in step 1 to verify if the PDF file contained. However, the verify step cannot finish. Please note it is not a failed verify step (cannot find the expected string), but the step encountered error.

LR version is 12.60, build 0582.

Thanks in advance.

0 Likes
1 Solution

Accepted Solutions
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: TruCleint Verify PDF does not work with Parameter nor TC.getParam() values

Jump to solution

Hi,

AFAIK, this issue has been fixed in LR 12.63 released version.

1 Reply
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: TruCleint Verify PDF does not work with Parameter nor TC.getParam() values

Jump to solution

Hi,

AFAIK, this issue has been fixed in LR 12.63 released version.

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.