Adding Parameters for Flexibility: Running a Test With Arguments


Running tests with arguments is virtually the same as running a test without arguments. The only difference is that if your test inherits parent parameters from the top level of the JST, you need to supply these parameters in the Test arguments field of Run Test.

  1. Refresh the test database.
    Delete test.db. Copy sesame.db to test.db.

  2. From the JavaStar main menu, select Run test.

  3. For Test name, enter Acceptance.jst

  4. In the test arguments field, enter the name of the argument strings you want to pass.
    Specify five strings (values Name, Address 1, Address 2, Phone, Email, Other--in that order) in this field. Put strings in quotes and separate with a space.
    For example:
    Do not include line breaks in the parameter list.

    Note - The quotation markes around each argument string aren't really needed if the argument string contains no spaces or special characters. In this case, quotation marks are needed for the second and third strings because they contain spaces, but all other arguments could be typed without the quotation marks. Special characters include \n, \r, \t.

  5. Click Start.

  6. When the test finishes, quit the Record/Playback window.



Send feedback to JavaStar-feedback@suntest.com
Copyright © 1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303. All rights reserved.