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 2004
    Posts
    43
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Passing parameters to a Recovery Manager function.

    Hi Guys,
    I have created a function via the recovery manager to handle what will happen should I use the set_window command and the application window is not there, thus returning an error code.
    But I also want to be able to write out to the results which window did not appear.
    In the test script I have:

    set_window(<window var>);

    If this window is not found I close the application and continue with the next test.

    I want to know how I can use the <window var> value in the function to say which window did not appear.
    Any ideas anyone? I had assumed this would be a simple process..

    Thanks..

  2. #2
    Member
    Join Date
    Mar 2004
    Posts
    43
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Passing parameters to a Recovery Manager function.

    Actually the command is:

    set_window(windowname)

    and I want to know how I can use the window name value.

    Thanks..

  3. #3
    Member
    Join Date
    Mar 2004
    Location
    Reston, VA
    Posts
    94
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Passing parameters to a Recovery Manager function.

    Not really understand your question. But you can define a variable (win_name="windowname" [img]images/icons/wink.gif[/img] and use it in set_window (win_name,time) and also use it in other places if you like.

  4. #4
    Member
    Join Date
    Mar 2004
    Posts
    43
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Passing parameters to a Recovery Manager function.

    This is part of the code I have.

    In the script:

    sl_window = "Customer Application";
    set_window(sl_window);

    The function that the recovery manager calls if the set_window(sl_window) command returns an E_NOT_FOUND is:

    public function error_code_handle(in rc)
    {
    switch (rc)
    {
    case "-10002":
    {
    tl_step("Object Not Found", FAIL, sl_window & " not found");
    texit(1);
    }
    }
    }

    This code works fine, except that the value of sl_window is not written out.

    Any ideas?
    Thanks..

  5. #5
    Member
    Join Date
    Mar 2004
    Posts
    43
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Passing parameters to a Recovery Manager function.

    It's cool, I found a solution.

    If you declare a public variable in a startup script, it is available to the recovery manager.

    Thanks..

 

 

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.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 01:37 PM.

Copyright BetaSoft Inc.