rvk_vit
6 years agoNew Contributor
Desktop Application automation
There is a desktop application which i am automating.
Situation is like that if i open test complete as run as administrator then only objects get identified and script gets recorded but if i open it simply then neither object get identified and script gets recorded.
So i run TC as administrator and then recorded the script and then tried to run the same script without opening TC as administrator , this time script got failed showing an error window does not respond.
So i am stuck with that while running scripts in batch i wont be opening TC as administrator privileges, So what should i do? Any help !!
Hi,
It sounds like your tested application is always starts with administrative privileges. Can you check this?
TestComplete must be started with the same or higher level of privileges to be able to access other application's internals.
This is OS but not TestComplete-specific requirement...
There are many situations where TestComplete/TestExecute needs to be run as adminstrator in order to properly identify objects. This is especially the case when the application being tested also is run with administrator privilege. This should not be a problem when you run the tests in batch. You just need to make sure that when you run your batch of tests, whatever tool you're using to launch it is launching TC with adminsitrator access.