Highlighted
Respected Contributor.
Respected Contributor.
955 views

Ajax Truclient Authentication Error 401 in Truclient IE and Firefox

Windows security Pop up comes during Recording and during replay in Load mode am getting 401 error.

Things I tried

NTLM Authentication

network.negotiate-auth.allow-proxies

Go to Tools -> Internet Options -> Advanced  under Security uncheck "Warn if changing between secure and non-secure mode"

Go to Tools -> Internet Options -> Securiy -> custom Level-> User Authentications

the Navigate step's end event value to be Action Completed in Truclient

 

0 Likes
9 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Ajax Truclient Authentication Error 401 in Truclient IE and Firefox

Hi,

Can you please check the proxy settings are identical between VuGen run time settings and TruClient General Settings?

Did you replay in load mode in VuGen or in Performance Center?

Regards,

Shlomi

0 Likes
Highlighted
Respected Contributor.
Respected Contributor.

Re: Ajax Truclient Authentication Error 401 in Truclient IE and Firefox

I am using System Proxy. 

I replied in VUgen Load mode and Performance center.

0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Ajax Truclient Authentication Error 401 in Truclient IE and Firefox

Did it fail in VuGen load mode as well? with which browser?

Can you please change PaintWindowsInLoad to 1 in default.cfg file and replay again in VuGen load mode.

Can you share a screenshot of the behavior?

Thanks,

Shlomi

0 Likes
Highlighted
Respected Contributor.
Respected Contributor.

Re: Ajax Truclient Authentication Error 401 in Truclient IE and Firefox

Navigate failed on url https://site addressl/ with errorCode = 401

0 Likes
Highlighted
Respected Contributor.
Respected Contributor.

Re: Ajax Truclient Authentication Error 401 in Truclient IE and Firefox

Is there any way to record OS Pop up?

0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Ajax Truclient Authentication Error 401 in Truclient IE and Firefox

Hi,

Please follow these steps

1. Add a Generic browser action step after the initial navigation step. Drag the step from TruClient Toolbox

2. Change the action of the step you just added to Dialog - Authenticate. The default action for Generic browser action step is Navigate

3. Fill user name and password in the authentication step (under the arguments section)

4. Change the end event of the navigation step to Dialog Opened or action completed

5. Change the end event of the authentication step to Document Loaded

This should solve your issue.

Regards,

Shlomi

0 Likes
Highlighted
Respected Contributor.
Respected Contributor.

Re: Ajax Truclient Authentication Error 401 in Truclient IE and Firefox

Still am getting HTTP 401 error in Vugen Load mode and Performance center

0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Ajax Truclient Authentication Error 401 in Truclient IE and Firefox

Hi,

Check the timing in which the authentication dialog appears. If it appears before the navigation step starts move the Dialog Authenticate step to be the first one. 

If the authentication dialog appears after the navigation change the navigation end event to Dialog Opened.

Finally, if the above does not help open a support ticket and send me a private message to share the script with me so I can have a look

Regards,

Shlomi

0 Likes
Highlighted
Respected Contributor.
Respected Contributor.

Re: Ajax Truclient Authentication Error 401 in Truclient IE and Firefox

Issue is not resolved.

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.