我面临着这个问题(在debian 8上,使用了Tsun1.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>当我开始"tsung“时,我收到了一个错误:
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}}}有谁有过类似的行为吗?
提前鸣谢。
发布于 2015-07-04 07:45:02
您需要将会话封装在<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>https://stackoverflow.com/questions/31208011
复制相似问题