Forum Discussion

vgandhi's avatar
16 years ago

Supplying Username at runtime

I have a requirement wherein I need to supply username at runtime. For eg, If I run  a loadtest with 100 users, then first user should be submitted with username user1 , second with username user2 and so on. Is there a way to achieve this?

1 Reply

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    yes.. easiest is if you use the ThreadIndex context variable in a property expansion.. ie in your request enter

    username${ThreadIndex}

    the ThreadIndex will be replaced with the corresponding id.

    regards!

    /Ole
    eviware.com