Highlighted
Trusted Contributor.
Trusted Contributor.
796 views

UFT 14.01 carshes when using RepositoriesCollection.Add for any browser

Jump to solution

Hello,

We are planning to upgrade to UFT 14.01 espically for the Edge support and we came across an issue. Just an overview of our framework,

  • No scripts are stored in ALM
  • All tests are run using .vbs files
  • We use RepositoriesCollection.Add to assoicate repositories at run time to the test.

Sample Scenario#1

  1. Launch any browser, Navigate to Google
  2. Type "Unified functional testing"
  3. Click search

Sample Scenario#2

  1. Launch any browser, Navigate to Google
  2. Type "Lean FT"
  3. Click search

The issue is summarized in the below table, When the object repository is local or shared and assoicated with the action it works just fine.

But when you use  RepositoriesCollection.Add to assoicate repositories to the action, the first test works fine, the second test does not work at all.

We have been in touch with HP, but no progress yet. I just wanted to check if anyone else is also seeing this issue and possibly have a workaround to get this working with RepositoriesCollection.Add. We do not want to associate repositories to thousand of our UFT testIssue SummaryIssue SummaryError ScreenshotError Screenshot

0 Likes
1 Solution

Accepted Solutions
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: UFT 14.01 carshes when using RepositoriesCollection.Add for any browser

Jump to solution

I am using the full path. Full path or relative path the issue was the same. HP has provided a hot fix. I am marking this issue as resolved.

View solution in original post

0 Likes
6 Replies
Highlighted
Super Contributor.
Super Contributor.

Re: UFT 14.01 carshes when using RepositoriesCollection.Add for any browser

Jump to solution

hi, the whole issue still seem not so clear to me. Can you help to clarify below to provide more information for investigation?

  • Is this script working fine in previous version? Or it's a new approach?
  • Is the test launched and run by AOM while loading SOR is inside the test as the screenshot indicate?
  • Are the two scenarios using the same test? Or they have seperate test cases?
  • See some SystemUtil.Run in line 7 of the screenshot under UFT folder. Can you clarify what it is?

Thanks,

Evan

0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: UFT 14.01 carshes when using RepositoriesCollection.Add for any browser

Jump to solution

And here I am thiking that I have been very clear. Apologies!.

1. Yes this script is working fine in previous version. I think the script was developed in UFT 11.5 and has been working since then. To avoid my script dependency I have mentioned the two scenarios of simple google search.

2. Yes our UFT tests are run by AOM and not from ALM. These sample scenarios of google search I am just running from UFT by clicking on the run button, for the ease of reproducing the issue.

3. The two scenarios are two different GUI test. The whole issue can only be reproduced if we have two GUI test.

4. on line 7 I am opening the browser to be tested:

For edge, you would have to run the webdriver host.

eg:  Systemutil.run "C://Program Files (x86)/HPE/Unified Functional Testing/bin/WebDriverHost.exe",strAppURL,,,3

For IE, we run the actual browser:

Systemutil.Run "C:\Program Files (x86)\Internet Explorer\iexplore.exe",strAppURL,,,3

The issue is when you run these two different GUI test with local or shared OR associated to the test, THEY RUN AND PASS.

Now on the same test, if you remove the association of the OR from the test. (from  menu Resources--> Associate repository). And associate the repo at run time using below code for both the GUI tests:

RepositoriesCollection.Add("C:\Users\test\Downloads\MFSample2\ObjectRepository\Repository1.tsr"),1

The first senario works fine and will work fine not matter how many times you run it.

Now the moment you open our second scenario(GUI Test) and run, it will fail to indentify any object. See the screenshot.

Please note the issue is reproducible only for the same session of UFT. if you close out UFT and open again, the script works fine.

0 Likes
Highlighted
Respected Contributor.. Respected Contributor..
Respected Contributor..

Re: UFT 14.01 carshes when using RepositoriesCollection.Add for any browser

Jump to solution

Hello,

What happens if you use the full path to the SOR instead of relative path?

0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: UFT 14.01 carshes when using RepositoriesCollection.Add for any browser

Jump to solution

I am using the full path. Full path or relative path the issue was the same. HP has provided a hot fix. I am marking this issue as resolved.

View solution in original post

0 Likes
Highlighted
Regular Contributor.
Regular Contributor.

Re: UFT 14.01 carshes when using RepositoriesCollection.Add for any browser

Jump to solution

Where can I find this hot fix?

0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: UFT 14.01 carshes when using RepositoriesCollection.Add for any browser

Jump to solution

At present HPshared the dll file personally with us. They said this issue will be fixed on UFT14.02

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.