SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 10 of 10
  1. #1
    Junior Member
    Join Date
    Feb 2007
    Location
    VA
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    QTP 9.2 runtime row issue

    Hi,

    I am having issue with runtime row in QTP 9.2.
    when i set run from row 10 -15,in settings,
    my test is running 1st row.It is not considering settings which i set.

    i used

    x=Datatable.Gertcurrrentrow
    DataTable.setcurrentrow(x)

    When i looked at Datatable.GetCurrentRow value , its showing 1.

    But this works good in QTP8.2, We want to upgrade our scripts to 9.2, but apparently it has issues.

    please let me know if there is any workaround for this.

    Thanks in advance!!
    -Krishna
    -Krishna Desharaju

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

    Re: QTP 9.2 runtime row issue

    There are no issues with QTP 9.2 it is that you havent set it at the right place.

    You need to set that in the "Action Call Properties" and not in the File->Setting->Run tab.

  3. #3
    Junior Member
    Join Date
    Feb 2007
    Location
    VA
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP 9.2 runtime row issue

    Thanks for the quick reply,
    But we are calling many reusable actions. we will have 1 main action, that action will call the rest of the re usable actions.We will not set any thing in action proerties.
    when we want to run row 12-15, then we set Settings>Runfrom row>12 to 13.


    This works in QTP 8.2 but why not in QTP 9.2.

    Thanks!!

    Am i missing some thing?
    -Krishna Desharaju

  4. #4
    Advanced Member gencke's Avatar
    Join Date
    Feb 2008
    Location
    Seattle, Washington, United States
    Posts
    531
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    2 Thread(s)
    Total Downloaded
    0

    Re: QTP 9.2 runtime row issue

    Are tests are of similar design (an action that calls a bunch of reusable actions) Does the global table have 15 rows in it?
    Patience is like bread I say.... I ran out of that yesterday.

  5. #5
    Senior Member
    Join Date
    Dec 2006
    Posts
    304
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP 9.2 runtime row issue

    you can use datatable.getsheet("<sheetName>").getcurrent row

    method

    x=datatable.getsheet("<sheetName>").Gertcurr rentrow
    datatable.getsheet("<sheetName>").setcurrent row(x)

  6. #6
    Senior Member
    Join Date
    Mar 2006
    Location
    Bristol, UK
    Posts
    1,530
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP 9.2 runtime row issue

    Do you now import a sheet during runtime?

  7. #7
    Junior Member
    Join Date
    Feb 2007
    Location
    VA
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP 9.2 runtime row issue

    you can use datatable.getsheet("<sheetName>").getcurrent row


    Thanks!!, but i tried this too. Still its running the 1 st row.

    But when i manually do
    DataTable.setcurrentrow(100) then its running 100 th row.

    This is not the solution for this problem.
    if i want to run a range then how can we run?

    Some how settings option is not working.

    some one told that we set run setting in actioncall prop. but it doesn't work when we are calling multiple reusable components.

    we import an external excel data sheet, from that sheet we want to run cases.


    Thanks for all your reply.

    -Krishna
    -Krishna Desharaju

  8. #8
    Senior Member
    Join Date
    Sep 2004
    Location
    Phoenix, AZ
    Posts
    198
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP 9.2 runtime row issue

    Hi Krishna,

    Try this one:

    I hope you are using local data sheet.
    ok you need to take to parameters from another local data sheet(or environment file or some where else).

    range1=Trim(Datatable.value("Col1","Sheet1"))
    range2=Trim(Datatable.value("Col2","Sheet1"))
    Ex=after executing above 2 lines range1=10, range2=30
    which means you have a plan to run 10 th row to 30 row.

    For i=range1 to range2
    Datatable.getSheet("sheet1").setCurrnetRow(i)

    Code....


    Next


    Thanks!
    VasuK
    Thanks!
    VasuK

  9. #9
    Junior Member
    Join Date
    Feb 2007
    Location
    VA
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP 9.2 runtime row issue

    Hi Vasu,

    Thanks for your reply.
    i will try this out.

    Thanks!!
    Krishna
    -Krishna Desharaju

  10. #10
    Junior Member
    Join Date
    Feb 2007
    Location
    VA
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP 9.2 runtime row issue

    Hi All,

    I have a fix for this issue.
    In QTP9.2 this is an issue.HP also agreed on this.
    I figured out the solution.

    x=Environment.value("TestIteration")
    DataTable.setcurrentrow(x)

    this will fix the issue.

    Hope this helps!!
    Have a good day!!

    -Krishn
    -Krishna Desharaju

 

 

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 8.82%
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:47 PM.

Copyright BetaSoft Inc.