Thursday, September 23, 2010

QTP c# Integration

If you want to call qtp scripts from c# application , here i am to help with my tested code

first you have to make a reference to QTObjectModelLib.dll

using QTObjectModelLib;
QTObjectModelLib.Application qt;
qt = new QTObjectModelLib.Application();
qt.Launch();

qt.Visible = false;
qt.Options.Run.RunMode = "Fast";
qt.Open("C:\\Project QTP\\BUYNSE", true, true);

QTObjectModelLib.RunResultsOptions qtr;
qtr = new QTObjectModelLib.RunResultsOptions();
qtr.ResultsLocation = "c:\\resultsc";

//QTObjectModelLib.Application qttest;
//qttest = new QTObjectModelLib.Application();

qt.Test.Run(qtr, true, qt);

qt.Quit();


Wednesday, September 22, 2010

output params in qtp

Hi All

Back With the magical tricks of QTP

if you are not able to capture dynamic text with output params then try text checkpoints instead of standard checkpoints with output param
apply these on object whose text you want to capture