cancel
Showing results for 
Search instead for 
Did you mean: 

Windows 7 Event Viewer

SOLVED
Contributor

Windows 7 Event Viewer

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.

2 REPLIES
Highlighted
Community Hero

Re: Windows 7 Event Viewer

Are you running TestComplete as an administrator?  While you may be logged in as an admin, this doesn't necessarily mean the TestComplete/TestExecute application is also running as an admin.  


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

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’ll be talking about “Hidden Treasures – TestComplete Script Extensions” at #SBConnect in October! Who’s joining me? Click here for tickets
Extensions available
Contributor

Re: Windows 7 Event Viewer

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!


Thanks for the tip!

Top Kudoed Authors
Are You In?

Meet the Community Leaders!

SmartBear Connect is an excellent opportunity for training, in-person support, and networking.

GET YOUR TICKET WITH $100 OFF