聪。致命的配置错误

时间:2015-07-03 13:28:44

标签: xml tsung tsung-recorder

我面对这个问题(在debian 8上,使用tsung 1.5.1。)。

XML配置是:

<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/opt/local/share/tsung/tsung-1.0.dtd">
<tsung loglevel="warning">
<clients>
<client host="localhost" maxusers="400"/>
</clients>
<servers>
<server host="zzz.test.com" port="8180" type="tcp"/>
</servers>
<load>
<arrivalphase phase="1" duration="1" unit="minute">
<users arrivalrate="5" unit="second"/>
</arrivalphase>
</load>
<session name='rec20150703-1430' probability='100'  type='ts_http'>
***here is the recorded through the proxy recorder***
</session>

当我开始&#34; tsung start&#34;我收到了错误消息:

2665- fatal: unexpected_end

Config Error, aborting ! {fatal,

{unexpected_end,

{file,"/root/.tsung/tsung.xml"},

{line,119}, ***my xml consists of the 118 lines***

{col,1}}}

任何人都面临类似的行为?

提前完成。

1 个答案:

答案 0 :(得分:1)

您需要将会话封装在<sessions/>代码中,并在结尾处关闭已打开的<tsung>代码,如下所示:

<servers>
  <server host="zzz.test.com" port="8180" type="tcp"/>
</servers>
<load>
  <arrivalphase phase="1" duration="1" unit="minute">
    <users arrivalrate="5" unit="second"/>
  </arrivalphase>
</load>
<sessions>
  <session name='rec20150703-1430' probability='100'  type='ts_http'>
     ***here is the recorded through the proxy recorder***
  </session>
</sessions>
</tsung>