Test object Model

Sponsored Links:

A test object class includes a list of properties that can individually (only) to identify objects of that class and a set of appropriate methods that QuickTest can record.Test Object Model is a set of object types or classes that QuickTest uses to represent the objects in our application.

A test object is an object that QuickTest creates in the check that corresponds to (represent) the real object in the application. QuickTest uses the information stored on the object during the implementation period to identify and verify the object.

A walking time is the real thing (real) purpose of the application or web-site in which the methods are performed during the implementation period.

The property set for each check object is created and maintained by QuickTest. The property set for each object at runtime is created and maintained by the architect object (creator) (for objects in Microsoft Web Explorer, Netscape for Netscape objects).

Properties and methods of objects:

Similarly, methods of check objects are those that QuickTest recognizes and records when they are executed (done) on an object while recording, QuickTest runs and when the check or component runs. The object-time execution methods are the methods of the object in the application as defined by the architect object (creator). They can access and execute object methods of execution time using the Object property.

Some important points to recall about the methods and properties:

* Each test object technique to execute (perform) while recording is recorded as a separate step in the test. When you run the test, QuickTest runs (perform) the technique of test object recorded in runtime object.
* test Object Properties object are captured during recording. QuickTest uses the values of these properties to identify objects at run time the application for a period of implementation.
* Property values of objects in the application may vary. To make the test object property values match the value of the properties of the race to time, they can alter test object properties by hand while designing the test or component or the use of statements SetTOProperty during a performance period. You can also use regular expressions to identify property values.
* You can view or alter the test values to property that is stored with the test or component in the properties of objects or object repository dialog box.
* Can see the syntax of the object test methods and the point of view of time methods of any object in our desktop using the Methods tab of the Object Spy.
* You can retrieve or alter property values of the test object during the period of performance by adding GetTOProperty and SetTOProperty statements in the keyword view and expert view. They can retrieve the object's property values runtime during the execution by adding GetROProperty statements.

If the available test object methods or properties of an object are not sufficient or they do not provide the functionality they need, they can access the internal methods and properties of any object at runtime through the ownership of objects. You can also use the attribute object property to identify Web objects in the application according to user-defined properties.

No comments: