[Tsung] inject unique vales in HTTP parameters
philippe vanderstraeten
phvander at gmail.com
Wed Apr 16 10:40:51 CEST 2008
Nicolas, thanks for your answer,
I see the unique id provided by tsung, but it's not the solution.
So I have an other question: a Pid is passed to each function substitution
parameter. Does is Pid is unique to each active user and also unique
during the whole tsung session ?
Thanks
On Tue, Apr 15, 2008 at 11:54 PM, Nicolas Niclausse <nicolas at niclux.org>
wrote:
> 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
> _______________________________________________
> Tsung-users mailing list
> Tsung-users at lists.process-one.net
> https://lists.process-one.net/mailman/listinfo/tsung-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.process-one.net/pipermail/tsung-users/attachments/20080416/3e8b279f/attachment.html
More information about the Tsung-users
mailing list