Exforsys
+ Reply to Thread
Results 1 to 3 of 3

Doubt in QTP(urgent)

This is a discussion on Doubt in QTP(urgent) within the Software Testing forums, part of the Testing category; hi all, Please anybody help me to solve this.. I want to captuare a value from a textbox, which is ...

  1. #1
    sussain is offline Junior Member Array
    Join Date
    Jul 2007
    Answers
    11

    Doubt in QTP(urgent)

    hi all,

    Please anybody help me to solve this..

    I want to captuare a value from a textbox, which is in disabled mode.(while updation). And that captured value should be displayed/saved through a message box or in an Excelsheet.

    just like we get details of a submitted form.


    Please do the needfull, as soon as possible.

    Thanks & Regards,
    Sussin.


  2. #2
    sangeetharavi is offline sangee Array
    Join Date
    Jul 2007
    Answers
    8
    hi,
    wht do u mean updationa,?
    try to use text checkpoint to capture the text and save it into the
    datatable,by parametrization and use that value as a variable for ur msgbox.


  3. #3
    sukanya_QTP is offline Junior Member Array
    Join Date
    Apr 2008
    Answers
    8
    Quote Originally Posted by sussain View Post
    hi all,

    Please anybody help me to solve this..

    I want to captuare a value from a textbox, which is in disabled mode.(while updation). And that captured value should be displayed/saved through a message box or in an Excelsheet.

    just like we get details of a submitted form.


    Please do the needfull, as soon as possible.

    Thanks & Regards,
    Sussin.
    value from disabled textbox can be captured using descriptive programming.
    code to write into excelfile
    Excel_Filename="D:\TestingTraining\Shriilife\NPDR.xls" (path where ur excel file is located)
    Excel_Sheet_Name="NPDR" (sheet where u wana write the data
    Set XLsheet = createobject("Excel.Application")
    XLsheet.visible = False
    XLsheet.WorkBooks.Open(Excel_Filename)
    XLsheet.worksheets(Excel_Sheet_Name).select
    XLsheet.cells(row no,col no)=value to be written into excel
    XLsheet.ActiveWorkBook.save
    XLsheet.ActiveWorkBook.close
    XLsheet.Quit
    Set XLsheet = Nothing


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...