在 CSV 中保存 Locust 响应

问题描述 投票:0回答:0
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <m:NumberToWordsResponse xmlns:m="http://www.dataaccess.com/webservicesserver/">
      <m:NumberToWordsResult>four hundred </m:NumberToWordsResult>
    </m:NumberToWordsResponse>
  </soap:Body>
</soap:Envelope>

为了将蝗虫的响应存储在 csv 文件中,我试过了,但它以字符和逗号格式保存,例如:“x,m,l”

我也用字符串尝试过,但没有以预期的方式工作。有什么解决办法吗..?任何建议将不胜感激。

python csv response locust
© www.soinside.com 2019 - 2024. All rights reserved.