Forum Discussion
Hi Arnout,
Thank you for the update of the thread and it is good to know that you already have a solution.
I am curious to find the explanation of the situation so could you answer these questions:
-- Is it correct that initially TestComplete was started on behalf of a regular user without any permissions elevation?
-- Is the tested installer started as a Tested Application (and thus it inherits permissions of TestComplete) or some other way?
-- Is UAC (User Access Control) window with the request to allow changes confirmation displayed on installer's start? Or UAC is disabled on this test system? If UAC is displayed, do you handle it manually or via some test code?
Hello Alex,
-- Is it correct that initially TestComplete was started on behalf of a regular user without any permissions elevation?
yes, that's correct
-- Is the tested installer started as a Tested Application (and thus it inherits permissions of TestComplete) or some other way?
yes, it's started as tested application
-- Is UAC (User Access Control) window with the request to allow changes confirmation displayed on installer's start? Or UAC is disabled on this test system? If UAC is displayed, do you handle it manually or via some test code?
UAC is disabled on this system. I don't know if this can be handled by TC
The answer that I get from your collegue:
"TestComplete likely needs additional permissions in order to automate actions over an installer. Installation of an application is not a standard task, additional security is implemented to prevent malicious applications from automatically installing applications.
Furthermore, I do not anticipate any conflicts executing your existing tests when running TestComplete as an administrator."
Regards, Arnout
- AlexKaras6 years agoChampion Level 3
Hi Arnout,
Aha, thank you for your answers. They correspond to my idea and my current understanding is like this:
-- TestComplete was started with a regular set of permissions;
-- Installer was spawned with the same set of permissions;
-- While initializing, installer requested permissions elevation and got them automatically without any message been displayed because of disabled UAC;
-- The result of the above sequence is that TestComplete appeared to have lower level of permissions than the application it tried to control. This can result in different problems and your one well could be one of them. Some more description can be found here: https://support.smartbear.com/testcomplete/docs/general-info/configuring/testing-under-admin-account.html
Thank you for this case - I'll put it into my notes. :)
> UAC is disabled on this system. I don't know if this can be handled by TC
UAC has three levels - high, middle and low.
High level (default one) blocks display and cannot be handled using test automation tools.
Middle level will display a regular Windows dialog that TestComplete can handle.
Low level disables UAC and no message to the user is dislayed at all.
P.S.
> The answer that I get from your collegue
I am not employed by Smartbear as it is stated in my signature. I'm just a user of their products who like them and is willing to help others when I can. :)