Is there a way to use relative paths for recovery scenarios in UFT 12.54?
Question ID: 107849
0
0

I am trying to set up some Recovery Scenarios for my UFT tests. Because the tests will be run on multiple environments with potentially different paths for file locations, I want to use relative paths for the recovery operation scripts, but I can’t find a way to do it. Once the Recovery Scenario is written, it becomes read-only, so I can’t even modify it when I set up on a different environment.

I am currently running UFT 12.54.

Marked as spam
Posted by (Questions: 3, Answers: 1)
Asked on August 29, 2017 2:46 pm
88 views
Answers (2)
0
Private answer

I have seen where users have stored items on network drive and used a map drive command in UFT to remap drive.

For example

Dim objNetwork, strRemoteShare
Set objNetwork = WScript.CreateObject(''WScript.Network'')
strRemoteShare = ''\myserverusers''
objNetwork.MapNetworkDrive ''R:'', strRemoteShare, False

Or use the [SUBST command](https://technet.microsoft.com/en-us/library/cc726014(v=ws.11).aspx)
Then have all of the scenarios just go to the R drive.

Also, the recovery scenarios could be stored in ALM with the function libraries.

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on September 1, 2017 11:27 am
0
Private answer

U can you FSO to derive the file location folder details and hen just pass the File name

Marked as spam
Posted by (Questions: 1, Answers: 3)
Answered on August 30, 2017 1:12 pm
0
I don't understand your suggestion. Re-reading my initial question, I realized that I may not have been clear as to what path I want to make relative. The path for the .qrs is easy to set as relative by adding the containing folder to the Folders in the GUI options. Where I can't set a relative path is for the Function being called in the Recovery Operation of the Recovery Scenario. Once the recovery scenario has been saved, it becomes read-only.
( at August 30, 2017 1:39 pm)
EyeOnTesting

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

X
Scroll to Top