I just want to know that how can we create Classes and how can we access them. I mean is Vb script supports OOPS concepts? if yes then how
Please give your comments with some interactive Examples.
QTP Automation Engineer,
Read up on the Class keyword in VBSCRIPT. The only catch using classes in QTP is that you should put a function to get a class reference like this:
set getInstance= New CClass
You associate this with your test, and do something like this:
Set oWhatever = getInstance
Set oWhatever = nothing
If you search you'll find examples here.
This thread has many useful tidbits about vbScript. About half way down I provide a tutorial like description of using custom classes with some examples: