SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Dec 2004
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    how to pass test parameters at command line

    Hi All,
    I am running tests from a batch file which opens winrunner and runs a test. My test requires test perameters.

    Can some one please let me know which command line option should i use to pass parameters to a test.

    Thanks all for your time and help.

    lakani.

  2. #2
    SQA Knight
    Join Date
    Jun 2002
    Location
    Cupertino, CA, USA
    Posts
    2,164
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: how to pass test parameters at command line

    You can't pass test parameters from the command line, but you also don't need to. Just run your main batch test from the command line, and let it call sub tests with parameters.

  3. #3
    Junior Member
    Join Date
    Feb 2005
    Location
    hydrabad
    Posts
    25
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: how to pass test parameters at command line

    if u go for WR-Batch Test
    use call function
    call"xyz"(arg1,arg2,...argn);
    note:
    step 1: select file-->Test properties-->paramaters
    step 2: click on Add button to add arg1,arg2,arg3,....argn
    step 3: Run scripts eighter verify/debug mode
    Sundeep Kumar

  4. #4
    Senior Member
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    116
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: how to pass test parameters at command line

    Hi,
    I got the same problem while starting test with silktest. The solution was to give the parameter in the clip board. You can use than the cso_lib:
    http://www.wilsonmar.com/docs/wr70/csolib.zip

    that contain set_clipbrd_text - This function will put the specified string on the system clipboard and
    get_clipbrd_text - This function will get the current text from the system clipboard.

    Another solution can be environment varibles from OS you set them before executing the batch file and use setvar and extern to define variables in a function where you need them.

    Regards
    Carsten
    cbueche@cbueche.de
    Catch the train on rail of fasten, proven and easy solutions.

    I have succesfully arranged a workflow Independent Framework for QTP like the EMOS Framework for WR

 

 

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 10.00%
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 09:58 AM.

Copyright BetaSoft Inc.