Why Components Fail at Run-time in QTP

Advertisement:

Components fail when QTP encounters a step it cannot perform or the results of a step indicate failure. In many cases this is due to the application being tested not functioning properly. QTP then provides you with test results that assist you in understanding how to fix your application.
Sometimes a component fails because the application being tested has changed from when the component was created and the QTP component needs to be updated to reflect those changes. Your object repository may also be missing some of the objects it needs to run the test. QTP provides tools that help identify and resolve some of these issues.
 
QTP may not be able to identify the object in the application for a number of reasons:
  • The Object Does Not Exist in the Application: QTP cannot find an object in the application that matches the description of the object in the object repository. The Maintenance Run wizard enables you to identify the object that you want your component to use.
  • The Parent Object Changed: QuickTest Professional cannot find an object in the application that matches and has the same hierarchy as the object in the object repository. The Maintenance Run wizard enables you to identify the object that you want your component to use.
  • The Object Description Property Values Changed: QTP cannot find an object in the application that is similar to, and has the same description property values as the object in the object repository. The Maintenance Run wizard enables you to identify the object that you want your component to use.
  • The Object Description Property Values Changed: QTP cannot find an object in the application that is similar to, and has the same description property values as the object in the object repository. The Maintenance Run wizard enables you to identify the object that you want your component to use.
  • The Object Does Not Exist in the Object Repository: QTP looks for the object to which the component refers, in the associated object repositories before attempting to identify that object in the application. If the object in your component cannot be found in any associated object repository, The Maintenance Run wizard enables you to identify the object in your application that you want to add to your repository and use in your component.
  • The Description Set of the Object Needs to Change: QTP uses a set of properties to identify objects in the application. If the set of identification properties for the object in the object repository does not provide a unique description matching an object in the application, QTP will be unable to find the object. Update Run Mode enables you to update the set of identification properties for the objects in your component to match those defined in the Object Repository dialog box.
  • Checkpoint Changes: Checkpoints fail when they encounter conditions in the application being tested that are unexpected. In many cases this is due to the application not functioning properly. QTP provides you with test results that assist you in understanding how to fix your application. Sometimes checkpoints fail because the application has changed since the component was created and the QTP checkpoints need to be updated to reflect those changes. Update Run Mode enables you to update the checkpoints in your component to reflect changes in the application. For example, suppose your application has an edit box whose default value used to be <Enter value> and you have checkpoint that checks this value before a new value is entered in the edit box. If the default value in the application changes to be <Enter name> then your checkpoint will fail. Update Run Mode enables you to update the expected values of your checkpoint to reflect the change in the application.
Advertisement:

No comments:

Post a Comment

175248765853890