Save info   Get password
Home Submit your blog Edit Account Rules RSS-Archive Contact


QTP - Capturing tool tips of images
2008-06-01 12:09:24
In my previous post (QTP - How to capture tool tip?) I shown an example on capturing tool tip of Web page link.That solution uses FireEvent("onmouseover") and GetROProperty("text") to get tool tip of a link.Now, I'm going to show how to show how to capture tool tips of images located on a Web page.Actually, the solution is simple.To capture a tool tip of an image, we can get value of "alt" Run-tim


How to save parameter value to other parameter in LoadRunner?
2008-06-01 05:10:18
One my reader asked me - "How to save parameter value to other parameter in LoadRunner?". OK, there is a simple solution.To save parameter value to other parameter you have to:Evaluate value of initial parameterUse lr_eval_string LoadRunner function.Save the evaluated string to a second parameterUse lr_save_string LoadRunner function.Please, check the following code:// save string value to initial


How to get unique file name in LoadRunner?
2008-05-31 14:13:09
In my previous LoadRunner VIDEO post, I shown and explained how to record PDF file saving in LoadRunner.The provided code works correctly in LoadRunner VuGen or in LoadRunner Controller for one concurrent user. Here it is://Truncate to zero length or create file for writing.fp = fopen("c:\\temp\\_file.pdf","wb");//Process the data ... //Write the data to an output file.fwrite(bufData, nSize, 1, f
Read more: unique

Generating unique file name using LoadRunner parameter
2008-06-17 11:00:33
I'm sure that my readers are the best readers in the world!They are careful and they are great professionals. I constantly learn from them. Indeed!I want to thank Tim for his comment on getting unique file name in LoadRunner.Sure, there is very simple way to generate unique file name in LoadRunner using LoadRunner parameters.How to do that?We have to create three different types LoadRunner paramet


[My money] - April 2008 - $58.81
2008-06-18 14:24:37
This is a report about money which was earned during the April 2008.As you can see, my readers helped me to earn $58.81:(click to enlarge the image)Google AdSense brings this money... Every time readers clicks Ad links, the counter increases.It's simple enough, isn't it? :)Like last time, I plan to contribute this money to automated testing community.As you remember, the winner was Charlie Weiblen


QTP - getting current browser URL
2008-06-18 11:57:04
I'm going to show and explain how to get current URL which is opened in a browser .For example, how to get URL "" from the following browser:There are two solutions:Using GetROProperty("URL") method (run-time object property)Using "URL" property of "Object" (IE DOM Object)Let's consider both variants.GetRoProperty("URL") method (run-time object property)GetRoProperty function reads properties of a


How to close all Browsers? - QTP Descriptive Programming
2008-06-17 15:12:16
This is a very practical task - How to close all browsers from QTP?You may need to close browsers before or during the QTP script execution.You can be surprised, but QTP script, that closes all browsers, will contain 3 lines only:Well, how does this code work?To answer, I have to tell about QuickTest Professional Descriptive Programming .Descriptive Programming (DP) is a working with object, which


How to get text of Status Bar from QTP?
2008-06-23 14:36:57
When you work in QTP with Web applications, it is sometimes necessary to get a text of browser's status bar.Let's see for example the following browser:(Click the image to enlarge it)How to get text of Status Bar from QuickTest Professional?There are two ways:Object.StatusText property of Browser objectGetROProperty("text") method of WinStatusBar objectGetting text of Status Bar using Object.Statu


QTP - quotes in VBScript
2008-06-23 02:32:42
Today I found an interesting question on Ankur Jain's blog.The question was simple - how to display quotation marks (") in QTP?There two ways to do that:Double the quotes (""):MsgBox "#1: ""QTP - QuickTest Professional"""Use 2 double quotation marks to include a quote character in the string.So, the result is:(click the image to enlarge it)Use ANSI character code - Chr(34):MsgBox "#2: " & Chr(


How to get current iteration number of QTP script?
2008-07-05 06:24:00
QTP test can run several iterations.By default, when you run a test with global QTP Data Table parameters, QuickTest runs the test for each row in the Data Table, using the parameters you specified.For example, the following global QTP Data Table contains 3 rows:The iteration number of QTP test can be specified in 'File/Settings.../Test Settings dialog', 'Run' tab:If we run our QTP test with above
Read more: script

LoadRunner VIDEO tutorial - Parameters part1 ('Select next row' = 'Sequential')
2008-07-04 15:51:35
I've prepared new LoadRunner video tutorial on working with LoadRunner parameters.The present LoadRunner video tutorial covers the following:How to create new LoadRunner parameterHow to use 'Simulate Parameter' featureSettings on Parameter List dlgOption 'Select next row' = 'Sequential 'Option 'Update value on' = 'Each iteration'Option 'Update value on' = 'Each occurrence'Option 'Update value on' =


LoadRunner VIDEO tutorial - Parameters part2 ('Select next row' = 'Random')
2008-07-04 15:50:12
I've prepared the second part of LoadRunner video tutorial on working with LoadRunner parameters.Note: First part of LoadRunner parameters - video tutorial is available here.The present LoadRunner video tutorial covers the following:How to create new LoadRunner parameterSettings on Parameter List dlgOption 'Select next row' = 'Random 'Option 'Update value on' = 'Each iteration'Option 'Update value


10 steps to become QTP guru
2008-07-02 17:35:17
Would you like to know how to become QTP guru?The recipe is simple. You should learn the following:VBScriptQTP uses VBScript language. That's why strong knowledge of VBScript is 'must have'.Sources: w3schools' VBScript tutorialMS' VBScript Guide.Software Testing Automation FrameworksTo write good automated tests, you should know how to write them.There are different approaches and solution. There
Read more: steps

How to record LoadRunner script on FireFox?
2008-07-01 14:56:48
By default, LoadRunner records Web applications on Internet Explorer browser.LoadRunner recording options look like on this image:How to record LoadRunner script on FireFox?Answer: Use the following Recording options:Use these settings with any LoadRunner Web protocol, such as:Web (HTTP/HTML)AJAX (Click and Script)Web (Click and Script)This way works correctly for all FireFox versions - 1.5, 2.0,


QTP - How to get number of pages in PDF file?
2008-08-05 18:09:01
PDF file data extracting is not a trivial task in automated testing with QTP.Recently I faced with a question:How to get number of pages in PDF file?In other words, how to get number of pages for any given PDF file, like on this image:This is QuickTest Professional 9.5 User's Guide, located in \help\QTUsersGuide.pdf. It contains 1418 pages.Let's see how we can get this number from QTP script.I cre


QTP RegExp VIDEO - How to click dynamic link?
2008-08-20 04:24:45
The present QTP video explains how to click dynamic links, which change their text.For example, the number of email drafts can vary:QuickTest Professional cannot know in advance which text will be present.So, how QTP can click such dynamic links?There are several possible solutions:We can use QTP Regular Expression to match dynamic link.We can use QTP DP (Descriptive Programming) in to find the l


Bugs in LoadRunner
2008-08-17 08:03:37
Watch for my logic please:Each program contains errors (bugs).LoadRunner is a program too.So, LoadRunner should contain bugs.Even more! LoadRunner contains bugs.Here is a list of bugs in LoadRunner 9.10 that I noticed.And I would like to ask you to share your experience on LoadRunner too. I'm sure that you faced with such errors.Why do I do that?I know, that some members of LoadRunner development


QTP Descriptive Programming - How to get number of objects
2008-08-15 19:00:01
I'm going to explain and show QTP Descriptive Programming (DP) through Google Sets site:(click image to enlarge it)The goal of the present QTP tutorial is to describe:How to get number of controls (Links, Edits, Images, etc) with QTP DP.Let's investigate Descriptive Programming on examples.First of all, we should understand what Descriptive Programming means:What is QuickTest Professional Descrip
Read more: objects

QTP Descriptive Programming - How to perform operations on objects?
2008-08-15 18:58:51
In previous QTP tutorial (QTP Descriptive Programming - How to get number of objects ) I explained how to get number of objects (Edits, Links, Buttons) with QTP Descriptive Programming (QTP DP).Today I'm going to show:How to use QTP DP to perform different operations on objects. For example, how to type text in these edit boxes on Google Sets page:From previous QTP DP tutorial you know that this co


LoadRunner VIDEO tutorial - Parameters part3 ('Select next row' = 'Unique')
2008-08-12 18:31:15
Here is last part of LoadRunner video tutorial on working with LoadRunner parameters.It explains different combinations of the parameter setting 'Select next row' = 'Unique'.Note:LoadRunner parameters #1 - video tutorial is available here.LoadRunner parameters #2 - video tutorial is available here.The present LoadRunner video tutorial covers the following:Settings on Parameter List dlgOption 'Sele


QTP Recovery Scenario VIDEO
2008-09-09 12:33:23
This QTP video shows and explains how to create and work with QTP Recovery Scenarios.For example, during an execution of QTP test, it can be interrupted by different windows, pop-ups, message boxes, etc. The problem is that they can appear at any time and you cannot predict this event.I've shown how to create QTP Recovery Scenario for the following message box:This message box can be shown or not,


QTP - How to rename Excel worksheet
2008-09-09 06:42:23
The present QTP tutorial shows simple recipe how to rename Excel worksheet from QuickTest Professional.For example, Excel-file contains 'Sheet1' sheet:How to rename Excel worksheet from VBScript and QTP?Use the following QTP script, which perform the work using Excel's COM object - "Excel.Application":Set objExcel = CreateObject("Excel.Application")objExcel.Visible = TrueobjExcel.DisplayAlerts = F


You're free to use/copy/publish any of my materials
2008-09-09 01:47:57
I've started noticing that my blog materials (articles and videos) became quite popular in the Web. That's great! :)The problem is that some bloggers copy and publish my blog materials without mentioning the source.So, I would like to express my point of view on the present issue.I allow to use content from my blog () for any purposes.For that you have to observe 2 following conditions:Any materia


How to read XML file from QTP
2008-09-07 17:33:04
I'm going to show how to parse XML file and read its values from QTP (QuickTest Professional).For example, we will use this XML file:This XML file describes a bookstore and books located there. Note: You can download this XML file here.I will use Microsoft's XML Parser also known as Microsoft.XMLDOM. This XML parser allows running XPath queries.The loading of XML file in QTP is simple enough:Const


Call for votes - Top Automated Software Testing Blogs
2008-09-30 06:16:16
Today I've decided to create a list of best & recommended Automated Software Testing Blogs .It will be extremely useful for every engineer or manager working in QA field and in automated testing especially.How the list of blogs will be created?I think, the best way is to ask persons who work in automated software testing. I mean you, my readers!That's why I ask your help, dear readers.Your vote
Read more: Software Testing

How to update XML file from QTP
2008-09-27 14:38:08
In previous QTP tutorial I shown how QTP can read data from XML file.Today I will explain how to update XML data from QTP.We will use this XML file:Note: You can download this XML file here.Let's check how to update different values in above XML file:How to rename the title of first book?The QTP script is:Const XMLDataFile = "C:\TestData.xml"Const XMLNewFile = "C:\TestData2.xml"Set xmlDoc = Create


LoadRunner unique file name with web_save_timestamp_param function
2008-09-27 03:07:57
Earlier, I shown two ways how to create unique file names in LoadRunner:How to get unique file name in LoadRunnerGenerating unique file name using LoadRunner parameterToday I'm going to show the simplest way. And I would like to thank Charlie for his comment.He suggested to use web_save_timestamp_param function .web_save_timestamp_param function saves the current timestamp to LoadRunner parameter.


QTP VBScript - Are you sure 1+1=2?
2008-09-26 15:02:29
QTP VBScript contains different niceties. This article shows that 1 + 1 doesn't equal 2 sometimes.Exactly, 1 + 1 doesn't equal 2 sometimes.Well, I've prepared this QTP script:n1 = InputBox("Enter first number")n2 = InputBox("Enter second number")n1increased = n1 + 1If n1increased = n2 Then    MsgBox n1 & " + 1 equals " & n2Else    MsgBox n1 & " +


LoadRunner Analysis - tabbed world
2008-09-26 05:47:02
Do you like this dialog from LoadRunner Analysis ? Not too many tabs? :)No words!It seems, HP should hire a professional UI designer :)Related articles:How to automatically create custom HTML report in LoadRunner Analysis?All LoadRunner visual tutorials Do you know that you are free to use/copy/publish all my materials on your site/blog?


Page 3 of 3 « < 2 3 > »
eXTReMe Tracker