Micro Focus QTP (UFT) Forums
How to pass variable while creating Database checkpoint - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to pass variable while creating Database checkpoint (/Thread-How-to-pass-variable-while-creating-Database-checkpoint)



How to pass variable while creating Database checkpoint - newqtp - 01-14-2008

How can we pass a variable while creating a Database checkpoint.Is it even possible ?

I would like to do something like

QTP script
MyVar=123

Database Checkpoint query:
select * from table where col=MyVar;

instead of doing
select * from table where col=123;


RE: How to pass variable while creating Database checkpoint - Ankur - 01-16-2008

Yes you have two ways to do that, programatically as well as from the wizard.

In wizard, Inside database check properties change the configure value to parameter or you can change the full source from the object repository.


RE: How to pass variable while creating Database checkpoint - newqtp - 01-23-2008

can you please tell me how to do it in wizard.As i'm new to qtp.
Thanks in ton.