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 小时前
Windows CMD 与 PowerShell 深度解析:底层原理、命令差异、自动化选型指南
运维·windows·自动化
Ai_easygo4 小时前
自动化客服Agent实战:用LangGraph+RAG+MCP把80%工单交给AI(从设计到部署)
运维·人工智能·自动化
這花開嗎8 小时前
2026年TTS文字转语音API哪家强?批量自动化配音成本与技术实测
python·flask·自动化
祉猷并茂,雯华若锦9 小时前
Win下完美解决Allure报错,生成Web自动化测试报告
android·python·selenium·自动化
Urbano10 小时前
职业工装外套核心缝制工序自动化替代分析与多品牌设备选型报告
运维·自动化
烟漠河洛10 小时前
AI Agent 在代购系统中的三个落地实战:从知识图谱到自动化链路
人工智能·自动化·知识图谱
菩提树下的打坐11 小时前
性能测试进阶:从 JMeter 基线到 SLO 驱动的压测体系
学习·jmeter
HiDev_11 小时前
【非标自动化】2、认识元器件(PE、N、L1/L2/L3)
运维·自动化
71777711 小时前
从工具自动化到自主研发:Gitee 智能 DevOps 全域落地实践
gitee·自动化·devops
HiDev_12 小时前
【非标自动化】2、认识元器件(接近传感器)
人工智能·深度学习·自动化