Testing tsung记录器在“之后仍在运行”;“tsung记录器停止”;

Testing tsung记录器在“之后仍在运行”;“tsung记录器停止”;,testing,automated-tests,benchmarking,tsung,Testing,Automated Tests,Benchmarking,Tsung,我在mac上设置了Tsung配置,并试图在我正在开发的网站上记录测试 我跑:“tsung recorder start” 并在firefox localhost中设置tsung的代理:8090。 然后我浏览了一下正在运行的网站。 我检查了文件: /tmp/tsung_记录器.pid 其中包含正确的pid 一切都很好,直到我试图用“tsung recorder stop”停止tsung recorder $tsung记录器停止 $“tsung recorder未在我的mac上运行” [好的] 这里

我在mac上设置了Tsung配置,并试图在我正在开发的网站上记录测试

我跑:“tsung recorder start” 并在firefox localhost中设置tsung的代理:8090。 然后我浏览了一下正在运行的网站。 我检查了文件:

/tmp/tsung_记录器.pid

其中包含正确的pid

一切都很好,直到我试图用“tsung recorder stop”停止tsung recorder

$tsung记录器停止

$“tsung recorder未在我的mac上运行”

[好的]

这里的问题是记录器仍在后台运行,并且生成的xml没有完成。 我在录制期间所做的所有http请求都记录在xml文件中,因此我知道在录制期间一切正常


我想知道我如何才能得到一个正确的Tsung测试文件与此问题。 我必须自己完成剩下的标签吗

当然,解决这个不间断过程的问题会更好。 但我不知道为什么会这样

Tsung版本1.3.1 erlang:otp_src_R13B02-1

请原谅我的英语不好,可能一切都不完美。我只是希望它是好的和清楚的足以被理解



我想知道如何获得正确的Tsung测试文件。我必须自己完成剩下的标签吗

是,您需要将以下内容添加到录制的会话文件中:

<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/usr/share/tsung/tsung-1.0.dtd">
<tsung loglevel="notice" version="1.0">

<load duration="20" unit="minute">
<arrivalphase phase="1" duration="8" unit="minute">
<users interarrival="2" unit="second"></users>
</arrivalphase>
</load>

<options>
<option type="ts_http" name="user_agent">
<user_agent probability="80">Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8)  Gecko/20050513 Galeon/1.3.21</user_agent>
<user_agent probability="20">Mozilla/5.0 (Windows; U; Windows NT 5.2; fr-FR; rv:1.7.8) Gecko/20050511 Firefox/1.0.4</user_agent>
</option>
</options>

<sessions>
<session type="ts_http" name="rec20120410-17:49:340" probability="100">

Mozilla/5.0(X11;U;Linux i686;en-US;rv:1.7.8)Gecko/20050513 Galeon/1.3.21
Mozilla/5.0(Windows;U;Windows NT 5.2;fr;rv:1.7.8)Gecko/20050511 Firefox/1.0.4
结束于

</sessions>

如果您有多个会话,则组合概率需要为==100