Micro Focus QTP (UFT) Forums
Is this a perversion of QTP? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Is this a perversion of QTP? (/Thread-Is-this-a-perversion-of-QTP)



Is this a perversion of QTP? - RandomGrin - 12-07-2012

Hey gurus,

So I am handed a CD with all our 'QTP Scripts' on it.

Turns out, there is exactly one test case which has one action, which calls a function that runs a giant .vbs script, which does all the work, running dozens of test cases. So in my 'Expert' view, I see basically one line of code.

In other words, QTP is just being used as a script-running program.

I'm new to QTP, but I expected to see a different script for each test case, with each test containing a few dozen steps/actions/keywords.

Instead I have ONE script, that makes ONE function call, then that function runs all the tests.

Is this a waste of QTP, or am I just an ignorant beginner? (Which, yes, I know I am.)

If this is a waste as I suspect, what do I tell my boss? How do I describe to him what we are missing by doing it this way?

My gut tells me we are missing out on the power of QTP, but I don't know how to convey that to my boss, since I am too new to really understand what the power of QTP is!

Thanks for any help,

Random


RE: Is this a perversion of QTP? - ManualTester - 12-07-2012

I am sure you are not the first to feel this way. It must be a style preference of advanced QTP script development practice. I would run the script to see if it does the job. Later I would learn how it has implement and try to create my own test script in the similar style or follow the same framework.
QTP is feature rich- It is just a matter of your style…


RE: Is this a perversion of QTP? - Ankesh - 12-10-2012

This usually happens when you have a framework. A framework will usually have only one driver script. scripts will be written in excel. The driver script will call and execute the steps from excel itself.

Start exploring the framework which u have..

Regards,
Ankesh