Highlighted
Trusted Contributor.. Trusted Contributor..
Trusted Contributor..
254 views

[LR 12.55 TC Win7] Breaking API change in LR.setParam() / TC.setParam() with value of "" ?

Jump to solution

After upgrading from LR 12.53 P4 some of our TC scripts are bailing out with the following error:

API_ERROR_INVALID_ARGUMENTS_RUNTIME: LR.getParam("additionalTransactionName") APIError: The Parameter or Attribute is undefined.

The corresponding parameter is defined in a previous step via

LR.setParam("additionalTransactionName", value)

If "value" is an empty string ("") then the aforementioned error occurs. So it seems that setting a parameter with a value of "" undefines the corresponding parameter.

Is this behavior intended or a bug?

Cheers,

Thomas

0 Likes
1 Solution

Accepted Solutions
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Re: [LR 12.55 TC Win7] Breaking API change in LR.setParam() / TC.setParam() with value of "&quo

Jump to solution

Hi Thomas,

The bahavior is not intended.

We investigated this and there is a real issue when calling the API with an empty string.

A fix for this will be provided in a future release.

As a workaround, I would suggest using another value to signify the same meaning intended by an empty string.

 

Thank you for reporting this and helping make TruClient better 🙂

Edo

View solution in original post

0 Likes
1 Reply
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Re: [LR 12.55 TC Win7] Breaking API change in LR.setParam() / TC.setParam() with value of "&quo

Jump to solution

Hi Thomas,

The bahavior is not intended.

We investigated this and there is a real issue when calling the API with an empty string.

A fix for this will be provided in a future release.

As a workaround, I would suggest using another value to signify the same meaning intended by an empty string.

 

Thank you for reporting this and helping make TruClient better 🙂

Edo

View solution in original post

0 Likes
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.