SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    May 2001
    Location
    New Delhi , India
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need to re-launch SilkTest if runnning a script which uses Win32 API calls!!!

    Hi,

    I am facing this weird problem that Im forced to re-launch SilkTest once a testcase containing a Win32 API call is executed i.e. the second time I try to run the same script with some changes incorporated in the script , they are not reflected and I get the same results which I got in the first execution of the script i.e. it does not run successfully.

    E.g. -
    Run I : Pass , I get correct results.
    Run II : Change the script [ SetTime -change the time values ] and then run it again. I get the results which I got in Run I [ i.e. the same time is set again and Im not able to set the new time ] and the change is not reflected in the Run II.

    Any ideas on this issue?

    Regards,
    Grover.

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

  2. #2
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Need to re-launch SilkTest if runnning a script which uses Win32 API calls!!!

    Are you having problems while developping scripts? Or is that an automatic process of changing the script after the first run?

    One thing I noticed is that when I was in debug mode, and I do some changes after a run , these changes will not be reflected in my following runs.

    I had to exit the debug mode. Also try to do an error checking or save, just in case. I am pretty paranoid about these things



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

  3. #3
    Junior Member
    Join Date
    May 2001
    Location
    New Delhi , India
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Need to re-launch SilkTest if runnning a script which uses Win32 API calls!!!

    GodKnows,

    The second time the script is run with say some statements added / removed , I still get the results which I got in the first run of the script. So , it means that the changes are not being reflected in second and hence forth runs of the script unless you quit SilkTest and re-launch it again.

    Regards,
    Grover.

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

  4. #4
    Senior Member
    Join Date
    Oct 1999
    Location
    Tyngsborough, MA
    Posts
    211
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Need to re-launch SilkTest if runnning a script which uses Win32 API calls!!!

    Silk will not always pick up your changes and recompile. After making a change I always go to the run menu and compile all.

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

  5. #5
    Super Member
    Join Date
    Jul 1999
    Location
    Rancho Santa Margarita, CA
    Posts
    1,439
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Need to re-launch SilkTest if runnning a script which uses Win32 API calls!!!

    Besides Brian's suggestion, you may also want to put a check mark in the checkbox "Save object files during compilation" in the Runtime Options dialog.



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

  6. #6
    Senior Member
    Join Date
    Sep 1999
    Location
    San Jose,CA,USA
    Posts
    340
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Need to re-launch SilkTest if runnning a script which uses Win32 API calls!!!

    Interesting use of Silk .. I love these types of useage!!


    If none of the previous suggestions work .. (and I think they probably will), you could try two things:


    (1) use operator notation on your calls. So that after you change the "string values" of the script commands you could have the script re-run the new values stored in the changed strings. I am fairly certain the operator @ notation is deffered till run time. (I have used it for functions that support Frame files for two different versions of an application)

    (2) "The last resort" launch a child process and have the Silk script terminate. (or have the child process "whack" Silk )

    The child process could re-launch the changed Silk Test via the command line. This would almost certainly FORCE a recompile of the test. If that still does not work the last thing you could do is rename the object file in the child process before the re-launch.

    Again 2 would be the last straw ..


    ------------------
    "Smoke me a kipper, I'll be back for breakfast!"
    Sincerely
    Richard Weth
    Sr. QA Engineer
    mailto:rick_weth@yahoo.com
    Smoke me a kipper, I'll be back for breakfast!
    Sincerely
    Richard Weth
    Sr. QA Engineer

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 12:47 AM.

Copyright BetaSoft Inc.