Highlighted
Visitor.
263 views

Not able to launch URL when we use run as another user in UFT Account.pcm/Login/?ReturnUrl=%2fCTR%2f

HI All,

I tried to launch one of the URL using Run as another user command for test user in UFT . i am not able to launch after running the below code and the IE screen becomes blank and stuck with the URL ending with Account.pcm/Login/?ReturnUrl=%2fCTR%2f.  suggestions please

Set Ws=CreateObject("Wscript.Shell")
Ws.Run "runas /env /user:" & Strdomain & "\" & strDIOUsername & " " & """C:\Program Files\Internet Explorer\iexplore.exe"""
wait 4
Ws.Sendkeys strDIOUserPassword
wait 3
Ws.Sendkeys "{ENTER}"

systemutil.Run  URL

 

0 Likes
3 Replies
Highlighted
Knowledge Partner
Knowledge Partner

Why are you running as another user, is this a requirement?

Mark Smith

0 Likes
Highlighted
Visitor.

Yes Mark. We need to do role based testing

0 Likes
Highlighted
Knowledge Partner
Knowledge Partner

Can you runas another user manually?

Mark Smith

 

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.