Answered Questions

  • How to save User Defined Data in Global Data Sheet

    Hi,Can I save my user defined variable value in a Data Sheet ?Dim textValuetextValue= Browser("Browser").Page("Pag1").WebEdit("WebEdit").GetROProperty("innertext")I want to save textValue in a column in Global Data Sheet. Then I want to compare this column with another column.Is that possible ?ThanksSairam

    newqtp

    • Jan 13th, 2008

    Hi sai Try thisfor entering data at run time in your datatablec="somedata"datatable("name2",dtglobal)=cand compariing two column this will workDim A,BA=datatable.Value("Column...

  • How to pass a key in the query while creating a database check point?

    Hi, Would be great if you could let me know how to pass a key in the query while creating a database check point? My key value is stored in a variable in the script.In short, what I want to know is:myVar='keyvalue'select * from myTable where myKey='keyvalue';Instead of specifying the query like select * from myTable where myKey='keyvalue'; in the database checkpoint, I want to use the variable myVar...

  • what is a file system object in QTP

    Star Read Best Answer

    Editorial / Best Answer

    chitta10  

    • Member Since Jul-2009 | Mar 29th, 2010


    File system object is to create a file where you can store your informations and also read. Have a look to my exemple I think you can understand it.

    SystemUtil.Run "iexplore.exe","","C:Documents and Settingsuser18Desktop",""
    Browser("Google").Page("Google").Link("Gmail").Click
    Browser("Google").Page("Gmail: Email from Google").Sync
    Dim x,y
    Set x = CreateObject("Scripting.FileSystemObject")
    Set y = x.Createtextfile("d:testfile.xls",true)
    If Browser("Google").Page("Gmail: Email from Google").Exist Then
    y.writeline("step1 login details is pass")
    else
    y.writeline("step1 login details is fail")
    End If
    Browser("Google").Close

    Thanks and regards,
    CHITTA.