SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Mar 2010
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Can we Fire sql query on the datasheet of QTP

    Hi

    I have huge data for which I need to do some testing. But iterating each time through it cause me lots of time. And my execution time becomes bottleneck.

    Is there any way to fire sql query on the QTP datasheet.

    Or the..way...to implement...hash table....

    So that we can have key value pairs....easy to..iterate throught he table....
    Automation Test Engineer

  2. #2
    Member
    Join Date
    Nov 2007
    Posts
    64
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Can we Fire sql query on the datasheet of QTP

    Hi,

    We can fire sql query, sql is a language used to communicate with the database.
    retrieve the value using
    value=datatable.value("columnname",sheetname)

    Regards;
    vijay

  3. #3
    Member
    Join Date
    Nov 2007
    Posts
    64
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Can we Fire sql query on the datasheet of QTP

    Hi,
    Sorry i mispelled, i think we can't fire sql against excel sheet.

    Regards;
    vijay

  4. #4
    Member
    Join Date
    Dec 2009
    Posts
    261
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Can we Fire sql query on the datasheet of QTP

    Hi,
    I am not sure if you can fire SQL query on the DT Sheet
    of QTP. But it is possible to access a general XL sheet
    with SQL queries.

    Try the following link. Hope this works...

    http://www.sqaforums.com/showflat.php?Ca...&PHPSESSID=

    - Devaraj R

  5. #5
    Super Member Jonty's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    1,266
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Can we Fire sql query on the datasheet of QTP

    Look at 'Dictionary objects' for Key value pair kind of mode.

    Otherwise, export the sheet and use 'ADO' against the exported excel(noted in the previous post)
    Cheers
    Jonty..
    -- Here to Learn and share ---

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.00%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 07:51 PM.

Copyright BetaSoft Inc.