SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Apr 2008
    Posts
    40
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    why qtp run slowly with description programming?

    Hello everyone,
    QTP runs so slowly when I wrote the code with description programing. would you tell me what's reason? and how to improve the speed of qtp runing under description programing.
    By the way, I have set File -> Settings -> Run - Object Sync Timeout (20 -> 2), and Smart identification disabled.I run the code under normal mode

    code:
    Dim controler1, value1,controler2, value2,controler3, value3,action

    For i = 1 to 10000
    'get value
    controler1 = getExcelcell(fullPth, sheet, i, 3)
    value1=getExcelcell(fullPth, sheet, i, 4)
    controler2=getExcelcell(fullPth, sheet, i, 5)
    value2=getExcelcell(fullPth, sheet, i, 6)
    controler3=getExcelcell(fullPth, sheet, i, 7)
    value3=getExcelcell(fullPth, sheet, i, 8)
    action=getExcelcell(fullPth, sheet, i, 9)

    'run step
    Execute controler1&".("& value1&")."&controler2&".("& value2&")."& controler3&".("& value3&")."&action

    Next

    excel format in attachment.
    Thanks for your reply
    Attached Images Attached Images

  2. #2
    Super Member QAGanesh's Avatar
    Join Date
    Sep 2010
    Posts
    1,898
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: why qtp run slowly with description programming?

    What is the code!! Post it

    Also check the Run mode!! Is it Normal, Fast or Slow.

    Do not change the Object Sync Timeout, let it be 20.
    Thanks,
    Ganesh Iyer
    Winds of Change

  3. #3
    Apprentice
    Join Date
    Feb 2012
    Posts
    36
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: why qtp run slowly with description programming?

    I think with Descriptive programming we are not using the QTP OR intelligence. B'cos of this QTP takes time in identifying objects on AUT.

    have a look at below link , it might help you
    http://relevantcodes.com/dp-vs-or/

  4. #4
    Member
    Join Date
    Apr 2008
    Posts
    40
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: why qtp run slowly with description programming?

    I upate the question for adding the code, you can see it, thanks

  5. #5
    Member
    Join Date
    Feb 2007
    Location
    London
    Posts
    391
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: why qtp run slowly with description programming?

    What's happening in the function getExcelcell(), this could be a bottleneck?

  6. #6
    Super Member
    Join Date
    Dec 2005
    Location
    USA
    Posts
    1,407
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: why qtp run slowly with description programming?

    I hope you are using the Data tables to retrieve the values and [ QUOTE ]
    For i = 1 to 10000

    [/ QUOTE ] it would sertainly would consume lots of time. Try to use the Excel com to retrieve the data.

    Also i could see that you are retrieving the data and building the DP, if you are using lot of If statements then it could also consumes lot of time.

    Try to build the DP from test data and execute and check if it is really taking more time.

    Note: to know better keep the timer in between the function and check where it is taking more time.
    ------------
    Chikki
    when things gets harder ,the harder gets going

 

 

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 9.09%
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 08:03 AM.

Copyright BetaSoft Inc.