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浏览器打开,使用谷歌翻译,这样效果比较好。

相关推荐
袖手蹲1 小时前
Arduino UNO Q 板载 Nanobot 自动化编程指南之七
运维·人工智能·自动化
美好的事情能不能发生在我身上3 小时前
Jmeter压测遇到的问题
java·分布式·jmeter
鹓于6 小时前
一键提取网页文本:拖拽即用小书签
自动化
herogus丶7 小时前
【Chrome插件】页面自动化助手使用介绍
前端·chrome·自动化
运营小白7 小时前
SEO 工具进阶拆解:SEONIB 批量分发至 WordPress,如何把博客变成“自动运转的内容工厂”?
人工智能·经验分享·搜索引擎·自动化·ai自动写作
Birdy_x7 小时前
接口自动化项目实战(8):请求封装
python·自动化·测试用例
牛奶咖啡138 小时前
DevOps自动化运维实践_搭建UEFI网络引导的自动安装Debian系统
运维·自动化·devops·uefi·pxe·debian自动应答文件·debian网络自动化安装系统
揽月凡尘9 小时前
基于 SWIG 的 C++ Embind 绑定自动化技术说明
开发语言·c++·自动化
会飞的大可10 小时前
前后端一体化CI/CD设计与实现:告别手动部署,实现全链路自动化交付
运维·ci/cd·自动化
BPM6661 天前
从 Activiti 到流程平台:企业流程架构升级实践总结
架构·自动化·敏捷流程