Tuesday 3 December 2013

Basics of Automation with TestComplete

Hi,

I will here be discussing my learning experience with testcomplete..

Identifying objects in TestComplete through object spy:

All automation tools, intend in capturing the object properties and perform the automation, by comparing the values it has versus with the object properties obtained during run time, in the application.
TestComplete and QTP does this property capture of objects using object spy.

Object Spy
 
The object spy screen shot is shown above. Just a click and drag of the highlighted icon, on the required object will fetch the properties of that object and we may use those properties in our scripts(which will be discussed later in this section).


Keyword driven script/Record-playback in TestComplete:


As like any other Automation tools available in the market, TestComplete provides option to Record the user's activity on the screen, saves the object propoerties, to identify the object and replays the same activities when playback button is clicked.
The above screenshot shows, how to start recording and the script generated after recording.

But, in a typical Automation environment, mere record -palyback is not enough.We will need lot more than that, like if-else ,switch conditions and many more.But, the neverthless we can rule out the use of object spy and Record options.




















 

No comments:

Post a Comment