SPONSORS:






User Tag List

Results 1 to 9 of 9
  1. #1
    Senior Member
    Join Date
    Sep 2001
    Location
    Hyderabad, India
    Posts
    478
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Passing different values in a multiuser testing.

    I am running a script such that the same operation is performed on other 3 machines also. For a login screen I want to pass different login name and password. I am doing this through multitestcase method.

    ------------------
    Manoj Jain
    (manojjain99@yahoo.com)
    Manoj Jain
    (manojjain99@yahoo.com)
    A highly advanced bug is indistinguishable from a feature.

  2. #2
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Passing different values in a multiuser testing.

    I do this by having no hard-coded "machine specific" values in the test script. All such values are pulled from identical ini files that live on the target machine. The script calls the ini file (for each machine) and gets its own variable values from that.

    So the call LoginPage.UserNameTextField.SetText(sUserID) will be populated uniquely for each machine.

    This same practice can be followed for any value that is unique to that machine: Path info, IP address, machine name, install directories, etc.

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

  3. #3
    Senior Member
    Join Date
    Sep 2001
    Location
    Hyderabad, India
    Posts
    478
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Passing different values in a multiuser testing.

    OK.

    I try this.
    Thank you.

    ------------------
    Manoj Jain
    (manojjain99@yahoo.com)
    Manoj Jain
    (manojjain99@yahoo.com)
    A highly advanced bug is indistinguishable from a feature.

  4. #4
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Passing different values in a multiuser testing.

    Let me know if you need any feedback. We could work it through email if you like.


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

  5. #5
    Senior Member
    Join Date
    Sep 2001
    Location
    Hyderabad, India
    Posts
    478
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Passing different values in a multiuser testing.

    Sure.


    ------------------
    Manoj Jain
    (manojjain99@yahoo.com)
    Manoj Jain
    (manojjain99@yahoo.com)
    A highly advanced bug is indistinguishable from a feature.

  6. #6
    Senior Member
    Join Date
    Jun 2000
    Location
    Chicago, IL USA
    Posts
    383
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Passing different values in a multiuser testing.

    I do it in a very similar way to DJGray -- I put UserID and password in a SilkTest "Compiler constant" on each machine. This only takes effect if separate tests are run with local copies of SilkTest on each machine, however. But then, when I run multiple agent tests, I generally want the test to specify the UserID for each machine.

    ------------------
    Rob Kapteyn

    [This message has been edited by RobKapteyn (edited 04-30-2002).]
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

  7. #7
    Senior Member
    Join Date
    Sep 2001
    Location
    Hyderabad, India
    Posts
    478
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Passing different values in a multiuser testing.

    So, using an ini file is good option if working with multiple agents for different values. But what is this Constant Compiler?

    ------------------
    Manoj Jain
    (manojjain99@yahoo.com)
    Manoj Jain
    (manojjain99@yahoo.com)
    A highly advanced bug is indistinguishable from a feature.

  8. #8
    Senior Member
    Join Date
    Jun 2000
    Location
    Chicago, IL USA
    Posts
    383
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Passing different values in a multiuser testing.

    Bring up "Runtime Options" and click on the "Compiler Constants" button. You can define and set "Compiler Constants" here. They can be used like read-only variables in your tests. These constants take effect only for the local machine -- meaning that you can run the same testware from a shared network locatation on different machines and they behave a little differently (each uses a different UserID to logon).

    Technically, compiler constants ARE saved in "ini" files. So there really isn't any difference -- except that they are a little easier to setup becasue of the SilkTest interface.

    ------------------
    Rob Kapteyn
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

  9. #9
    Senior Member
    Join Date
    Sep 2001
    Location
    Hyderabad, India
    Posts
    478
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Passing different values in a multiuser testing.

    OK.
    Thanq very much Rob.

    ------------------
    Manoj Jain
    (manojjain99@yahoo.com)
    Manoj Jain
    (manojjain99@yahoo.com)
    A highly advanced bug is indistinguishable from a feature.

 

 

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 04:07 AM.

Copyright BetaSoft Inc.