[Tsung] Dynamic variables, Vcards, TLS, and service discovery
Megan Chinburg
megan.chinburg at jivesoftware.com
Fri Dec 15 00:22:39 CET 2006
Thank you Michael,
I have a clarifying question about the dynamic substitution:
I was able to request another users Vcard like this:
<request><jabber type="raw" ack="no_ack"
data="<iq
to='user1 at servername'
type='get'
id='v3'>
<vCard xmlns='vcard-temp'/>
</iq>"></jabber></request>
However, I have not been able to get the dynamic sub to work, perhaps I¹m
missing something?
<request subst="true"><jabber type="raw" ack="no_ack"
data="<iq
to='ts_user_server:get_unique_id at servername'
type='get'
id='v3'>
<vCard xmlns='vcard-temp'/>
</iq>"></jabber></request>
I have only been working with Tsung for a week and I am not at all familiar
with Erlang. In other words, the simpler the answer, the better :)
Thank you
--Megan
On 12/13/06 12:26 AM, "Mickaël Rémond" <mickael.remond at process-one.net>
wrote:
> Hello,
>
> Le 13 déc. 06 à 03:32, Megan Chinburg a écrit :
>
>> Hello,
>>
>> I am running some load tests now against an XMPP server and I've run into a
>> few things that I cannot figure out how to test. I'll list all four of them
>> and if anybody can answer one, two, three or all, I would much appreciate
>> it. :)
>>
>> 1) V-Card retrieval: I assume this will be a raw xml request using the XMPP
>> extension for requesting a V-Card. However if someone has had experience
>> with this, perhaps they could shed some more light on the process.
>
> The best approach would probably be to write a Vcard extension to the XMPP
> benchmark part.
> We are for example approaching completion of a MUC test module and it is much
> easier than using XMPP.
> Regarding your issue, you should first test your scenario with debug on on the
> server and Tsung itself.
> It can make sure that your scenario is doing what you expect.
> Then, turn debug off and start benchmarking.
>
>> 2) My next question has to do with the XML in question 1:
>> Is there any way to do a dynamic variable for the username in the "to"
>> definition? Obviously if all the users retrieve the same vcard, I'm only
>> testing the cache and not the actual retrieval. Or if someone has a better
>> way to request a vcard in a way that exercises the server, I would love to
>> know.
>
> I would do that with two possibles approaches:
> - If extending the Jabber test module of Tsung, I would implement a
> destination attribute to choose the VCard (offline or online) among the list
> of connected users or disconnected users.
> - If using raw packets, I would use dynamic substitution variables to draw a
> random user with the wanted rules.
> See:
> http://www.process-one.net/en/projects/tsung/docs/user_manual.html#htoc38
> Look for the ts_user_server API.
>
>> 3) Is there a way to build a request for service discovery?
>
> For now it is either raw packet or custom addition to the Jabber support.
>
>> 4) Is there a way to request a TLS rather than plain socket connection?
>
> It is not supported for now.
>
>> Thank you in advance for any help on these issues.
>
> I hope this helps,
>
> Cheers,
>
>
>
> --
> Mickaël Rémond
> http://www.process-one.net/
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.process-one.net/pipermail/tsung-users/attachments/20061215/53bdce23/attachment.html
More information about the Tsung-users
mailing list