DirectorySoftwareBlog Details for "Easy way to perform automated testing"

Easy way to perform automated testing

Easy way to perform automated testing
Thoughts 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: 1, 2, 3

Articles

How to get LoadRunner iteration number - using LoadRunner parameter?
2007-12-08 22:33:00
 In some cases, you have to know the current iteration number, which is being executed.It would be great to have something like lr_iteration_number() function. Unfortunately, Load Runner does not provide that function...In the present article, I will describe how to get a current iteration nunber, which is being executed in LoadRunner VuGen or Controller. Actually, I know two ways how to get current LoadRunner iteration number:LoadRunner parameter of 'Iteration Number ' typeGlobal variable, which should be incremented each iterationToday, I will describe and explain first approach (parameter of 'Iteration Number' type). The second one (global variable) I will describe in the next article.Well, we are starting:LoadRunner parameter of 'Iteration Number' typeTo insert new parameter into LoadRunner VuGen script, select 'Vuser/Parameter List...' menu item: 'Parameter List' dialog will be opened.Then:Click 'New' btn to create new LoadRunner parameterSet parameter name (I na...
More About: Automated testing
How to minimize/maximize QTP window before the QTP script execution?
2007-12-03 18:52:00
 This is very useful feature - minimize QTP window before script execution. It allows to observe a desktop or an application under test wholly.I will show and describe how to minimize (or maximize) QTP window programmatically - i.e. from QTP script.Also, provided approach can be applied to minimize (maximize) any required window - Browser, Notepad, MS Word or Excel, and so on.There are two ways to minimize QTP window: Using Minimize method of Window objectUsing QTP Application object - QuickTest.Application These methods will contain several lines only and I hope that my explanations will be understandable.So, let's explore! Using Minimize method of Window objectYou can use Minimize method of Window object to minimize QTP window (or any other).Let's see two cases - when a window is located in Object Repository (OR) and widows is not located in OR.If a window is located in Object Repository (OR), then minimizing can be performed using the following code: hWnd = Brows...
More About: Script , Automated testing , Execution
How to minimize/maximize QTP window before the QTP script execution?
2007-12-03 18:52:00
 This is very useful feature - minimize QTP window before script execution. It allows to observe a desktop or an application under test wholly.I will show and describe how to minimize (or maximize) QTP window programmatically - i.e. from QTP script.Also, provided approach can be applied to minimize (maximize) any required window - Browser, Notepad, MS Word or Excel, and so on.There are two ways to minimize QTP window: Using Minimize method of Window objectUsing QTP Application object - QuickTest.Application These methods will contain several lines only and I hope that my explanations will be understandable.So, let's explore! Using Minimize method of Window objectYou can use Minimize method of Window object to minimize QTP window (or any other).Let's see two cases - when a window is located in Object Repository (OR) and widows is not located in OR.If a window is located in Object Repository (OR), then minimizing can be performed using the following code: hWnd = Brows...
More About: Script , Automated testing , Execution
LoadRunner Correlation - How to capture an array of dynamic data with web_r
2007-11-25 00:00:00
Imagine, that server returns the following response:(since blogspot.com doesn't show tags correctly, I'm reluctant to show server response as image) .And we have to capture dynamic values of all IDs (underlined with green lines). These values can be used later - say, for Load Runner script correlation.As usual, several solutions exist :) Let's see them:Insert five web_reg_save_param functions using "Ord=1" (2, 3, ...) attribute:web_reg_save_param ("ID1Value", "LB= value="", "RB="", "Ord=1", LAST);web_reg_save_param ("ID2Value", "LB= value="", "RB="", "Ord=2", LAST);web_reg_save_param ("ID3Value", "LB= value="", "RB="", "Ord=3", LAST);web_reg_save_param ("ID4Value", "LB= value="", "RB="", "Ord=4", LAST);web_reg_save_param ("ID5Value", "LB= value="", "RB="", "Ord=5", LAST);Tips: Please, note that web_reg_save_param function does not perform correlation. web_reg_save_param function just registers a request for correlation from the next server response. That's why web_reg_s...
More About: Data , Capture , Array
LoadRunner Correlation - How to capture an array of dynamic data with web_r
2007-11-25 00:00:00
Imagine, that server returns the following response:(since blogspot.com doesn't show tags correctly, I'm reluctant to show server response as image) .And we have to capture dynamic values of all IDs (underlined with green lines). These values can be used later - say, for Load Runner script correlation.As usual, several solutions exist :) Let's see them:Insert five web_reg_save_param functions using "Ord=1" (2, 3, ...) attribute:web_reg_save_param ("ID1Value", "LB= value="", "RB="", "Ord=1", LAST);web_reg_save_param ("ID2Value", "LB= value="", "RB="", "Ord=2", LAST);web_reg_save_param ("ID3Value", "LB= value="", "RB="", "Ord=3", LAST);web_reg_save_param ("ID4Value", "LB= value="", "RB="", "Ord=4", LAST);web_reg_save_param ("ID5Value", "LB= value="", "RB="", "Ord=5", LAST);Tips: Please, note that web_reg_save_param function does not perform correlation. web_reg_save_param function just registers a request for correlation from the next server response. That's why web_reg_s...
More About: Data , Capture , Array
Broken links detection - LoadRunner tutorial
2007-11-21 12:34:00
Today, I will describe how to use Load Runner for broken links detection.'Broken' link is 'not valid' link. This link usually returns 404 Error - "Page not found". Another side of broken links is that images other resources are not displayed.Using LoadRunner for broken links detection can be helpful, when you perform load testing of a site and you have to be sure, that all pages, images, applets, and other resources are available during the high server loading.LoadRunner allows broken links detection during:Script recordingScript executionBroken links detection during LoadRunner script recordingYou have to set appropriate recording options. For that, click 'Options...' button from 'Star Recording' dialog:'Recording Options' dialog opens. Here, set 'Add comment to script for HTTP errors while recording' option:Please, note that you can see a description of the 'Add comment to script for HTTP errors while recording' option.Now, you are ready to record your scrip...
More About: Tutorial , Links , Detection
Broken links detection - LoadRunner tutorial
2007-11-21 12:34:00
Today, I will describe how to use Load Runner for broken links detection.'Broken' link is 'not valid' link. This link usually returns 404 Error - "Page not found". Another side of broken links is that images other resources are not displayed.Using LoadRunner for broken links detection can be helpful, when you perform load testing of a site and you have to be sure, that all pages, images, applets, and other resources are available during the high server loading.LoadRunner allows broken links detection during:Script recordingScript executionBroken links detection during LoadRunner script recordingYou have to set appropriate recording options. For that, click 'Options...' button from 'Star Recording' dialog:'Recording Options' dialog opens. Here, set 'Add comment to script for HTTP errors while recording' option:Please, note that you can see a description of the 'Add comment to script for HTTP errors while recording' option.Now, you are ready to record your scrip...
More About: Tutorial , Links , Detection
How to execute program on remote computer?
2007-11-14 11:57:00
 Several days ago I faced with a simple task - I had to execute program (automated QTP test in my case) on several remote computers.My goal was simple - if I can execute scripts on my computer, then why don't we execute them on remote computers?I think, this task is very interesting and practical, isn't it? :)There was one condition. I tried to use "native" Windows solutions, which do not require additional installed software or libraries. I didn't want to use external soft, files, etc.As a result, I found two solutions. Both of them use WMI:Win32_Process ClassWin32_ScheduledJob ClassI will describe both of them.Running ahead, I will say that I decided in favour of second solution (Win32_ScheduledJob class).Let's explore these solutions, and compare them.For clarity, I will show how to execute simple application (notepad.exe) on remote computer.Execute program on remote computer with Win32_Process ?lassTo create and start new process, I used Create method of the Win32_Proce...
More About: Computer , Program , Remote , Scripting
How to execute program on remote computer?
2007-11-14 11:57:00
 Several days ago I faced with a simple task - I had to execute program (automated QTP test in my case) on several remote computers.My goal was simple - if I can execute scripts on my computer, then why don't we execute them on remote computers?I think, this task is very interesting and practical, isn't it? :)There was one condition. I tried to use "native" Windows solutions, which do not require additional installed software or libraries. I didn't want to use external soft, files, etc.As a result, I found two solutions. Both of them use WMI:Win32_Process ClassWin32_ScheduledJob ClassI will describe both of them.Running ahead, I will say that I decided in favour of second solution (Win32_ScheduledJob class).Let's explore these solutions, and compare them.For clarity, I will show how to execute simple application (notepad.exe) on remote computer.Execute program on remote computer with Win32_Process ?lassTo create and start new process, I used Create method of the Win32_Proce...
More About: Computer , Program , Remote , Scripting , Mote
How to select correct boundaries for web_reg_save_param LoadRunner function
2007-11-11 00:23:00
 I will explain and show - how to select correct boundaries for web_reg_save_param Load Runner function.web_reg_save_param is used for LoadRunner script correlation. That's why every load tester should study this function thoroughly, if you wish your scripts work correctly.Imagine that the server returns the following part of HTML page:Note: I will refer to this example later.What boundaries should be used in web_reg_save_param LoadRunner function to capture value of "ID1" (abcde)?The correct left boundary for web_reg_save_param function should be: ID1" value="And right boundary for web_reg_save_param is: "See the solution:Do you know why it is? I will explain in details.To find out the boundaries, we have to see texts located on the left and on the right.What is the text located on the left? There are several variants:" (inverted comma)Actually, inverted comma cannot be used as left boundary, because it is located in several places in server's responce.So, we have to ex...
More About: Function , Select , Automated testing
How to select correct boundaries for web_reg_save_param LoadRunner function
2007-11-11 00:23:00
 I will explain and show - how to select correct boundaries for web_reg_save_param LoadRunner function.web_reg_save_param is used for LoadRunner script correlation. That's why every load tester should study this function thoroughly, if you wish your scripts work correctly.Imagine that the server returns the following part of HTML page:Note: I will refer to this example later.What boundaries should be used in web_reg_save_param LoadRunner function to capture value of "ID1" (abcde)?The correct left boundary for web_reg_save_param function should be: ID1" value="And right boundary for web_reg_save_param is: "See the solution:Do you know why it is? I will explain in details.To find out the boundaries, we have to see texts located on the left and on the right.What is the text located on the left? There are several variants:" (inverted comma)Actually, inverted comma cannot be used as left boundary, because it is located in several places in server's responce.So, we have to ex...
More About: Function , Select , Rect
How to perform basic operations on LoadRunner parameters?
2007-11-05 19:32:00
 Load Runner functions and scripts, containing in the present article, will be interested for LoadRunner beginners in the first place.I will describe - how to perform basic mathematical operations on LoadRunner parameters:How to convert LoadRunner parameter's value to integer number?How to save integer number to LoadRunner parameter?How to perform mathematical operations on LoadRunner parameter?You can use this article as a LoadRunner tutorial on LoadRunner parameter operations.Well... May I start? :) How to convert LoadRunner parameter's value to integer number?Actually, this is not a difficult task. We have to use 'atoi' function.'atoi' function converts a string to an integer value.Please, see the following code:lr_save_string("543210", "prmCounter");lr_output_message("String value of prmCounter: %s", lr_eval_string("{prmCounter}"));i = atoi(lr_eval_string("{prmCounter}"));lr_o utput_message("Integer value of prmCounter: %d", i);The result is:The key line of code is:i = ...
More About: Basic , Basics , Sources
How to perform basic operations on LoadRunner parameters?
2007-11-05 19:32:00
LoadRunner functions and scripts, containing in the present article, will be interested for LoadRunner beginners in the first place.I will describe - how to perform basic mathematical operations on LoadRunner parameters:How to convert LoadRunner parameter's value to integer number?How to save integer number to LoadRunner parameter?How to perform mathematical operations on LoadRunner parameter?You can use this article as a LoadRunner tutorial on LoadRunner parameter operations.Well... May I start? :) How to convert LoadRunner parameter's value to integer number?Actually, this is not a difficult task. We have to use 'atoi' function.'atoi' function converts a string to an integer value.Please, see the following code:lr_save_string("543210", "prmCounter");lr_output_message("String value of prmCounter: %s", lr_eval_string("{prmCounter}"));i = atoi(lr_eval_string("{prmCounter}"));lr_o utput_message("Integer value of prmCounter: %d", i);The result is:The key line of code is:i = atoi(l...
More About: Basic , Load , Basics , Sources
What are LoadRunner parameter and parameterization?
2007-11-01 20:31:00
 This is a simple question - what is Load Runner parameter? I've reread LoadRunner VuGen User's Guide v9, trying to find the exact definition of LoadRunner parameter. That's strange, but LoadRunner Help does not contain the exact answer on this question.In this article, I will answer basic questions, connected to LoadRunner parameters.I think, LR beginners should study this article carefully :)So, I recommend to read it, if you want to know:the definition of LoadRunner parameterLoadRunner parameter functionshow to create parameter in LoadRunner VuGen scriptwhich types of LoadRunner parameter are availablehow LoadRunner processes parameters - gets and sets their valuesother key concepts, connected to LR parameters OK, let's start.I've recorded Web (HTTP/HTML) simple script on Web Tours demo web application. There are two first steps:Please, notice that we use the following hard-coded username & password - jojo and jojo:"Name=username", "Value=jojo", ENDITEM,"Name=passwor...
More About: Basics , Automated testing
What are LoadRunner parameter and parameterization?
2007-11-01 20:31:00
 This is a simple question - what is Load Runner parameter? I've reread LoadRunner VuGen User's Guide v9, trying to find the exact definition of LoadRunner parameter. That's strange, but LoadRunner Help does not contain the exact answer on this question.In this article, I will answer basic questions, connected to LoadRunner parameters.I think, LR beginners should study this article carefully :)So, I recommend to read it, if you want to know:the definition of LoadRunner parameterLoadRunner parameter functionshow to create parameter in LoadRunner VuGen scriptwhich types of LoadRunner parameter are availablehow LoadRunner processes parameters - gets and sets their valuesother key concepts, connected to LR parameters OK, let's start.I've recorded Web (HTTP/HTML) simple script on Web Tours demo web application. There are two first steps:Please, notice that we use the following hard-coded username & password - jojo and jojo:"Name=username", "Value=jojo", ENDITEM,"Name=passwor...
More About: Basics , Automated testing
How to execute QTP script from LoadRunner?
2007-10-31 23:09:00
 I'm a big fan of Load Runner ! Really. This is a wonderful tool for load and performance testing.Also, I like QTP. Not love it, just like :) It's powerful enough.That's why I decided to use them together - i.e. execute QTP script from LoadRunner.I recorded simple QTP script - it just opens Google, performs search, then it clicks 'Next' button, and closes browser:QTP script is quite clear, I hope :)But I faced the questions:Should QTP be installed or not?Can several QTP scripts be executed simultaneously on one computer?Is it required special license for QTP and/or LoadRunner?How to do that - hotw to execute QTP script from LoadRunner?and others questions...It's OK :) I will share my experience and help you to answer these questions!Let's sort them out one after another...Should QTP be installed or not?The answer is 'Yes'.If you plan to execute QTP scripts, QTP should be installed on Load Generator computer (or computers, if you to execute several concurrent QTP scripts)...
More About: Script , Automated testing
How to execute QTP script from LoadRunner?
2007-10-31 23:09:00
 I'm a big fan of Load Runner ! Really. This is a wonderful tool for load and performance testing.Also, I like QTP. Not love it, just like :) It's powerful enough.That's why I decided to use them together - i.e. execute QTP script from LoadRunner.I recorded simple QTP script - it just opens Google, performs search, then it clicks 'Next' button, and closes browser:QTP script is quite clear, I hope :)But I faced the questions:Should QTP be installed or not?Can several QTP scripts be executed simultaneously on one computer?Is it required special license for QTP and/or LoadRunner?How to do that - hotw to execute QTP script from LoadRunner?and others questions...It's OK :) I will share my experience and help you to answer these questions!Let's sort them out one after another...Should QTP be installed or not?The answer is 'Yes'.If you plan to execute QTP scripts, QTP should be installed on Load Generator computer (or computers, if you to execute several concurrent QTP scripts)...
More About: Script , Automated testing
QTP - How to set/get system time and date?
2007-10-25 19:40:00
 QTP allows running different types of test. And sometimes, it needs perform time and date manipulations on a computer. In this article, I will show and explain - how to get system time/date and change them.Actually, today's lecture consists of two questions:How to get system time and date?How to set system time and date? Let start training right now :)So, the first section is:How to get system time and date?Actually, this is not difficult task! Use the following functions:Now - function returns the current date and time according to the setting of your computer's system date and time.Date - function returns the current system date.Time - function returns a Variant of subtype Date indicating the current system time.So, the code is very simple. I provide it with a screen shot containing results:Well, let's deal with the second section:How to set system time and date?For that, I will use simple DOS commands:time - this command displays or sets the system time:To change the tim...
More About: System , Sources , Automated testing
QTP - How to set/get system time and date?
2007-10-25 19:40:00
 QTP allows running different types of test. And sometimes, it needs perform time and date manipulations on a computer. In this article, I will show and explain - how to get system time/date and change them.Actually, today's lecture consists of two questions:How to get system time and date?How to set system time and date? Let start training right now :)So, the first section is:How to get system time and date?Actually, this is not difficult task! Use the following functions:Now - function returns the current date and time according to the setting of your computer's system date and time.Date - function returns the current system date.Time - function returns a Variant of subtype Date indicating the current system time.So, the code is very simple. I provide it with a screen shot containing results:Well, let's deal with the second section:How to set system time and date?For that, I will use simple DOS commands:time - this command displays or sets the system time:To change the tim...
More About: System , Sources , Automated testing , Stem
How to organize user-defined functions into LoadRunner library?
2007-10-23 19:36:00
Assume, you work and work in LoadRunner , create and create scripts.Eventually, you face the situation when your code is duplicated in many scripts. This is a wrong way! Take my word for it :)I will show - why it is and how to struggle against it.Duplicated code is an evil, because:If you fix/modify a duplicated code, you have to edit each occurrence of this code.It needs add debug messages into duplicated code, you have to add debug functions into each occurrence of this code.If you decide to change the algorithm, implemented in a duplicated code, you are reluctant to find and edit it in each occurrence of this code. If you have tens or hundreds VuGen tests, containing diplicated code, the support can become a nightmare. Rework will cost too much!!! You must avoid it from the beginning.Well, what to do?You have create a user-defined library. It needs place your code into separate h-file.Let's assume, we will use the following function: sum(1, 4, -3)which calculates a sum of argu...
More About: Organize , Library , Functions , User
How to organize user-defined functions into LoadRunner library?
2007-10-23 19:36:00
Assume, you work and work in LoadRunner , create and create scripts.Eventually, you face the situation when your code is duplicated in many scripts. This is a wrong way! Take my word for it :)I will show - why it is and how to struggle against it.Duplicated code is an evil, because:If you fix/modify a duplicated code, you have to edit each occurrence of this code.It needs add debug messages into duplicated code, you have to add debug functions into each occurrence of this code.If you decide to change the algorithm, implemented in a duplicated code, you are reluctant to find and edit it in each occurrence of this code. If you have tens or hundreds VuGen tests, containing diplicated code, the support can become a nightmare. Rework will cost too much!!! You must avoid it from the beginning.Well, what to do?You have create a user-defined library. It needs place your code into separate h-file.Let's assume, we will use the following function: sum(1, 4, -3)which calculates a sum of argu...
More About: Organize , Library , Functions , User
LoadRunner VuGen scripting - How to automatically download file from server
2007-10-18 20:21:00
In my previous article, "How to record a file saving, performed by user from browser page?", I shown that user's activities are not recorded by Load Runner . This is a rule!LoadRunner records file transferring from server and does not record file saving.What to do, if you have to save transferred file to local disk?Continue reading, and you will get the solution :)So, Let's start.You can download file from a server with the web_url function.See an example:Image downloading:web_url("logo.gif", &nbs p;  "URL=http://www.google.com/ intl/en_ALL/images/logo.gif",     "Resource=1",  &nbs p; "RecContentType=image/gif",     "Snapshot=t1.inf",  ;   LAST);This code downloads Google's logo image:To save this image as file to local disk, we have to perform these steps:Capture image from server's responseSave captured data to local diskHow to capture image from server's response?Use web_reg_save_param function ...
More About: Download , File , Server
LoadRunner VuGen scripting - How to automatically download file from server
2007-10-18 20:21:00
In my previous article, "How to record a file saving, performed by user from browser page?", I shown that user's activities are not recorded by Load Runner . This is a rule!LoadRunner records file transferring from server and does not record file saving.What to do, if you have to save transferred file to local disk?Continue reading, and you will get the solution :)So, Let's start.You can download file from a server with the web_url function.See an example:Image downloading:web_url("logo.gif", &nbs p;  "URL=http://www.google.com/ intl/en_ALL/images/logo.gif",     "Resource=1",  &nbs p; "RecContentType=image/gif",     "Snapshot=t1.inf",  ;   LAST);This code downloads Google's logo image:To save this image as file to local disk, we have to perform these steps:Capture image from server's responseSave captured data to local diskHow to capture image from server's response?Use web_reg_save_param function ...
More About: Download , File , Server
LoadRunner - How to record a file saving, performed by user from browser pa
2007-10-13 23:22:00
The problem:This is a frequently asked question - why file downloading from a browser page (right mouse click, then "Save Target As...") was not recorded in Load Runner VuGen script?The difference between functional and load testing:Actually, LoadRunner records a file transferring only, not downloading!This is the principal difference between functional and load testing! I will describe it.Functional testing is done from a user's viewpoint.What does a user see? It sees windows, dialogs, UI cotrols.For example, user can see downloaded html-page in a browser, or as plain text in a telnet session.In this case, data transferring is the same (HTTP protocol), while data representation varies (browser or telnet session).LoadRunner performs Load testing, i.e. it records and emulates data transferring between client and server. Data transferring only, not data displaying for user!For the above example, html-page can be downloaded directly from web-server. Another variant - page can be downlo...
More About: File , User , Browser
LoadRunner - How to record a file saving, performed by user from browser pa
2007-10-13 23:22:00
The problem:This is a frequently asked question - why file downloading from a browser page (right mouse click, then "Save Target As...") was not recorded in Load Runner VuGen script?The difference between functional and load testing:Actually, LoadRunner records a file transferring only, not downloading!This is the principal difference between functional and load testing! I will describe it.Functional testing is done from a user's viewpoint.What does a user see? It sees windows, dialogs, UI cotrols.For example, user can see downloaded html-page in a browser, or as plain text in a telnet session.In this case, data transferring is the same (HTTP protocol), while data representation varies (browser or telnet session).LoadRunner performs Load testing, i.e. it records and emulates data transferring between client and server. Data transferring only, not data displaying for user!For the above example, html-page can be downloaded directly from web-server. Another variant - page can be downlo...
More About: File , User , Browser
Using Correlation in LoadRunner scripts - visual tutorial
2007-10-12 22:42:00
Today, I will explain - what is Load Runner correlation and how to perform it.In my humble opinion, correlation is the key concept of LoadRunner. So, strong understanding of correlation is mandatory requirement for any test engineer, if he plans to be LoadRunner professional or even guru :)Example from a real practice:I recorded LoadRunner script for a web server, which contained two special fields - timestamp and checksum:web_submit_data("rms.jsp",     "Action=http://ep rumossd0010:8400/RMS/jsp/rms.jsp",     "Method=POST",     "RecContentType=t ext/html",     "Referer=http://e prumossd0010:8400/RMS/html/testFramework. html",     "Snapshot=t4.inf" ,     "Mode=HTML",     ITEMDATA,     "Name=TIMESTAMP", "Value=1192177661211", ENDITEM,     "Name=CHECKSUM", "Value=715E19300D670ED77773BBF066DAAAE28. ..
More About: Tutorial , Scripts , Visual
Using Correlation in LoadRunner scripts - visual tutorial
2007-10-12 22:42:00
Today, I will explain - what is Load Runner correlation and how to perform it.In my humble opinion, correlation is the key concept of LoadRunner. So, strong understanding of correlation is mandatory requirement for any test engineer, if he plans to be LoadRunner professional or even guru :)Example from a real practice:I recorded LoadRunner script for a web server, which contained two special fields - timestamp and checksum:web_submit_data("rms.jsp",     "Action=http://ep rumossd0010:8400/RMS/jsp/rms.jsp",     "Method=POST",     "RecContentType=t ext/html",     "Referer=http://e prumossd0010:8400/RMS/html/testFramework. html",     "Snapshot=t4.inf" ,     "Mode=HTML",     ITEMDATA,     "Name=TIMESTAMP", "Value=1192177661211", ENDITEM,     "Name=CHECKSUM", "Value=715E19300D670ED77773BBF066DAAAE28. ..
More About: Tutorial , Scripts , Visual
How to automatically create custom HTML report in LoadRunner Analysis from
2007-10-07 00:53:00
Introductory words about Load Runner Analysis HTML reports:I like watching on how my LoadRunner scripts work without my intervention. The plan is simple:I start LoadRunner Controller from command lineController performs load testingAfter Controller finishes, it opens AnalysisLoadRunner Analysis analyses :) and interprets results of load testsI create and export customized HTML reportDefault HTML report looks like the following one:The task I faced:After Analysis completed working, custom HTML report should be created and exported automatically and be sent with email. After that, next load test can be started from bat-file. So, there are no any pauses for tester's intervention should be.My custom HTML report should contain new graph - "Windows Resources". Also, several default pages should be removed - "Running Vusers", "Throughput", and "Transaction Summary". So, new HTML report should look like:And the main condition is:this custom report should be generated automatically every tim...
More About: Report , Html
resume
2007-09-20 10:55:00
??? ??????.?? ??????? ?????In English
More About: Resume
LoadRunner - how to convert a plain text to URL format
2007-09-19 09:17:00
The task - How to convert a plain text string to URL-format in Load Runner ?Several days ago I faced with a simple task - it was needed to convert a passed parameter (which was in a plain text form) to URL-format. In other words, I had to convert:string "ab" to the same string "ab"string "a b" to the string "a%20b"string "a b_c%" to "a%20b%5Fc%25"and so on ...The cause - Why it was needed?LoadRunner script contained parameters, which should be passed to URL directly. Some my parameters contained special characters like spaces (" "), quotes ("), percentage ("%"), asterisks ("*") and others. To be processed correctly by a browser and a web server, these characters should be translated and passed as their hex-codes.For example:a space character (" ") has hex-code 0x20, so it should be passed as "%20"underline character (" ") has hex-code 0x5F, so it should be passed as "%5F"The ways on how to perform the task.To perform this task I decided to use LoadRunner's web_convert_param function....
More About: Plain , Text , Convert
More articles from this author:
1, 2, 3
111728 blogs in the directory.
Statistics resets every week.


Contact | About
© Blog Toplist 2012 - Supported by Web Catalog - SEO by FeWorks
eXTReMe Tracker