Skip to main content

Posts

Showing posts from 2010

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

HP Quick Test Professional Tutorial Chapter 1

In this article I will explain how you can make use of File Menu option available in HP QTP. This is a very basic usage and I thought to start the Basic Series so that newbie's can learn QTP by following the complete series on this Blog. I will publish the Series subsequently. Next Series I will explain only about the File->Settings option which is very useful in real time usage. 1 FILE Menu 1.1 New Menu If you want to either create a new test, business component, or function library you have access the File->New-><<Sub Option>>>. Figure is shown below: 1.1.1 New Test New Test option is used to create a New Test Script. You can create a New Test by pressing Ctr+N, or click File->New->New Test . Once you do above operation, you will see a blank Test Script Page where you can record or write your VB Script code. 1.1.2 Business Component Business component is mainly used when you are planning to use Business Component Testing model and

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

QTP Functions

QTP Functions ********************************************************************************** Function TimeStamp() iArr1=Replace(Now,"/","") iArr2=Replace(iArr1,":","") iArr3=Replace( iArr2,"AM","") iArr3=Replace( iArr2,"PM","") iArr4=Replace(iArr3," ","") iArr5=Cdbl(iArr4) iTimeStamp=iArr5-1000000000 TimeStamp=iTimeStamp End Function ********************************************************************************** Function TimeStamp(theDate) TimeStamp=DateDiff("s","01/01/1970 00:00:00",theDate) End function ********************************************************************************** How to use the below function in your Test Script ********************************************************************************** Set oObj=Browser("oBrowser").Page("oPage").Frame("oFrame").WebTable("oWebTable") Call

ABC Of Estimation

1 WHAT IS ESTIMATION What we mean by term Estimation? How do we measure software? Well, we measure software in terms of its SIZE which can be LOC, FP etc. Sizing is the prediction of product deliverables needed to fulfill the project requirements. Estimation is nothing but the prediction of effort (resource) needed to produce the deliverables. Estimation is not 100% accurate at the early stages of the SDLC and as we move ahead our estimation become more accurate. We will see this more into coming sections. Below is a BIG picture of Software Estimation: Scope Defined -> WBS Created (All dependencies and task identified and created) ->Estimate the Software Size->Estimate the Effort (Cost) and Duration-> Assign Resources->Schedule the Work. 1.1 ESTIMATION MODELS In below section we will see some widely used Estimation Techniques. In this article we will not go into much detail of each Estimation technique but will give you a high level detail of each technique.

Database Knowledge for a Tester Part V

Hi Readers, this is the last series of DataBase Knowledge for a Tester. I hope you people must enjoyed the reading and gained database knowledge. Soon I will come with some more stuffs on Technology Knowledge for Tester. 1. GROUPING DATA FROM TABLES IN SQL Apart from SELECT, WHERE, DISTINCT, ORDER BY etc, there are 2 more clauses which facilitate selective retrieval of row. These are the GROUP BY and HAVING clauses. These are same as ORDER BY and WHERE clauses, except that they act on recordsets, and not on individual records. 1.1 CONCEPT OF GROUPING 1.1.1 Group By clause The GROUP BY clause creates a data set, containing several sets of records grouped together based on a condition. Syntax: SELECT (colname1),(colname2),(colnameN), AGGREGATE_FUNCTION(expression) from TABLE NAME where (condition) GROUP BY (colname1),(colname2),(colnameN); For e.g. Consider we want to find out how many employees are there in each department. Select DEPT_NAME, COUNT(EMP_NO)”No. of Employ