P. 1


|Views: 130|Likes:
Published by G.C.Reddy
QTP Tool features vs Vb Script features
QTP Tool features vs Vb Script features

More info:

Published by: G.C.Reddy on Jul 12, 2011
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less







For QTP Scripts

QTP has an Integrated VB Script Engine for Scripting and SQL Engine for Database operations. QTP IDE has provided several features for Creating & Executing Tests. In QTP, Creating Tests can be performed in two stages a) Generating Basic Tests b) Enhancing Tests For creating basic tests QTP has provided 2 methods one is Object Repository based Test design another is Descriptive Programming. For Enhancing Tests we can use either QTP Tool features like Checkpoints, Output values, Transaction points, Synchronization points, Data Table etc.. Or We can use VB Script features like Flow Control Statements, Functions (Built-in and User defined), Automation objects etc... Try to increase the usage of Vb Script features and reduce the usage of QTP Tool features.

QTP Tool Features Vs VB Script Features


QTP Tool Features QTP has 2 types of features support 1) Direct features Ex: Recording, Checkpoints, Output values, Step Generator, Object Repository, Object Spy, Data Table etc… 2) Integrated tools from HP Password encoder, Test Batch Runner, Test Results Deletion tool etc… QTP Tool features may corrupt (may corrupt or may not corrupt but there is a possibility to corrupt.) Readymade environments have limitations (We cane use features based on provided options only) QTP tool features or slower in execution. (QTP has maintain registry files for its features, so burden on QTP Tool) Some Tool features can’t be used externally.

VB Script features VB Script has several features Ex: Operators, Flow Control Statements, Functions (Built-in and User defined), Regular Expressions, Automation Objects (File System Object, Excel Application Object, Word Application Object, Database Connection Object, Database Record set object etc...), Error handling Statements etc… VB Script features won’t corrupt.

Programming / Scripting Logic doesn’t have any limitation. VB Script features are faster in execution (QTP no need to maintain registry files for VB script features, so no burden on QTP Tool) All VB script features can be used Internally as well as Externally.

Note: Depend on QTP Tool features only for Generating basic tests, use VB Script features for enhancing Tests. Basic Test: basic test / test script means plain navigation. Enhancing Tests: Enhancing tests means inserting verification points an error handling statements.


For manual Testing docs

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->