SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Guest

    Run a single test case in a script using SilkTest commandline...

    I know that we can run a script/suite/plan file from Silk Test commandline.

    When I ran a script of 20 testcases using the commandline, 4 of them failed. Now, I want to run these 4 testcases. Is there a way to run these 4 testcases only without modifying my script OR creating a new script & using Silk Test commandline?

    Thanks in advance for your help.

  2. #2
    Senior Member
    Join Date
    Mar 2003
    Location
    Petaluma, CA, US
    Posts
    126
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Run a single test case in a script using SilkTest commandline...

    Did you find an answer to this problem? I am trying to the exact same thing
    thanks
    Joe

  3. #3
    Member
    Join Date
    Dec 1999
    Location
    Rochester, NY, USA
    Posts
    52
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Run a single test case in a script using SilkTest commandline...

    Hi

    I use a window declaration to handle situations like this. Of course, you will need to modify this code for your purposes. I present this as a a new script file which will interfere the least with your current script.

    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">[ ] use &quot;yourscript.t&quot;
    [ ]
    [-] window AnyWin DoCmdLineArguments
    [ ]
    [ ] BOOLEAN bInit = Init()
    [ ]
    [-] BOOLEAN Init()
    [ ] LIST OF STRING lsScriptArguments = GetArgs()
    [ ]
    [ ] Printf(&quot;%s &quot;,&quot;Unhandled arguments:&quot
    [-] while (ListCount(lsScriptArguments) &gt; 0)
    [-] select
    [-] case MatchStr(&quot;/RUN&quot;,lsScriptArguments[1])
    [-] do
    [ ] @(&quot;{lsScriptArguments[2]}&quot()
    [-] except
    [ ] ExceptLog()
    [ ] ListDelete(lsScriptArguments,2)
    [-] default
    [ ] Printf(&quot;%s &quot;,lsScriptArguments[1])
    [ ] ListDelete(lsScriptArguments,1)
    [ ] exit
    [ ] return TRUE //Never gets here
    [ ] </pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">Hope this helps
    Andy Bachman

 

 

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:29 PM.

Copyright BetaSoft Inc.