Answered Questions

  • QTP Script for runtime changing objects

    Hi,How i can write the script for the runtime changing objectsFor Example My webtable name is "Wtable"Its containing n number of links "120 orders" "130 orders" "100 orders".......These orders text will dynamically changing like "120 orders" can be change as "121 orders"In this how can i write code for click these links in this webtableFirst i count the child objects in "WTable"Its now written 3It...

  • 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.