SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  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

    invoke_application function limitations..

    User (tahir_lone@yahoo.com.nospam) posted:

    Hi people,

    Does anyone know of any winrunner function that i can use to invoke
    an application within a compiled module?

    I have tried to use invoke_application function which is only for use
    in test scripts.

    Thanks in advance.

    Tahir Lone



  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: invoke_application function limitations..

    User (alan.church@bt.com.nospam) posted:

    Hi Tahir,

    I presume you mean a WR "compiled" module. If so, the invoke_application
    function WILL work as a WR compiled module is only a normal TSL script.

    I know it will work because I use the function in one of my compiled
    modules.

    Alan Church
    BTexact Technologies
    UK


  3. #3
    Senior Member
    Join Date
    Oct 2001
    Location
    Birmingham, AL, USA
    Posts
    127
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: invoke_application function limitations..

    User (michael.roux@protective.com.nospam) posted:


    Hello Tahir Lone,
    This is how I would Handle it,
    If you need to invoke and application in a complied module, maybe you
    should not use a complied module(function), just save it as a test,
    without the function header and pass the variables into it using extern
    instead of arguments in the function header. Use call_close to call the
    test instead, I would say most of the time you are trying to open an
    application in a script it is not really a function but a separate test.
    Hope This Helps,
    Michael Roux

    tahir_lone@yahoo.com on 10/11/2001 08:46:15 AM

    Please respond to winrunner@yahoogroups.com

    To: winrunner@yahoogroups.com
    cc:

    Subject: [winrunner] invoke_application function limitations..


    Hi people,

    Does anyone know of any winrunner function that i can use to invoke
    an application within a compiled module?

    I have tried to use invoke_application function which is only for use
    in test scripts.

    Thanks in advance.

    Tahir Lone



  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: invoke_application function limitations..

    User (alan.church@bt.com.nospam) posted:

    Hi Michael,

    I would tend to disagree with you. The most logical place for using the
    invoke_application() function is in a compiled module as this is one of the
    most common things that you do. In my case invoking the application and
    logging in is an essential part of EVERY test.

    Alan Church
    BTexact Technologies
    UK


  5. #5
    Senior Member
    Join Date
    Oct 2001
    Location
    Birmingham, AL, USA
    Posts
    127
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: invoke_application function limitations..

    User (michael.roux@protective.com.nospam) posted:


    Hey Alan,
    I guess I would have to agree with you if you have to write a log in
    script, (I was thinking inside the box), On all the apps I test there is
    not a log in required, so I just set up variables in the beginning of the
    script that are called when I need to invoke the AUT. I can see that
    if you have to go through a log in process, or maybe load a reset case when
    the app is opened a function would be beneficial, thanks for
    opening up my thinking on the topic.
    Michael Roux

    alan.church@bt.com on 10/11/2001 10:18:24 AM

    Please respond to winrunner@yahoogroups.com

    To: winrunner@yahoogroups.com
    cc:

    Subject: RE: [winrunner] invoke_application function limitations..


    Hi Michael,

    I would tend to disagree with you. The most logical place for using the
    invoke_application() function is in a compiled module as this is one of the
    most common things that you do. In my case invoking the application and
    logging in is an essential part of EVERY test.

    Alan Church
    BTexact Technologies
    UK


  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: invoke_application function limitations..

    User (tahir_lone@yahoo.com.nospam) posted:

    Hi Alan,

    When i tried to use the invoke_application function in a WR compiled
    module, it threw up an error message, with the message, "Error:
    Statement is not legal in context of compiled module"

    also the TSL help documentation states on the first line:


    "invokes a windows application from within a test script"

    Hope that clears up the confusion, regarding the use of this function
    in WR compiled module.

    So if anyone any experience of overcoming this problem, then please
    let me know. I really want to avoid pasting the function in any test
    scripts that may call it.

    Cheers,

    Tahir Lone

    P.s - Alan, what version of WR are you using, i am using 7.01.. maybe
    there is a diff in the scope of use of the invoke_application
    function in the versions???


    --- In winrunner@y..., alan.church@b... wrote:
    the
    one of the
    and
    you
    extern
    the
    test.
    use
    message
    program
    address in http://docs.yahoo.com/info/terms/
    message
    program
    address in http://docs.yahoo.com/info/terms/



  7. #7
    Senior Member
    Join Date
    Oct 2001
    Location
    Birmingham, AL, USA
    Posts
    127
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: invoke_application function limitations..

    User (michael.roux@protective.com.nospam) posted:


    Tahir,
    Have you tried writing a batch file and then calling it using the
    dos_system function
    Just pointing out alternative methods of openig apps.
    Michael Roux

    tahir_lone@yahoo.com on 10/11/2001 10:38:46 AM

    Please respond to winrunner@yahoogroups.com

    To: winrunner@yahoogroups.com
    cc:

    Subject: [winrunner] Re: invoke_application function limitations..


    Hi Alan,

    When i tried to use the invoke_application function in a WR compiled
    module, it threw up an error message, with the message, "Error:
    Statement is not legal in context of compiled module"

    also the TSL help documentation states on the first line:


    "invokes a windows application from within a test script"

    Hope that clears up the confusion, regarding the use of this function
    in WR compiled module.

    So if anyone any experience of overcoming this problem, then please
    let me know. I really want to avoid pasting the function in any test
    scripts that may call it.

    Cheers,

    Tahir Lone

    P.s - Alan, what version of WR are you using, i am using 7.01.. maybe
    there is a diff in the scope of use of the invoke_application
    function in the versions???


    --- In winrunner@y..., alan.church@b... wrote:
    the
    one of the
    and
    you
    extern
    the
    test.
    use
    message
    program
    address in http://docs.yahoo.com/info/terms/
    message
    program
    address in http://docs.yahoo.com/info/terms/

  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: invoke_application function limitations..

    User (tahir_lone@yahoo.com.nospam) posted:

    I think i'll try the first suggestion you made, about keeping the
    function in a test script and calling it...

    Thanks everyone

    Tahir


    --- In winrunner@y..., michael.roux@p... wrote:
    function
    maybe
    using
    application
    test,
    call
    an
    invoke
    message
    program
    address in http://docs.yahoo.com/info/terms/



  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: invoke_application function limitations..

    User Komanovsky, Oleg (okomanovsky@evolve.com.nospam) posted:

    ------_=_NextPart_001_01C1527C.84468140
    Content-Type: text/plain

    The reason you are not able to use the statement "invoke_application" in
    compiled mode, is that you have to place the statement inside the function:

    function InvokeApplication ()
    {
    invoke_application ();
    }


  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: invoke_application function limitations..

    User (alan.church@bt.com.nospam) posted:

    Hi Tahir,

    I have been investigating your problem and you are quite correct that if you
    use invoke_application() in a compiled module as a single command like the
    following :

    do something
    invoke_application(....);
    do some more

    you will get the error message you are talking about.

    However, if you use it within a function in a compiled module like the
    following :

    public function MyFunction()
    {
    do something
    invoke_application(...);
    do some more
    }

    it will work sucessfully.

    Personally I can see no reason why anyone would want to use the first method
    in a compiled module, as the only useful use of compiled modules is a
    library of user-defined functions that can be loaded when WR starts and
    hence be available for all your tests.

    Alan Church
    BTexact Technologies
    UK



 

 
Page 1 of 2 12 LastLast

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 12.50%
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 09:19 PM.

Copyright BetaSoft Inc.