Active TopicsActive Topics  Display List of Forum MembersMemberlist  CalendarCalendar  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin


 One Stop Testing ForumTesting Tools @ OneStopTestingQuickTest Pro @ OneStopTesting

Message Icon Topic: Renaming Test Objects

Post Reply Post New Topic
Author Message
Mithi25
Senior Member
Senior Member
Avatar

Joined: 23Jun2009
Online Status: Offline
Posts: 288
Quote Mithi25 Replybullet Topic: Renaming Test Objects
    Posted: 01Dec2009 at 11:36pm

When an object changes in your application, or if you are not satisfied with the current name of a test object for any reason, you can change the name that QuickTest assigns to the stored object. You can also provide objects with meaningful names to assist users in identifying them when using them in component steps.

For example, suppose you have a graphics application in which all the tools in the toolbar are saved as WinObjects in the object repository with the names ToolChild1, ToolChild2, ToolChild3, and so forth. You may want to rename all the buttons to their actual labels to make them easier to identify, for example, Color_Picker, Erasor, Airbrush, and so forth.

You rename objects in the local object repository using the Object Repository window. You rename objects in the shared object repository using the Object Repository Manager.

If you are working with a shared object repository, your change applies to all occurrences of the object in all components that use this shared object repository.

If you are working with a local object repository, your change applies to all occurrences of the object in the selected component. If other components in your business process test also include operations on the local object, you should modify the object's name in each relevant component.

When you modify the name of an object in the local object repository, the name is automatically updated for all occurrences of the object. When you modify the name of an object in a shared repository, the name is automatically updated in all components open on the same computer that use the object repository as soon as you make the change, even if you have not yet saved the object repository with your changes. If you close the object repository without saving your changes, the changes are rolled back in any open components that were open at the time. Changes that are saved are also automatically updated in components that use the object repository as soon as you open them. To see saved changes in a component or object repository that is currently open on a different computer, you must open the object repository or lock it for editing on your computer in order to load the changes.

Tip: If you do not want to automatically update test object names for all occurrences of the test object, you can clear the Automatically update test and component steps when you rename test objects check box in the General tab of the Options dialog box (Tools > Options). If you clear this option, you will need to manually change the test object names in all steps in which they are used, otherwise your component run will fail.

Note: If you rename objects in a shared object repository and save the changes, when you open another component using the same shared object repository, that component updates the object name in all of its relevant steps. This process may take a few moments. If you save the changes to the second component, the renamed steps are saved. However, if you close the second component without saving, then the next time you open the same component, it will again take a few moments to update the object names in its steps.

To rename a test object:

In the object repository tree, select the test object that you want to rename and perform one of the following:

    • Choose Edit > Rename and enter the new name for the object in the selected node in the tree. Then press Enter or click anywhere else to remove the focus from the object.
    • Press F2 and enter the new name for the object.
    • In the Name box in the Object Properties pane, enter the new name for the object. Then click anywhere else to remove the focus from the object.
Note: The name you assign to the object must be unique within the object repository. Object names are not case-sensitive.



Post Resume: Click here to Upload your Resume & Apply for Jobs

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.063 seconds.
Vyom is an ISO 9001:2000 Certified Organization

© Vyom Technosoft Pvt. Ltd. All Rights Reserved.

Privacy Policy | Terms and Conditions
Job Interview Questions | Placement Papers | Free SMS | Freshers Jobs | MBA Forum | Learn SAP | Web Hosting