Erlang 我们如何定制tsung脚本以在Openfire服务器中发送消息?

Erlang 我们如何定制tsung脚本以在Openfire服务器中发送消息?,erlang,openfire,tsung,Erlang,Openfire,Tsung,Tsung片段: <transaction name="sendmessage"> <request> <jabber type="chat" ack="no_ack" size="56" destination="online" /> </request> </transaction> 它生成以下请求: <message id='4777' to='testserver270@domain.com' type='chat'

Tsung片段:

<transaction name="sendmessage">
<request> <jabber type="chat" ack="no_ack" size="56" destination="online" /> </request>
</transaction>

它生成以下请求:

<message id='4777' to='testserver270@domain.com' type='chat'>
    <body>qxvmvtglimieyhemzlxcqxvmvtglimieyhemzlxcvtglimieyhemzlxc</body>
</message>
<message id='395' to='testserver4@dmain.com' type='chat'>
    <msgid>a8aa6f8f-f162-4f1f-b9a0-834180c26fe0</msgid>      
    <sessionkey></sessionkey>      
    <creationtime>1432204640009</creationtime>      
    <senttime>1432204640009</senttime>
    <msgtype>9001</msgtype>      
    <body>02A8E47665F91C415B2E732E105E1FA68E01AF2EA9D03AE8374343A68683</body>      
    <thread>yyMz65</thread>
</message>

qxvmvtglimieyhemzlxcqxvmvtglimieyhemzlxcvtglimieyhemzlxc
如何定制tsung脚本以满足以下要求

<message id='4777' to='testserver270@domain.com' type='chat'>
    <body>qxvmvtglimieyhemzlxcqxvmvtglimieyhemzlxcvtglimieyhemzlxc</body>
</message>
<message id='395' to='testserver4@dmain.com' type='chat'>
    <msgid>a8aa6f8f-f162-4f1f-b9a0-834180c26fe0</msgid>      
    <sessionkey></sessionkey>      
    <creationtime>1432204640009</creationtime>      
    <senttime>1432204640009</senttime>
    <msgtype>9001</msgtype>      
    <body>02A8E47665F91C415B2E732E105E1FA68E01AF2EA9D03AE8374343A68683</body>      
    <thread>yyMz65</thread>
</message>

a8aa6f8f-f162-4f1f-b9a0-834180c26fe0
1432204640009
1432204640009
9001
02A8E47665F91C415B2E732E105E1FA68E01AF2EA9D03AE8374343A68683
yyMz65
我尝试在jabber标记中使用数据,并通过了我的自定义标记init,得到了下面的请求

<message id='395' to='testserver4@chat.test.cryptall.com' type='chat'>
    <body>
        <msgid>a8aa6f8f-f162-4f1f-b9a0-834180c26fe0</msgid>      
        <sessionkey></sessionkey>      
        <creationtime>1432204640009</creationtime>      
        <senttime>1432204640009</senttime>
        <msgtype>9001</msgtype>      
        <body>4A8E47665F91C415B2E732E105E1FA68E01AF2EA9D03AE8374343A68683</body>      
        <thread>yyMz65</thread>
    </body>
</message>

a8aa6f8f-f162-4f1f-b9a0-834180c26fe0
1432204640009
1432204640009
9001
4A8E47665F91C415B2E732E105E1FA68E01AF2EA9D03AE8374343A68683
yyMz65