SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Aug 2003
    Location
    India
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Action Itration Value

    How to get action itration value to a variable during test run? I tried the following
    AIvalue = Dialog("Login").GetROProperty(Environment.Value("A ctionIteration"))
    Actually I want to get out of the itration if this variable sets to a particular value.
    But the itration number is not getting stored into that variable.
    'm New to QTP, somebody please help.

    [ 05-06-2004, 02:01 AM: Message edited by: dk5 ]

  2. #2
    Member
    Join Date
    Aug 2003
    Location
    Richmond VA
    Posts
    62
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Action Itration Value

    Hi dk5,

    Can you please give a more detailed description of what it is you're trying to do?

    Thanks,
    -Strudel

  3. #3
    Junior Member
    Join Date
    Aug 2003
    Location
    India
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Action Itration Value

    Dear Strudel,
    I have put the "Data table itrations " of an Action to run from row 1 to row 4. While running with the 3rd row, I need to get the itration/row number.
    For that I put a variable AIvalue and a method "Dialog("Login").GetROProperty(Environment.Value(" ActionIteration"))"

    Is this correct? but am not getting any value to the variable.

  4. #4
    Moderator
    Join Date
    Sep 2001
    Location
    Doncaster, UK
    Posts
    5,788
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Action Itration Value

    XXX = Environment.Value("ActionIteration")
    MsgBox XXX

    Mark.

  5. #5
    Member
    Join Date
    Aug 2003
    Location
    Richmond VA
    Posts
    62
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Action Itration Value

    I would try something like this,

    row = DataTable.GetSheet("Sheet name here").GetCurrentRow

    There should be a DataSheet created when you created an Action. Just make sure that you use the correct sheet name.

    Give that a shot. Let me know if it's not clear enough and I'll give you more detail.

    Good luck!!
    -Strudel

  6. #6
    Junior Member
    Join Date
    Aug 2003
    Location
    India
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Action Itration Value

    Dear Strudel,
    Thanks a lot...Its working.
    I have one more doubt.
    While learning with QTP's sample application Flight (hope u have seen it), came across a problem with one ActiveX object given for capturing "date of flight". First time I gave a wrong date. Flight Application will give a warning message upon focusing&selecting another control.
    After clicking that warning message's Ok button, focus will be returned to the "Date of flight" field. But it is focusing to the last position in that field ( field is formatted like mm/dd/yy, focus returns to a position just after yy|).
    In QTP, to input a correct date, I gave
    ..Window("Flight Reservation").ActiveX("MaskEdBox").Click 0,5 ... this will focus to the starting position |mm.
    1) Is there any method to focus to this field's starting position instead of giving "click x,y " co-ordinates?
    2)Also if I want to input another date, I have to select or delete the existing value. For that I gave (while recording)
    ...Window("Flight Reservation").ActiveX("MaskEdBox").Type micDel...
    Is there any way to make that field null?

    Please see the flight application also, your reply is highly appreciated.

    regards
    DK

  7. #7
    Junior Member
    Join Date
    Aug 2003
    Location
    India
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Action Itration Value

    Hi all,
    Somebody Please help me to solve the above problem..

    Rgds
    DK

 

 

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 11.54%
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 03:52 PM.

Copyright BetaSoft Inc.