Has anybody figure out is there are logs for UFT?
Question ID: 107648
5
0

Where are the logs kept for UFT and can they be changed?

Marked as spam
Posted by (Questions: 22, Answers: 6)
Asked on May 4, 2017 10:14 pm
839 views
Answers (1)
6
Private answer

The UFT log files are located in one of two places depending on how the machine is configured.

%APPDATA%Hewlett-PackardUFTLogs
or

C:UsersAppDataRoamingHewlett-PackardUFTLog

HPE Document [KM00467327](https://softwaresupport.hpe.com/group/softwaresupport/search-result/-/facetsearch/document/KM00467327) has many details on how to configure the logs into debug mode to capture details for Support. However I have found this to be very detailed and time consuming to locate the files and change them. I have found [UFTLogs](https://github.com/TomMargrave/UFTLogs) which is a VBScript file that will assist in changing and capturing logs.

## More information about [UFTLogs](https://github.com/TomMargrave/UFTLogs)

### Issues addressed

1. Manual changing of the xml can lead to time lost and manual errors.
2. Confusion on what items were changed and needs to be changed back.

#### Following items are addressed with this code.
1. Check to see if UFT is running. Script will ask you to close UFT and exit.
2. Check to see if UFT remote agent is running. Script will kill agent if running after notifying.
3. Ask to delete UFT current logs.
4. If backup does not exist, creates a back up of the log.config.xml file as log.config.xml.BAK in the same directory.
5. Asks to set UFT Core, License, Help, HTML Report Logger, Mobile and API in debug logging mode. If user answers ''Yes'', log mode will be set to Debug. If user answers ''No'', log mode will remain or be reset to ''Error''.

### Usage:

usage: UFTLogs.vbs

Please add likes or comments if you use this script or find it helpful.

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on May 4, 2017 10:15 pm
EyeOnTesting

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

X
Scroll to Top