SPONSORS:






User Tag List

Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Sep 2001
    Location
    Shrewsbury, MA, USA
    Posts
    19
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Passing Arguments

    Does anybody know a way to pass an argument which will ask the user running the test to enter the value the user would like to us for the argument? It would be nice if it would proc a window that would say "Enter the value for Argument 1" and maybe even give choices. Any help is appreciated...Thanks.

    I know that you can put the value in on the Run TIme options window or when you are runnig a specific testcase.

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

  2. #2
    Member
    Join Date
    Jul 2001
    Location
    NY, USA
    Posts
    67
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Passing Arguments

    I dont know whether there is a way to accept input from the user while the script is running. I would like to know along with if if there is a way.

    But there are means of passing arguements. You can write data driven testcases with your arguments in an external text file or from a database or even a excel file.

    You can also create a suite file wherein you can pass args along with the test script name. Silk help has information on how to create a test suite and how to pass arguments.

    Trust this helps!!

    Srikanth

    ------------------
    Habit 1 - "Be Proactive"
    "The 7 Habits of Highly Effective People" by Stephen R. Covey

  3. #3
    Senior Member
    Join Date
    Nov 2000
    Location
    Bloomington, IL
    Posts
    142
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Passing Arguments

    If you search these links there is a code attachment that will allow you to create a html page with SilkTest, display it and get information back from it. If you cannot locate it, let me know and I'll upload a copy.

    I have also been using Access to start SilkTest. I put fields on the Access form that need to be filled in and it creates the command line to launch the SilkTest script and pass the arguements required. If interested I could upload an example of that also.

    MikeF

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

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

    Re: Passing Arguments

    use an external program like vb or a web based form. After the form or vb dialog closes you grab the information submitted by the user.

    Using an web form is far easier. Make those annoying add popup kind of stuff would be nice.



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

  5. #5
    Junior Member
    Join Date
    Sep 2001
    Location
    Shrewsbury, MA, USA
    Posts
    19
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Passing Arguments

    i like the idea of a data-driven testcase where i could have my arguments in a text file that would be processed.

    Could you send some examples?

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

  6. #6
    Member
    Join Date
    Jul 2001
    Location
    NY, USA
    Posts
    67
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Passing Arguments

    Hi there,

    To begin with, learn more about the following functions. You will find many examples in SilkTest Help itself!!
    1) Fileopen()
    2) While
    3) FileReadLine()
    3a) FileWriteLine()
    4) do..except
    5) Verify()
    6) logerror


    I use all the above functions when I code for data driven tests. If you still have problems, post a message again!!

    What I am not sure (and never tried till now) is to popup a window to the user with a message. Inputs please anybody??


    Good Luck.

    Srikanth

    ------------------
    Habit 1 - "Be Proactive"
    "The 7 Habits of Highly Effective People" by Stephen R. Covey

    [This message has been edited by Srikanth (edited 09-27-2001).]

  7. #7
    Super Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    1,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Passing Arguments

    If you don't have access to or aren't familiar with VB you can try using Agent.DisplayMessage () and use that messagebox to prompt the user to write something to a file for the script to read.

    Using the VB option is smoother, but not everyone has access to it.

    ------------------
    James Soderborg
    http://www.ameliortech.com
    jamesso@ameliortech.com

  8. #8
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Passing Arguments

    I've done what GodKnows recommends, built a small VB form, which accepts input, then writes it to the disk for Silk to read.

    Hope this helps.


    ------------------
    John W Green
    jwgreen@automationexpertise.com
    http://www.automationexpertise.com

 

 

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 09:20 PM.

Copyright BetaSoft Inc.