Highlighted
Absent Member.. Absent Member..
Absent Member..
987 views

Applying a relative path to local OR

Jump to solution

Hello,

I have a framework in place using svn as the software versioning tool. However, I've only been able to successfully make a shared OR and a function library stored using a relative path. As such, the suite of automated tests that I wish to place under svn versioning do not work on our second test machine because the path of the local ORs, actions, etc. displayed in the solution explorer contain the actual path.

Does anyone have any suggestions or links to information that would describe what files to place under svn control? I'm prettly well experienced with other automated testing tools, but still haven't been able to fully grasp the structures of the actions, solutions and tests to best place the testing objects under source control.

Snapshots are provided for clarity.

Thanks,

Bret

Tags (1)
0 Likes
1 Solution

Accepted Solutions
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Hi Bret!

Utilizing version control together, or within, UFT, is something every UFT-automation engineer has or is struggling with, and the lack of a proper built-in source control functionality might be one of the biggest drawbacks with UFT. On the upside, UFT has during recent releases been extended with better support for SVN and Git where source conrol management has been implemented directly within its IDE, but the end-product is still not top-notch.

Our company suffered because of this and decided a couple of years ago to separate and move all code and entities created in UFT, outside UFT. This meant that actions were migrated into function libraries and object repositories were stored as standalone XML-files. Then, wIth both entities stored as readable formats (.qfl and .xml) they could easily be put under a separate version control system.

More importantly, to handle all of this, you need to build a framework on top to manage the connectivity between function libraries, between function libraries and object repositories, and most importantly the integration between the external entities placed under version control and UFT.

The bottom line: Evaluate the design of your test automation and have a second thought into if Actions really are the best way to go. Consider other alternatives and rethink which entities you need and do not need from UFT.

With the best of luck and do not hesitate if you have any additional questions!

View solution in original post

3 Replies
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Hi Bret!

Utilizing version control together, or within, UFT, is something every UFT-automation engineer has or is struggling with, and the lack of a proper built-in source control functionality might be one of the biggest drawbacks with UFT. On the upside, UFT has during recent releases been extended with better support for SVN and Git where source conrol management has been implemented directly within its IDE, but the end-product is still not top-notch.

Our company suffered because of this and decided a couple of years ago to separate and move all code and entities created in UFT, outside UFT. This meant that actions were migrated into function libraries and object repositories were stored as standalone XML-files. Then, wIth both entities stored as readable formats (.qfl and .xml) they could easily be put under a separate version control system.

More importantly, to handle all of this, you need to build a framework on top to manage the connectivity between function libraries, between function libraries and object repositories, and most importantly the integration between the external entities placed under version control and UFT.

The bottom line: Evaluate the design of your test automation and have a second thought into if Actions really are the best way to go. Consider other alternatives and rethink which entities you need and do not need from UFT.

With the best of luck and do not hesitate if you have any additional questions!

View solution in original post

Highlighted
Absent Member.. Absent Member..
Absent Member..

Excellent reply!  Thanks OM_H.  I guess I was on the right track.  What I did was remove all instances of objects from the local repositories, and moved them into a single shared OR.  It seems to be working well.  Thank you again!

Best,

Bret

0 Likes
Highlighted
Contributor.
Contributor.

 

Hi Bret,
 
I am finding the same issue with Functional lib.
 
In my local machine i associated the lib using relative path, when my colleague downoads it, he finding error as missing library.
same issue for environment variable xml also.
 
could you please guide, how you had fixed it?
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.