Unstable script errors 2 times out of ten iterations
Tags:
Question ID: 108199
1
0

Script errors out once or twice when running several iterations, using descriptive programming is not helping either.
Primary cause seems to be existence of duplicate object values which has been used at other places inside the script. I tried to clean up the object repository but it did not helped.

It appears to be around the pare where I am trying to use Environment Variables to pass to other actions.
Environment.Value("BrowserAndPage") = Browser(" Login").Page("Page")

Marked as spam
Posted by (Questions: 63, Answers: 1)
Asked on March 15, 2018 6:30 pm
29 views
Answers (1)
0
Private answer

The code is using Environment object to pass Test objects between Actions Micro Focus has stated in an old documents (KM195104)

The Environment parameter is not designed to hold this data type (test
objects) or to be used in this manner. In some cases, passing objects
between actions using this method may work, in others it will not. (The
exact situations where this may work is not known, nor has it been
tested.)
In general, test objects should not be passed between actions at all.
Mercury recommends using shared Object Repositories rather than the
following solution. This solution does not pass the actual test object from
one action to another. The Environment variable holds only the path to the
test object. The test object is actually created and used only in the
second action.

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on March 15, 2018 6:30 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top