I am new to Mercury Quick Test Professional functional testing tool. I am doing an internship in a IT company. My mentor wants me to learn QTP and able to run and maintain VBScripts.
-- I want to find some sample VBScripts and run them as exercise before I run the real scripts. Could someone tell me where I can download sample VBScripts online so I can practice by myself.
--I also read QTP (version 8.2) user menu in which mentioned that there is a printable online version of user menu at adobe.com. I went to adobe website and I wasn’t able to find user menu there. If someone know the link to the online user menu, could you tell me the link?
--In user menu it states that there are two methods that can be used for testing. Test and business component. I think I should use test method (a collection of actions) to run VBScript. When I run the script should I just use ‘run’ function or I need to build object repository? I want to know what kind of test structure I need to use in order to run the script?
--If I encounter errors while running the script. Does mercury has a error code look up link (explains what caused the error)?
--Is there good online learning resources for QTP? Websites that offer in depth demonstration on how to use the tool, testing planning, along with good examples.
Thanks in advance, I hope that I can get some help.
QTP comes with a tutorial that lets you build scripts against a working application. It takes you through the basics of everything you need to get started.
Sample QTP scripts would be pointless as you would also need the application to test them against. Sample VBScript scripts can be found all over the web - try Google. I like the following website for VBScript info: http://www.w3schools.com/vbscript/default.asp
No idea about printable version of the manuals - my QTP came with books but I rarely use them as the documentation in the Help menu seems to answer anything the books would answer.
I agree with your using test-method and building a set of actions. I personally never make an action that is not reusable (even if I truly believe I won't reuse it). Build every action so it begins and ends in a known place/condition then it can be dropped into any other script that needs it. (The tutorial won't teach you that but it's commonly accepted standard practice for automation testing).
I consider it one of the great failings of QTP that it provides so little information when an error is encountered. I'm referring to an error in the script, not an error (bug) in the application. Most automation tools won't recognize bugs in the application - that's your job. But every other automation tool I've used is better and explaining what's wrong when there is an error in the test script. I guess the silver lining is you get to think on your feet more and solve your own scripting errors - makes you better at coding scripts in the long run.
As for websites with good information, this is the best I've found but I didn't really look hard. While I'm new to QTP I'm not new to automation so I just molded QTP to what I already knew. Once you've done the tutorial, search this site for keywords like methodology, framework, approach, etc. and you'll find some useful info.
I am very new to this QTP i know only the basics of QTP(recording,parametrization)i don't understand how we can use the script in QTP can u pls help me out by emailing me the workbook that u have.Thanks in advance