|
| |
| |
| |
|
|
|
| HP QuickTest Professional 10 |
| This is a new and completely free website that offers help in all the versions of HP QuickTest Professional (including latest version 10). More importantly, it offers free code for users of HP QuickTest Professional! This site helps you in learning the basics of QTP and advanced programming in Quicktest Professional (QTP) on various environments like - .Net, Infragistics, Web, Windows, etc. |
| Language: English |
| RSS Feeds for this Blog |
|
Statistics |
| Unique Visitors: 2330 |
| Total Unique Visitors: 11020727 |
| Visitors Out: 6068 |
| Total Visitors Out: 36378 |
|
|
|
| |
|
|
| |
|
| QTP Unplugged Book – 8 Books giveaway to Indian Readers |
| 2011-10-15 15:38:00 |
Sometime back we asked on facebook that who all are interested in learning the QTP for free. Reason for asking is – I don't understand why people are spending hundreds of $$ on QTP trainings. There are recourses available at affordable prices. The resource we are talking about is a Book – QTP Unplugged by Tarun Lalwani. About Book: QTP Unplugged is the first book on QTP and it is the best seller. The writer is Tarun Lalwani. I pre-order this book in April 2009. When I got the book Tarun (author) personally called me on my mobile (not only me, but to all readers) and asked me about the book. Book is really amazing and in every chapter you will find something new to learn(even if you know QTP). There are really very excellent tips in each chapter thru which one can start working on QTP m...
|
| |
|
| How to Debug custom functions in QTP |
| 2011-05-21 11:12:00 |
Debugging suggestions include:1. Use the suggestions above for debugging a script.2. Verify the code works when it is not within a function. If the code does not work when it is not in a function in a QuickTest Professional (QTP) script or within a pure VBS script (while QuickTest Professional is not in use), it will not work when it is placed within a function. The following example shows the step by step process of debugging a simple function. Example: Function ex_func(obj, txt)msgbxo obj.Existmsgboxx txtEnd Function To debug the above function (which has intentional typos), copy the statements into a QuickTest Professional script: msgbxo obj.Existmsgboxx txt If needed, modify any references to a generic object to an actual object: msgbxo Browser("Browser").Existmsgboxx txt Execu...
|
| |
|
| How to debug QuickTest Professional (QTP) Automation scripts |
| 2011-05-21 10:55:00 |
Debugging scripts :Debugging suggestions include:1. Use the Watch Expressions Tab in the Debug Viewer pane to display the values contained in variables2. Step through the script one line at a time3. Use the msgbox function to pause the test and display values contained in variables or retrieved from the application. Example:txt = Window("Notepad").WinEditor("Edit").GetROProperty("text")msgbox txt 4. If the replay error is related to not being able to identify an object, determine which object is causing the problem (the error can be from a parent object). You can use the .Exist method with the msgbox function to do this. Example:msgbox Browser("Browser").Existmsgbox Browser("Browser").Page("Page").Existmsgbox Browser("Browser").Page("Page").WebCheckBox("WebCheckBox").Exist Once you know ...
|
| |
|
| Software Test Automation Tools – Potential benefits & risks |
| 2011-04-28 13:48:00 |
Potential benefits of using Software Test Automation tools include: 1. Repetitive work is reduced (e.g. running regression tests, re-entering the same test data, and checking against coding standards). 2. Greater consistency and repeatability (e.g. tests executed by a tool, and tests derived from requirements). 3. Objective assessment (e.g. static measures, coverage and system behaviour). 4. Ease of access to information about tests or testing (e.g. statistics and graphs about test progress, incident rates and performance). Risks of using Software Test Automation tools include: Unrealistic expectations for the tool (including functionality and ease of use). Underestimating the time, cost and effort for the initial introduction of a tool (including training and external expertise). Undere...
|
| |
|
| Understanding Report.ReportEvent method in QTP |
| 2011-04-24 14:38:00 |
You can define a message that QTP sends to your test results. For example, suppose you want to check that a password edit box exists in the Login Form. If the edit box exists, then a password is entered. Otherwise, QTP sends a message to the test results indicating that the object is absent. To send a message to your test results: In the Keyword View, select a step and choose Insert > Step > Report or right-click a step and choose Insert Step > Report. The Insert Report dialog box opens. Select the status that will result from this step from the Status list. Passed: Causes this step to pass. Sends the specified message to the report. Failed: Causes this step (and therefore the test or component itself) to fail. Sends the specified message to the report. Done: Sends a message to ...
|
| |
|
| How to get the List of all subfolders in QTP – VBScript Code |
| 2011-04-12 10:34:00 |
With the help of FileSystemObject, we can get the List of all subfolders in QTP. Lets assume that Folder Structure is: Set a = CreateObject("Scripting.FileSystemObject") Set b = a.GetFolder("D:\PFolder") Set c = b.SubFolders For Each d in c e=e&d.name&vbnewline Next msgbox e ...
|
| |
|
| How to get File Creation Date & Time with QTP - Codes |
| 2011-04-12 10:25:00 |
Below is the QTP Code to get file creation Date and Time: Set f1 = CreateObject("Scripting.FileSystemObject") Set f2 = f1.GetFile("D:\Generic Test Plan.doc") S = "File was Created on: "&f2.DateCreated Msgbox S ...
|
| |
|
| Retrieves the value of the cookie for a specified Web page with QTP |
| 2011-03-16 13:44:00 |
A cookie is a small piece of information stored by the browser that applies to a Web page. Each cookie can store up to 20 name=value; pairs called crumbs, and the cookie is always returned as a string of all the cookies that apply to the page. This means that you must parse the string returned to find the values of individual cookies. You can retrieve cookies for a specific URL with two methods: Method 1:GetCookies msgbox Browser("Google").GetCookies("http://www.google.com") Method 2: Object.cookie strCookie = Browser("Google").Page("Google").Object.cookie msgbox strCookie ...
|
| |
|
| HP QTP 10 Certification HP0-M39 Sample Questions |
| 2011-01-09 06:17:00 |
1. How can you add recordable or non-recordable operations to your test? (Select three.)A. Use the Step Generator.B. Insert through Keyword View.C. Drag objects from the object repository.D. Drag objects from the Active Screen.E. Drag objects from Available Keywords.F. Drag objects from the Data Table.Answer: ABE 2. What is a QuickTest Professional test comprised of?A. calls to actionsB. calls to actions (reusable only)C. calls to QuickTest Professional testsD. calls and copies of actionsAnswer: A 3. Which names are used to identify the status of your application before and after your automated test executes? (Select two.)A. initial conditionB. static stateC. end conditionD. down conditionE. done conditionAnswer: AC 4. During the planning phase, you decide to create multiple actions that c...
|
| |
|
| Count the number of check boxes available in the webpage by QTP – Childobjects method |
| 2011-01-07 15:26:00 |
Working with Child Objects – Part 1 - Description Programming, Count ChildObjects, Enumerating ChildObjects In this post we will discuss: Count the number of check boxes available in the webpage Check All Checkboxes in the webpage You can copy and pate the below code in QTP and run the script. ' - - - - - - - - - - Count & check the number of check boxes available in the webpage ' - - - - - - - - - - SystemUtil.Run "iexplore.exe", “http://www.onestopsoftwaretesting.com/qtptest.html” 'Create a Description object Set dpAllChk = Description.Create 'Define the class of the above created Description objectdpAllChk("micclass").value = "WebCheckBox" 'Getting all the textboxesSet Allchk = Browser("Browser").Page("Page").childobjects(dpAllChk) Allchk(0).set "...
|
| |
|
| |
 |