SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 10 of 10
  1. #1
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    loading compiled module

    User Jan Bagley (jan_bagleybqa@yahoo.com) posted:

    Greetings!

    I've just recently moved from a Rational project to a
    Mercury project. I'm starting to write my functions
    for the AUT. They're located in a compiled module
    whose load command is in myinit.

    The module currently contains:
    public function f_SelectListGroup()
    public function f_MainWindowNavigation ()
    public function GetGridData()
    public function TabNavigation()
    public function f_ITBShutDown()
    public function f_ITBStartUp()

    When I launch WinRunner, f_MainWindowNavigation () is
    available to me immediately. But I can't use
    f_ITBStartUp() until I open the compiled module and
    execute a run from top command. I will lose
    f_ITBStartUp() again if I issue a stop command.

    Any ideas what I'm doing wrong?

    - Jan -

    __________________________________________________

  2. #2
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: loading compiled module

    User Richard Weber (rweber@houston.ds.adp.com) posted:

    ------_=_NextPart_001_01C0BD52.54987760
    Content-Type: text/plain;
    charset="ISO-8859-1"

    Assuming that the info below does not represent actual syntax... check your
    load statement parameters ( in init script ).

    load( "MyCompiledModule", 0, 1 ); # ( "...", 0, 1) should work for fine all
    user CMs


    Check syntax within the compiled module, sometimes a missing semi-colon will
    not generate an error during load.


  3. #3
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: loading compiled module

    User Thomas, Sajan (sajanthomas@spherion.com) posted:

    How about the other functions? My guess is that a syntax error after the
    second function is preventing the module form loading completely.

    Sajan


  4. #4
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: loading compiled module

    User Jan Bagley (jan_bagleybqa@yahoo.com) posted:

    My load statement is:
    load ("MyCompiledModule",0,1);

    What I'm struggling with is all the functions are in
    the same module. Some of the functions are available
    to me all the time. Others are only available when I
    manually load the module. When I issue a stop command
    I lose the second group.

    Why would some stay loaded and other not?
    Am I giving you enough info here?

    --- Richard Weber <rweber@houston.ds.adp.com> wrote:
    <http://rd.yahoo.com/M=162801.1342250...mail/S=1700007
    181:N/A=599088/*http://www.knowledgestorm.com/jump_w...c=Yahoo&n=eLer
    <http://us.adserver.yahoo.com/l?M=162...05/D=egroupmai


    __________________________________________________

  5. #5
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: loading compiled module

    User Shum, Garry (garry.shum@ROYALBANK.COM) posted:


    I'm not sure, but I remember doing this a few months ago for the reasons you
    gave. However, there are situations where win_activate() is needed, such as
    when you use obj_mouse_click() since the application object must be
    displayed in order for the mouse click to be successful. At least that's
    the behaviour from my subjective observations. So, at some point, I am
    forced to use win_activate() before any function needing coordinates for
    mouse clicking is used. Therefore, I use win_activate() in my startup
    function for this reason.

    ------------------

  6. #6
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: loading compiled module

    User Jan Bagley (jan_bagleybqa@yahoo.com) posted:

    The function in question will run if I manually load
    it using a run_from_top command in the compiled
    module. I will lose it again with a stop command.

    Am I missing the point here?

    --- "Thomas, Sajan" <sajanthomas@spherion.com> wrote:


    __________________________________________________

  7. #7
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: loading compiled module

    User Richard Weber (rweber@houston.ds.adp.com) posted:

    ------_=_NextPart_001_01C0BD56.724426C0
    Content-Type: text/plain;
    charset="ISO-8859-1"

    Are all the functions defined like:
    public function MyFunction()
    {
    }

    Are any defined like:
    function MyFunction()
    {
    }

    That may make a difference if they are not all public.

    There may also be a size limit on CMs ( I've heard as small as 80k), but I
    have never noticed myself (up to 120k).

    You could also make sure that you are editing the same script you are
    loading. If there are two scripts with the same name in the WR search path
    then the 1st one found gets loaded (if not using absolute paths). You might
    be loading an old copy...


  8. #8
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: loading compiled module

    User Jan Bagley (jan_bagleybqa@yahoo.com) posted:

    I found the problem. There are duplicate directories
    (I don't know why) containing the same files. I'm
    working on set but the startup is loading another. It
    didn't occur to me to look for that.

    Thanks for your help.

    --- Richard Weber <rweber@houston.ds.adp.com> wrote: http://rd.yahoo.com/M=162801.1342250...mail/S=1700007
    <http://rd.yahoo.com/M=162801.1342250...mail/S=1700007 http://www.knowledgestorm.com/jump_white.html?c=Yahoo http://us.adserver.yahoo.com/l?M=162...05/D=egroupmai
    <http://us.adserver.yahoo.com/l?M=162...05/D=egroupmai
    <http://rd.yahoo.com/M=162801.1342250...mail/S=1700007
    181:N/A=599089/*http://www.knowledgestorm.com/jump_w...c=Yahoo&n=eLer
    <http://us.adserver.yahoo.com/l?M=162...05/D=egroupmai
    === message truncated ===


    __________________________________________________

  9. #9
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: loading compiled module

    User Richard McCrae (mccraer@sympatico.ca) posted:

    If nothing else, you have an interesting problem. If things are set up correctly, you should not be getting this
    behaviour (as if you didn't know that....). Humour me - try putting together some trivial functions and placing them
    into a similar compiled module and check the behaviour of that.
    Other things you might look at -
    the return code of the load (reload) statement?
    are other items in your init script executing correctly?
    can you place the functions into a regular script (main test, not 'compiled' module) and get predictable behaviour?

    Regards

    Rick McCrae

    Jan Bagley wrote:

  10. #10
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: loading compiled module

    User Jan Bagley (jan_bagleybqa@yahoo.com) posted:

    I would gladly humor you any time. I need humor and
    enjoy it when I have some to share.
    I hope you got my last reply explaining the issue was
    duplicate directories. The situation has been
    corrected and, now that I'm scripting in the same
    files that are being loaded, things are working fine.
    A humbling day. I'm going home.

    --- Richard McCrae <mccraer@sympatico.ca> wrote:


    __________________________________________________

 

 

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 13.64%
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 01:59 PM.

Copyright BetaSoft Inc.