tags:

views:

623

answers:

2

Basic doubt...If QTP generates vbscript code as we record actions, can't we directly write vbscript code and get rid of QTP which does the same thing too?

+1  A: 

Yes. You can write the code yourself, but you'd have to paste it into the QTP UI.

No. QTP is the engine that runs through it. The VBScript relies on the QTP UI to perform the actions in question, such as clicking on a link on a web page.

tsilb
Is it possible to write VBScript to perform the same which runs on just WINDOWS? (Not the same code, not on QTP UI.)
San
+2  A: 

While you can write QTP test scripts in any text editor (whether QTP IDE, Notepad or any other editor of your choice), you can run them only from QTP as it extends VBScript with its own object model providing the test objects (e.g. Browser) and test actions (e.g. Click). Outside of QTP these objects and actions are not defined, so you can't run test scripts directly via Windows Script Host.

Helen