我在非gui模式下使用jmeter脚本运行负载测试.
我使用以下命令以非gui模式运行JMeter,结果存储在Test.jtl文件中
sh jmeter.sh -n -t ThreadGroup.jmx -l Test.jtl
Run Code Online (Sandbox Code Playgroud)
写入Test.jtl的样本数据如下所示,不会打印响应数据.有没有办法打印响应数据,也可以通过改变jmeter脚本或以上命令?
任何帮助,将不胜感激.
1453272193899,231,HTTP Request-staging-qqq-customer1,200,OK,Thread Group two 1-6,text,true,466,231
1453272193927,227,HTTP Request-staging-TT2-customer1,503,Service Unavailable,Thread Group two 1-1,text,false,751,227
1453272193963,222,HTTP Request-staging-TT2-customer1,503,Service Unavailable,Thread Group two 1-2,text,false,604,222
1453272194026,238,HTTP Request-staging-TT1-customer1,200,OK,Thread Group two 1-3,text,true,448,238
1453272194131,233,HTTP Request-staging-qqq-customer2,200,OK,Thread Group two 1-6,text,true,466,233
Run Code Online (Sandbox Code Playgroud)
谢谢
这是我的haproxy.cfg文件
global
daemon
maxconn 256
defaults
mode tcp
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
frontend ft_ssltests
mode tcp
bind *:443 ssl crt /etc/haproxy/sslkeys/host.crt ca-file /etc/haproxy/sslkeys/host.pem
default_backend webmail
backend webmail
balance roundrobin
server server1 10.198.2.76:50000 maxconn 32 check
server server2 10.198.2.76:60000 maxconn 32 check
Run Code Online (Sandbox Code Playgroud)
重新启动上面的配置文件后,我收到错误,如下所示
service haproxy restart
[ALERT] 023/230240 (4375) : parsing [/etc/haproxy/haproxy.cfg:14] : 'bind *:443' unknown keyword 'ssl'. Registered keywords :
[ TCP] defer-accept
[ TCP] interface <arg>
[ TCP] mss <arg>
[ TCP] transparent
[ …Run Code Online (Sandbox Code Playgroud) 我有一个XSLT,它将从SOAP Response xml转换为Java对象.
在soap响应中,有一个节点叫做urn:Statues逗号(,)分隔的字符串.
我想拆分urn:Statuesnode 的值并替换一些值,然后再将它们连接成一个用逗号(,)分隔的字符串.
肥皂反应:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:urn="urn:HPD_Incident_Query_WS">
<soapenv:Header/>
<soapenv:Body>
<urn:Incident_Query_ServiceResponse>
<urn:ErrorCode>0</urn:ErrorCode>
<urn:Incidents_Number>INC80167842,INC77752907,INC20954581,INC20954533</urn:Incidents_Number>
<urn:Statuses>CLOSED,CANCELLED,En Curso,Cerrado</urn:Statuses>
</urn:Incident_Query_ServiceResponse>
</soapenv:Body>
</soapenv:Envelope>
Run Code Online (Sandbox Code Playgroud)
我的XSLT:
<?xml version='1.0' encoding='UTF-8'?>
<xsl:stylesheet version='2.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:urn="urn:HPD_Incident_Query_WS">
<xsl:output method='xml' indent='yes' />
<xsl:template match="urn:Incident_Query_ServiceResponse" name="split">
<xsl:for-each select="tokenize(./urn:Statuses,',')">
<xsl:if test="(normalize-space(.) eq 'Cerrado')">
<xsl:value-of select="replace(normalize-space(.), 'Cerrado', 'CLOSED')"/>
</xsl:if>
<xsl:if test="(normalize-space(.) eq 'CANCELLED')">
<xsl:value-of select="replace(normalize-space(.), 'CANCELLED', 'CLOSED')"/>
</xsl:if>
<xsl:if test="(normalize-space(.) eq 'En Curso')">
<xsl:value-of select="replace(normalize-space(.), 'En Curso', 'OPENACTIVE')"/>
</xsl:if>
<xsl:if test="(normalize-space(.) eq 'Pendiente')">
<xsl:value-of select="replace(normalize-space(.), 'Pendiente', 'CLOSED.PENDING')"/>
</xsl:if> …Run Code Online (Sandbox Code Playgroud) 我无法使用适用于 PHP 的 AWS 开发工具包创建预签名 Url。我的代码是 -
function connect()
{
// Instantiate the S3 class and point it at the desired host
date_default_timezone_set('GMT');
return S3Client::factory(array(
'region' => 'us-west-2',
'version' => 'latest',
'credentials' => [
'key' => $key,
'secret' => $secret
]
));
function getSignedS3URLForObject($fileName)
{
// GET CURRENT DATE
$milliseconds = round(microtime(true) * 1000);
$expiration = $milliseconds + (1000 * 60 * 60 * 24 * 30 * 2);
$s3 = self::connect();
$command = $s3->getCommand('GetObject', array(
'Bucket' => self::$customerBucket,
'Key' …Run Code Online (Sandbox Code Playgroud)