QTP10.com is a new and completely free website that offers help in all the versions of HP QTP (including latest version 10). More importantly, it offers free code for users of HP QuickTest Professioal. This site helps you in learning the basics of QTP and descriptive/advanced programming in (QTP) on various environments like - .Net, Infragistics, Web, Windows, etc.

Note -
This blog is NOT affiliated with HP / Hewlett-Packard in any way. The data/questions come from various sources and we have our own testing questions. I am just another Software Tester like you.

---------------------------------------------------------------------

Get updates and tips by Email, Twitter & Facebook. To Subscribe, Click on the respective image.



Saturday, October 15, 2011

QTP Unplugged & And I thought I Knew QTP Books– 8 Books giveaway to Indian Readers

[Update: to make the Giveaway more interesting now giveaways are 4 QTP Unplugged Books and 4 And I Thought I Knew QTP books]

[Update 2Due to festival week in India [Deepavali week], we are planning to extend the giveaway deadlines to November 3. 
Those who didnot send the entries - Send us your entries asap and you can be the one to grab best seller QTP books/tutorials for free..]


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 more smartly. I really appreciate the effort of the author. I bet, if you really want to learn QTP then only this book is enough to understand the basics and advanced concepts. Also whenever you have any issues/queries in QTP, author will help you via QTP forums.  
Read the Book review here.
Giveaway: [Update: to make the Giveaway more interesting now giveaways are 4 QTP Unplugged Books and 4 And I Thought I Knew QTP books]
So guys we are planning to giveaway 4 QTP Unplugged Books. Tarun is so generous he agrees to giveaway 4 more QTP Unplugged books to our visitors. So total of 8 books will be given away to 8 lucky members.
So how to become a lucky member? You need to send us the answers of the following questions to our email id fb@onestopsoftwaretesting.com. After a random vote, the winners will be declared:
  1. You Introduction and experience in testing?
  2. Why do you want to learn QTP?
  3. Benefits of Automation over Manual?
  4. What do you think about the future of Manual & Automation Testing?
Deadline: Send us your entries by Oct 23, 2011.
Note: This giveaway is only for Indian readers. For rest of the countries will be back soon with giveaways. Books will be delivered in India only.
Discount coupons:
For rest of the members, Tarun generated a coupon code OSSTMEMBER for our visitors. The coupon will provide 10% discount and is valid till 31st Dec. rest of the members can pre-order the book at: http://knowledgeinbox.com/store/ (This site is owned by Tarun). The current price of the book is INR 585 (same as the price of your Family size pizza)
knowledgeinbox.com already have discounted prices on the pre-booking orders. The discount coupon code OSSTMEMBER  will be over and above the existing discounts. The pre-booking discounts will be taken off on 21st Oct. So those who order and pay before October 21, 2011 will have real good discounts.
You can join also join And I thought I knew QTP (Tarun’s New book on QTP) on Facebook.

SPONSORED LINKS:

Saturday, May 21, 2011

How to Debug custom functions in QTP

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.Exist
msgboxx txt
End Function

To debug the above function (which has intentional typos), copy the statements into a QuickTest Professional script:

msgbxo obj.Exist
msgboxx txt

If needed, modify any references to a generic object to an actual object:

msgbxo Browser("Browser").Exist
msgboxx txt

Execute the code; debug as needed:

msgbox Browser("Browser").Exist ' corrected typo: msgbxo -> msgbox
msgbox txt ' corrected typo: msgboxx –> msgbox

Copy the corrected code into the function. Verify it works as expected:

Function ex_func(obj, txt)
msgbox Browser("Browser").Exist
msgbox txt
End Function

If needed, modify references to specific objects back to general references:

Function ex_func(obj, txt)
msgbox obj.Exist
msgbox txt
End Function

Verify the function works as expected.
(Optional) Move the function into a function library.

3. If your function is returning a value, the value should be assigned to the function name. This is a VBScript requirement.

Example:
Function examplefunc
examplefunc = "returned value"
End Function
msgbox examplefunc

4. If your function is saved in an external function library, make sure you associate the function library with the test script.

by - Abhishek Nema - http://goo.gl/HUSSo

SPONSORED LINKS: