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

相关推荐
梦想的旅途23 小时前
基于RPA技术的企业微信自动化接口设计思路与应用实践
人工智能·机器人·自动化·企业微信·rpa
yxl874646464 小时前
PCTG-1015型Profinet转Ethernet/IP协议转换器
服务器·网络·物联网·网络协议·自动化·信息与通信
半导体守望者4 小时前
MKS C系列MFC CMA10 CMA50快速紧凑型手侧与PC联网教程软件驱动USB
经验分享·笔记·功能测试·自动化·制造
云飞云共享云桌面5 小时前
搭建10人SolidWorks云设计环境:云飞云在非标自动化工厂的实测方案
运维·服务器·网络·数据库·自动化·电脑
Urbano5 小时前
突破品类边界:数控模板机不止制衣,枕套等家居家纺自动化生产全科普
运维·自动化
许彰午5 小时前
74_Python自动化办公之Excel操作
python·自动化·excel
shushangyun_17 天前
2026年快消品B2B系统推荐:支持终端门店订货、促销政策自动化的工具?
java·运维·网络·数据库·人工智能·spring·自动化
施努卡机器视觉17 天前
SNK施努卡侧滑门锁上滑轮总成自动化装配线,从零件到组件,全流程精密制造方案
运维·自动化·制造
dayuOK630717 天前
写作卡壳怎么办?我的“5分钟启动法”
人工智能·职场和发展·自动化·新媒体运营·媒体
志栋智能17 天前
超自动化巡检:如何选择适合你的起点?
运维·自动化