Skip to main content

Posts

Showing posts with the label QTP XML

HP Quick Test Professional Tutorial Chapter 2

1 FILE Menu In the first series of this article you have seen the usage of various commands available in File Menu option. This paper is in continuation of my previous series and in this series we will mainly the File->Settings option. I have not included Setting explanation in the first series because understanding Setting is very important for real time usage. You will visit this option very frequently and you must understand its usage in a better way. 1.1 Setting To open the Settings Dialog, Click File->Settings (as shown below). We will see each useful option available in the above dialog which helps you a lot while you are developing your test script. I am going to explain about each option such as Properties, Run, Resources, Parameters, Environment, Web, Recovery, Local System Monitor (new in 10.0). 1.1.1 Properties In the Properties , many of the static things are self explanatory. You can use Properties for: · Adding or removing the associated add-ins for cu...

QTP-Stroring Environment Variable In XML File

Objective:Login Action Parameterization By the Use of External Environment Variables the issue of Login Actions parameterization could be solved.Using this approach we can concurrently run scripts on different environments. How it Works: 1. Create AutomaticConfiguration.xml file with two variables namely AdminLogin,UserLogin in Local QTP Installation folder. 2. The Admin and User Login Actions Loads the AutomaticConfiguration.xml file from the above mentioned path. 3. The Login Actions use the Environment variables to Launch the Application. Steps To Create an XML File: 1. Open Notepad. 2. Type ENVIRONMENT on the first line (in opening and closing angular brackets) 3. Type each variable name-value pair within variable elements in the following format: For example, your environment variables file may look like this: 4. Save the file as AutomaticConfiguration.xml in quicktest install folder (\program Files\MercuryInteractive\QuickTestProfessional) in your Local Machine. You are d...