wcat - 如何在 WCAT 场景文件中转义双引号?

标签 wcat

使用 WCAT 6.3,我想设置一个与此完全相同的 http header ,包括 ETag 周围的双引号:

If-None-Match: "a52391cbf838cd1:0"

如何转义场景文件中的双引号?这是我的场景文件中的片段,该片段不起作用:

request
{
  url = "/css/navigation.css";
  setheader
  {
    name  = "If-None-Match";
    value = ""a52391cbf838cd1:0"";
  }
  statuscode = 304;
}

最佳答案

WCAT 基于 C,场景文件使用一些 C 语法,包括其转义字符。正确的语法是:

  setheader
  {
    name  = "If-None-Match";
    value = "\"a52391cbf838cd1:0\"";
  }

关于wcat - 如何在 WCAT 场景文件中转义双引号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5968036/

相关文章:

ntlm - 有人有使用 NTLM 身份验证的成功 WCAT 负载测试场景吗?

load-testing - Web容量分析工具(WCAT)教程

command-line - WCAT 给出错误 : "must specify at least one of the following parameters -run, -update, -terminate, -showclients or -setclients"

wcat - WCAT report.xsl无效

performance - 负载测试随机化: How to set up WCAT to use different scenario for each virtual client?

asp.net - 使用WCAT对ASP.NET/IIS进行压力测试