Posts

Showing posts with the label QTP

A quick Overview on HP LoadRunner VuGen

Image
As the name suggests, LoadRunner is an automated performance testing product by HP . It works by generating actual load on the server, by replacing human users with the virtual user also know as a VU.    Let us understand and create a load test. In this post I will be working on LoadRunner version 9.5 so the UI may vary with the latest version 11.5x . As I discussed in my earlier post, the LoadRunner is categorized in four components.  The product is so vast that it cannot be covered in a single post. So, I will be covering LoadRunner in multiple posts. Keep visiting for updates!! Virtual user Generator (VuGen) Also known as VuGen, this component allows capturing end user business processes by generating an automated script against the performed actions. To open VuGen, Click on Start button >> Programs >> LoadRunner >> Applications >> Virtual User Generator. Let us get familiar with the interface. On opening the VuGen, you will ...

Load Testing Process

Image
With the ongoing technology advancements and digitization, everyone is trying to go online. The web traffic is increasing day by day. And this directly impacts on an application’s performance. Load testing of an application has become a necessity now. An application must be at least accessible or one may say stable up to 5,000 users.    Conducting a load test manually requires a lot of human and machine efforts, which increases cost. To overcome this cost. A lot of automated performance software’s are made, which I have already discussed in my previous post .  Before working on any of the automated software, one should first understand the load testing process. Here in this post I will be sharing the process of load testing using HP LoadRunner . You may find similar words like Plan, Create, Define, Run and Analyze as presented in the functional testing process (QTP). So the theme remains same and the parameter(s) varies with the type of testing you are about t...

QTP Parameterization (all types)

Image
The what?   Parameterization is a process in which you can pass multiple sets of data, variables to remove hard coded values. For example, if you need to check ten login credentials if they are valid or not, worst approach to be adapted by you will be executing the code ten times, problem redundancy and wrong approach. Alternatively you can just pass values in the datatable (Excel like sheet provided in QTP). so you can test multiple set of data in one action or call. The ways? There are three ways to parameterize your data using QTP. Using Datatable (Global or Action specific)   Using environmental variables (User defined, Built-in)   Using Random (built-in function) 1. Using DataTable Datatable values can be used in two ways. Either using Global sheet or Action specific sheet. Global sheet as the name says allows acess throughout your test, across functions or actions, the data (columns) declared here can be used globally within the test. Syntax is given below ...

Download and Save an Excel Sheet using QTP

During automation we might have came across scenarios which requires selecting group of data and downloading an Excel file and then save it on a particular location. Automating Excel sheets requires correct steps to follow. At first you have to create an Excel object and then to save, you have to choose a dynamic location and it should not be machine dependent. So here i am presenting a quick function that serves the discussed purpose. Step 1. Make a vbs file i.e open notepad copy the below code and save it with a .vbs extension. [Name].[vbs]. Step 2 . Add the function in QTP resources. Browse file > Settings > Resources tab. Step 3 Now Call the function in your code where required. Use keyword 'Call' ''''''Function initializing Public Function ExcelExport() ''''''Check excel button existence If (Browser("name:=.*").Page("title:=.*").WebButton("html id:=some ID").Exist(1)) the...

Get and Compare Runtime URLs using QTP

This article will help you in getting the run-time URL of your website and comparing with user defined i.e from datatable, if that is correct it logs into the application otherwise exits the application When you are automating your application using QTP, you might have to deal with multiple URLs, i.e. if your application is deployed on multiple Servers / Environments, every time you run your script, it has to be configured with correct credentials. Here is a quick function that can be applicable in all such conditions. Make a VBS file. Open notepad, copy the below code and save the file with .vbs extension, Now provide login credentials, i.e. username and password in your datatable and Call the function we just made. '''''Function Declaration Public Function FunctionName()  '''''Gets the runtime URL and assign the value in the variable browserURL=Browser("title:=page title").Page("url:=page url").GetROProperty("URL...