User Defined Variables
User Defined Variables
To avoid the above navigation one can directly develop the XML file as follows
<environment>
<variable>
<name> flight path </name>
<value>”d:\program files\mercury” </value>
</variable>
<variable>
<name> b </name>
<value>203</value>
</variable>
</environment>
Example: environment. Load from file”d:\envfile122.xml” invoke application environment. Value(“flight Path
Navigation:
· Activate the menu item tools
· Go to virtual objects
· Select the option new virtual object
· Click on next
· Specify the desired class(type) of the object
· Click on next
· Mark the area in the application with the help of mark object button
· Click on next
· Select one of the following options
o Entire parent hierarchy
o Parent only
· Click on next
· Specify the desired object name
· Specify the desired collection name
· Click on finish
Framework:
1.Linear Framework
· Generate the basic test
· Enhance the test
· Debug the test
· Execute the test
· Analyze the test
2.Modular Framework:
· Develop the individual components for each and every task
· Make them as reusable components
· Prepare the required drivers based on the end to end scenarios
· Execute the drivers
· Analyze the result
These variables need to e declared by us according tour need and need to be stored in a sepa
Virtual object configuration is a process of making the QTP t treat a specified area or an user define
Virtual object manager is a feature provided by QTP which is used for creating and manag
Once a virtual object is created it will be available to all the tests unless until we delete it.
Framework is a generic work (outline work) or a set of guidelines designed by an expert to perform a
need to be stored in a separate environment file. Whenever required one need to associate these files to the currant test a
ied area or an user defined object as a specific object