QTP VIDEO - How to capture dynamic text?

This QTP video tutorial explains how to use QTP Text Output to capture dynamic text.

The present QTP (QuickTest Pro) video tutorial covers the following:
  1. How to use QTP to capture text from the page
  2. Settings from QTP 'Output Text Value Properties' dialog
  3. Explanation for QTP Output value
  4. Explanation for left & right boundaries
  5. How to save QTP Output text value into QTP DataTable
  6. Differences between Global and Local QTP DataTable sheets
  7. How to read value from QTP DataTable
How to capture dynamic text


Dear Reader!
  • Do you have comments on this QTP video tutorial?
  • Do you have suggestions for future QTP video tutorials?
  • Do you have interesting thoughts to share with us?
  • Do you have plans on how to cooperate with me and my blog?
  • Do you have bright ideas on automated testing?
If your answer is 'Yes', please leave your comment to my blog.
Or send me email. You can see my email at the end of this video tutorial.

Thank you in advance!

P.S. Your opinion is extremely important for me...



Related articles:


Do you like this QTP visual tutorial? Would you like to receive them in the future?
If yes, please subscribe to this blog RSS feed or by Email. (How to subscribe? VIDEO guide)


How to record QTP script - QTP VIDEO tutorial

I'm glad to introduce my new visual tutorial.
This is QTP (QuickTest Pro) video tutorial and it explains how to record QTP scripts.

The present QTP (QuickTest Pro) video tutorial covers the following:
  • How to record QTP script for Web applications
  • What record and run settings should be used to run and execute QTP script
  • How to replay/execute QTP script
  • How to get results of executed QTP script
  • How to enable capturing screenshots during QTP scipt replaying
  • How to enable capturing video during QTP scipt replaying
How to record QTP script - video tutorial - Part 1


How to record QTP script - video tutorial - Part 2


This is my first attempt to create Flash presentation :)
In the future I will create video presentations on my favourite automated testing tools - QTP (QuickTest Pro), LR (LoadRunner), and Selenium (cross-platform automated testing tool for Web applications).

So, my main goal is to get feedback on the way I plan to evolve my blog, dear readers.



Related articles:


Do you like these QuickTest Professional visual tutorials? Would you like to receive them in the future?
If yes, please subscribe to this blog RSS feed or by Email. (How to subscribe? VIDEO guide)



--
Thank you for visiting and reading, dear readers!
Dmitry Motevich

Try to download LoadRunner 9.1...

... and be disappointed :(

Yes, I tried to download LoadRunner 9.1 and was disappointed. Do you know why I was? OK, I will explain...

Some time ago I wrote about new LoadRunner 9.1 - LoadRunner 9.1 (9.10) is coming soon!

And two days ago I found, that LoadRunner 9.1 is available for downloading from HP site:
It goes without saying, that I click the link 'Download a free 10-Day Trial of LoadRunner' to evaluate new version and share my impressions...

Yes, HP uploaded trial LoadRunner 9.1 version:

After that I pressed 'I Agree' btn to start downloading and... and I got the following error:
It's a pity, that a Leader in Business Technology Optimization (I mean HP) allows such errors...

Moreover! I got this error on this Friday (14th March 2008).
The same error was present on yesterday (15th March).
Nothing changed today (16th March) - I'm getting the error again and again...

It looks like a bad tendency :(

So, do you have any guesses - will HP fix the error tomorrow (2/17/2008) or not? As for me, I doubt.

In any cases, I am still waiting for better times to download and evaluate new LoadRunner 9.1

How to run LoadRunner Controller from command line?

Today I will explain how to open and run LoadRunner Controller scripts from command line.
This feature can decrease tester's manual efforts and thereby to increase your effectiveness and performance.

You can open LoadRunner Controller scenario with:

LoadRunner\bin\Wlrun.exe -Run -TestPath scenario.lrs -ResultName res_folder


For example:
(note: click the image to enlarge it)

As a result of above command, LoadRunner Controller:
  • starts
  • opens Controller scenario
  • executes it
  • saves results to folder 'C:\Temp\LR_Res\result_0'
After that, Controller finishes working and closes.
Please, see files from created 'C:\Temp\LR_Res\result_0' folder:
Tips: As you see, there is LoadRunner Result file (result_0.lrr). You can pass it automatically to LoadRunner Analysis for further processing.
Refer for detailed information: Custom HTML report in LoadRunner Analysis from command line.

Actually, Wlrun.exe can have several settings. There are their descriptions from HP LoadRunner Controller User's Guide (© HP/Mercury Interactive):
TestPathPath to the scenario.
For example, C:\LoadRunner\scenario\Scenario.lrs
If the path includes blank spaces, use quotation marks.
RunRuns the scenario, dumps all output messages into res_dir\output.txt and closes Controller
InvokeAnalysisInstructs LoadRunner to invoke Analysis upon scenario termination. If this argument is not specified, LoadRunner uses the scenario default setting.
ResultNameFull results path. For example, "C:\Temp\Res_01"
ResultCleanNameResults name. For example, "Res_01"
ResultLocationResults directory. For example, "C:\Temp"
Note: ResultName (full path) = ResultLocation (directory) + ResultCleanName (name)

Well, let's see different variants of how to open and run LoadRunner Controller script:

Open LoadRunner Controller:
Wlrun.exe

Open LoadRunner Controller scenario 'scenario.lrs' and do not execute it:
Wlrun.exe -TestPath scenario.lrs

Open LoadRunner Controller scenario 'scenario.lrs', execute it, and save results to default folder ('C:\Documents and Settings\user_login\Local Settings\Temp\res'):
Wlrun.exe -Run -TestPath scenario.lrs

Open LoadRunner Controller scenario 'scenario.lrs', execute it, and save results to 'res_folder' folder:
Wlrun.exe -Run -TestPath scenario.lrs -ResultName res_folder

Open LoadRunner Controller scenario 'scenario.lrs', execute it, save results to 'res_folder' folder, and after that start Analysis on created results with default template:
Wlrun.exe -Run -TestPath scenario.lrs -ResultName res_folder -InvokeAnalysis


And please see more complex example for desert :)

Open LoadRunner Controller scenario 'scenario.lrs', execute it, save results to 'res_folder' folder, and after that start Analysis on created results with default template. Repeat all these steps 10 times:
set LR_HOME=C:\Program Files\Mercury\LoadRunner
for /L %%i in (1,1,10) do "%LR_HOME%\bin\Wlrun.exe" -Run -TestPath "%LR_HOME%\scenario\memory_leak_crash.lrs" -ResultName C:\Temp\LR_Res\result%%i

Result is:


Well, where to use execution from a command line?
It can be very useful in some cases, when you plain to:
  • run LoadRunner Controller and pass its results to LoadRunner Analysis
  • run LoadRunner scripts by schedule

Thank you, dear readers.
Any questions and comments? Welcome :)
--
Dmitry



Related articles: