[Tsung] inject unique vales in HTTP parameters
Nicolas Niclausse
nicolas at niclux.org
Tue Apr 15 23:54:13 CEST 2008
philippe vanderstraeten a écrit :
> Hello,
>
> I not familliar with Erlang and I cannot found how to do the following
> thing.
> I want to send HTTP request with unique data using an Erlang function.
>
> I know how to put values in HTTP request using Erlang, but I dont know how
> to send UNIQUE values.
>
> For example I want to create object name
> OBJ1 to OBJ9999 and be sure to never send twice a name.
>
> I suppose there are some "static and thread safe" data usable in Erlang
> but I don't know how to code that.
Maybe you can use the function ts_user_server:get_unique_id. It builds
an pseudo unique Id using the erlang pid and beam id in tsung.
There is also ts_user_server:get_really_unique_id which adds a timestamp
--
Nicolas
More information about the Tsung-users
mailing list