Hi
I have a problem while i'm testing application run under non admin user. The problem is : I don't have access to many of properties of app parts e.g I cannot catch button, or text with spy tool. It works, when I run app with same user as Test Complete. How can I solve it? I want to run TC as current windows user (Admin) and my aplication as regular user.
In Component Repository admin user have full rights. The same is in windows settings. UAC is disabled
I guess the RunAs method will help you.
It will run the test application with specific user.
But It does not solve my problem. I know how to run app with specific user. I cannot catch many of object if I use app with different user than TC. If i run both apps with admin user, I don't have any problem, and can catch almost everything (buttons, textboxes, labels etc) but If I use different user to run app (user have restricted rights) I can catch only main window and nothing else. I don't see many of properties also
Also when I run app ass different user, class of window changed from HwndSource to HwndWrapper. With current loggon user is ok
Hi @rafall92,
Run TestComplete via " Run as administrator" or modify its executable file to make sure that TestComplete has all the permissions. Check the following article for details:
Hi Tanya
Unfortunately, It doesn't work. I set in compatibility options checkbox "run as administrator" and I still have problem. I can't catch only child object of window where it's WNDClass is "HwndSource" (when app run with regular user it changes to HwndWrapper). For rest object, some properties are not visible. UAC is disabled in registry, and windows settings. I have no idea what else I could change
Hi @rafall92,
Sorry for not getting back to you earlier. If the issue still persists, could you please contact our Support Team so that they could investigate it?
You can submit the case by filling in the form here:
https://support.smartbear.com/testcomplete/message/
Sometimes TC cannot spy all objects directly.
If TC cannot do it nowadays, maybe we need to communicate with developer about which method/how to control it by other api.
Like the fake code below.
WindowName.Edit.WrapperObject().SetText(u'text')
Subject | Author | Latest Post |
---|---|---|