I suspect we may use TestComplete and TestExecute very differently than most people. We are not application developers, but infrastructure people. We use it to validate applications both off the shelf and self developed (by other teams) work in our environment when changes are made like security patching and other security related changes.
That being said, I have a test that I am writing where I need to interact with the Windows 7 Event Viewer. I wrote the test as a standard user account and all was well, but when I attempt to execute the test with a user account that has administrator access the object recognition for the list view on the left side fails.
The object spy under a normal user object will recognize both the SysTreeView32 portion of the window as well as the individual objects within that window.
Under the administrator level credentials the object spy will only recognize the SysTreeView32, but not the individual objects in the list. You can see in the object spy an error with detecting the wItems and the recommendation is to increase the auto-wait timeout. I increased the wait to 100000ms, and still get the same error. Screenshots attached.
Any suggestions would be appreciated. I am completely stumped.
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group. I love good food, good books, good friends, and good fun.
I am only running this test via TestComplete. I have not scheduled it with Jenkins or set it up to run via TestExecute. That being said, no I haven't launched TestComplete as an Administrator. That did not occur to me to try.
That does appear to work, but now that presents a new challenge. How do I remotely launch TestExecute as an admin via Jenkins to initiate the test. More work to do!