Easy way to perform automated testingEasy way to perform automated testingThoughts on software testing and quality assurance, automated software testing, especially Mercury LoadRunner and QTP - QuickTestPro, process improvements and different ways on how to do more and quicker at a shorter time Articles
QTP - How to get font size/color, background color and other attributes of
2007-09-11 10:13:00 Hello,Today I faced with the following task with QTP (QuickTest Professional) - how to get some attributes (such as: font size, font color, background color and so on) for any control on a web page?Piece of cake! :)Let's see ways how it can be done.The task: get font size, font color, background color and others possible parameters from the gmail.com start page:The solution:First of all, I tried to use GetROProperty method.I selected "Welcome to Gmail" label with QTP object spy and added them to Object Repository:Well, now I know the class of web control - WebElement.Then, I open QuickTest Professional Help, search for "WebElement Identification Properties" and see that there are not needed properties (font name, font color, size, ...).Help reading shown that it is possible to get needed properties for some objects, for example, for Link. Please, see "Link Identification Properties" from the QTP Help:Property Name: Descriptionbackground color: The link's background color.color: ... More About: Color , Font , Background , Size , Sources
Using parameters in Loadrunner VuGen script
2007-08-22 11:25:00 Parameterizing is a powerful thing in Load Runner !Now, I'm going to demonstrate some tips and uses of them.Well, imagine the following situation...Let's we have created VuGen script, which emulates the one user:The problem: script runs correctly in VuGen for one user, but it fails for several concurrent users. This happens since we recorded the VuGen script for the specific user:I marked "username" and "password" parameters and values with red lines.Application under test (AUT) does not allow several sessions of the same user.So, if second concurrent VuGen user logs in to application, he gets an error:The solution: to parameterize the VuGen script.Implementation:Right click on a value we want to parameterize (in our case this is a username - "load1") and select "Replace with a parameter" menuitem:Name the new parameter as "UserName" and click OK btn:Please, pay attention to "Parameter type" combobox. It contains interesting possible types, such as: "Date/Time", Iteration Number, Ra... More About: Script , Automated testing , Meter
How to detect memory leaks with LoadRunner - visual tutorial
2007-08-16 08:02:00 Today, I plan to share my experience on the memory leaks detecting. This article is a step-by-step instruction on how to use HP/Mercury Load Runner to perform load testing for the purpose of memory leaks discovering.The task:It needs perform testing of Web server to discover memory leaks.The solution:Create LoadRunner VuGen script for your application (Web server in my script)Let's suppose, we have done it:Actually, I will explain different tricks and features of VuGen scripts in the further posts.Create LoadRunner Controller scenario for your application using the VuGen scripts.Here it is:The next step is to add measurement monitors which are quantitative indicators of resources being monitored (for example, memory usage, CPU usage, handle and thread count, and so on).For that, on "Run" tab in the LoadRunner Controller, drag "Windows Resources" item from the "Available Graphs" tree and drop it to graphs area.See the screenshot:Then right-click on the just added graph ("Windows Reso... More About: Tutorial , Memory , Visual 1, 2, 3 |



