Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8605415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:49:30+00:00 2026-06-12T02:49:30+00:00

I have a data driven QTP test script that retrieves input parameters from an

  • 0

I have a data driven QTP test script that retrieves input parameters from an Excel File. Is there a way to actually write the results of the test into that Excel file, as well?

For instance,
My input file has the following Columns:

  1. User ID
  2. Password
  3. Login Result

The test script uses the User ID and Password are the input parameters to login to the system. The script then checks whether the login attempt was successful and then should write the result alongside in the Login Result column.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T02:49:32+00:00Added an answer on June 12, 2026 at 2:49 am

    Depends on how you have created your interfacing to Excel. If you use the Excel COM object (like Set objExcel = CreateObject("Excel.Application")) than it is certainly possible:
    See some basic scripts at ActiveExperts.com if you need examples.

    I have some bad experience with datatables in QTP (but I may be biased), that is why I do not use them. I do not know if two way communication with Excel is possible in QTP with the use of the build in datatables.


    EDIT
    See the QTP Help file how to do this with the build in datatables. It clearly says:

    ExportSheet Method
    Description
    Exports a specified sheet of the run-time Data Table to the specified file.

    If the specified file does not exist, a new file is created and the specified sheet is saved.
    If the current file exists, but the file does not contain a sheet with the specified sheet name, the sheet is inserted as the last sheet of the file.
    If the current file exists and the file contains the specified sheet, the exported sheet overwrites the existing sheet.

    Syntax
    DataTable.ExportSheet(FileName, DTSheet)

    Argument    Type      Description 
    FileName    String    The full file system path of the Excel table 
                          to which you want to export a sheet.  
    DTSheet     Variant   The name or index of the run-time Data Table sheet
                          that you want to export. Index values begin with 1.  
    

    Example
    The following example uses the ExportSheet method to save the first sheet of the run-time Data Table to the name.xls file.

    DataTable.ExportSheet "C:\name.xls" ,1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a data driven form generated on the fly from a database. The
I have code that generates a data-driven SVG graph and I'd like to display
I have a number data-driven web based applications that serve both internal and public
I have primarily worked with Data-Driven Applications. Is there a place on the net
I have to design and develop a data driven application from scratch to administer
I have a menu that is data driven(cached) and it is a global component.
What strategies and techniques have you used to produce a data driven application that
I have a report that uses User!UserID. But Data Driven Subscription cannot be created
I have 'data.xlsx' file with cells of numbers and letters. when I run this
I have data from travel diaries which has been read in from a csv

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.