SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jul 2002
    Location
    Chennai,TN,India
    Posts
    36
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Running Scripts in Command Line

    Objective:

    To Run the Scripts from Command Line and open the results in an internet explorer with SilkTest Minimised.

    Work Done:

    I Called the SilkTest Script from Command Line, which opens the SilkTest and runs the Script and at the end of the Script it calls the explorer with the result file path as URL.But the SilkTest is maximised at the time of Running.

    Script : commandline.t


    [-] testcase Command () appstate none
    [ ]
    [ ] LIST OF STRING lsArgs
    [ ]
    [ ] lsArgs = GetArgs()
    [ ]
    [-] if(lsArgs[1]=="I")
    [ ] SYS_Execute ("start iexplore.exe http://localhost/ResultsViewer")


    Command Line Script:

    partner -m local -resexport -r commandline.t I

    Requirment:
    How to run the Script Keeping SilkTest Minimised?

    ------------------
    Babu NM

  2. #2
    Senior Member
    Join Date
    Apr 2001
    Location
    San Diego,CA,USA
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running Scripts in Command Line

    set the option of runnning minimized in
    Options->Runtime

    there is this option minimize while running check that chekcbox



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

  3. #3
    Member
    Join Date
    Jul 2002
    Location
    Chennai,TN,India
    Posts
    36
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running Scripts in Command Line

    Hi,

    The Minimise in Runtime Option helps to minimise while running the script after opening the SilkTest in maximised form and also it creates a new SilkTest Instance.


    But for me while invoking the Script from CLI itself, the SilkTest need to be minimised or hidden and it should run from the same instance to avoid consuming unnecessary memory.

    Thanks

    ------------------
    Babu NM

  4. #4
    Senior Member
    Join Date
    Jun 2000
    Location
    Sunyyvale CA USA
    Posts
    422
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running Scripts in Command Line

    and also always use SetActive/SetFocus methods for the windows u wanna work with.

    ------------------
    Sree
    Sree

  5. #5
    Senior Member
    Join Date
    Apr 2001
    Location
    San Diego,CA,USA
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running Scripts in Command Line

    I didn't quite understand what are you trying to achieve here, can you please explian the specifics of as to what you are trying to do?

    when you invoke silk from command line it will invoke only one instance of silk, if you have previous silk running you should close it first.

    How does it matter to you if silk is maximized or minimized before even the script starts running? because when it starts running silk will get minimized. and what ever dependancy that you have in your script which makes it mandatory for you to minimize silk should come into play only after the test has started executing. So where is the problem?

    Or am I mising someting?

    what kind of application is it anyway?

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

  6. #6
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running Scripts in Command Line

    use the -q switch to close SilkTest once the test is complete that way the next time it starts up, there will only be one instance

    ------------------
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

 

 

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 02:07 PM.

Copyright BetaSoft Inc.