jmeter得到的文档数据处理

通过前面jmeter得到的输出文档,这里是txt文档,里面包含了很多条数据,每条数据的结构如下:

【request】

uuid:xxxxxxx

timestamp:xxxxxxxx

No.x question:xxxxxxx

【response】

code:x

answer:xxxxxxxx

uuid:xxxxxxxx

例如:

【request】

uuid: d4135c---------f19ad3f7

timestamp: 172------14175

No.1 question: Does--------ny have a dedicated customer service team? What are the main functions of the team?

【response】

code: 0

answer: Thank you for contactin--------cal Support! Feel free to contact our phone support team at 8--------- to 5 PM, JST (Daily). If in any case your call won't go through or nobody is answering your call, please dial again or wait for a callback within the day. Rest assured we're always here to help you sort things out.-A--------am

uuid: c---------c4d9ab2

这些数据需要查看一下内容是否正确,所以要翻译成中文,由于内容数量较大,使用一些翻译工具不能够很好的完成,一些python的翻译模块是收费翻译,最后想到了这样一个方法:

在最终在得到的txt文档中添加:<pre> ... </pre> 保存后将文件名改为html,使用chrome浏览器打开,使用谷歌翻译,这样效果比较好。

相关推荐
大熋2 小时前
Playwright Python 教程:网页自动化
开发语言·python·自动化
宇钶宇夕4 小时前
S7-200 SMART CPU 密码清除全指南:从已知密码到忘记密码的解决方法
运维·服务器·数据库·程序人生·自动化
xiaocainiao8815 小时前
Python 实战:构建 Git 自动化助手
git·python·自动化
朱颜辞镜花辞树‎7 小时前
GitHub 操作指南:项目协作与自动化工作流实践
运维·自动化·github
程序媛_9 小时前
【JMeter】数据驱动测试
jmeter
汪敏wangmin9 小时前
Fiddler-抓包后直接生成Loadrunner脚本或者Jmeter脚本
前端·jmeter·fiddler
llm20090910 小时前
Jmeter的JDBC数据库连接
数据库·jmeter
mit6.82410 小时前
[es自动化更新] Updatecli编排配置.yaml | dockerfilePath值文件.yml
大数据·elasticsearch·搜索引擎·自动化
云和数据.ChenGuang13 小时前
自动化运维工具jenkins问题
运维·自动化·jenkins·运维面试题·运维试题
chao_78915 小时前
Selenium 操作表单选择控件【selenium】
运维·python·selenium·测试工具·自动化