Update README.md

This commit is contained in:
窦凤虎
2024-04-23 09:09:48 +00:00
parent 28ef6024e2
commit 86d1ba2bf1

View File

@@ -80,18 +80,22 @@ java -jar file-chunk-generator.jar -n 123e4567-e89b-12d3-a456-426614174005 --fil
``` ```
### 输出故障诊断报告(等待5分钟) ### 输出故障诊断报告(等待1分钟)
```shell ```shell
# -n 执行次数 --folder 测试目录logsmetricsfiles不指定将对所有模块进行自检 # -n 执行次数 --folder 测试目录logsmetricsfiles不指定将对所有模块进行自检
# Logs进行故障诊断输出诊断明细 # Logs进行故障诊断输出诊断明细
newman run ./collection.json -n 3 -e ./environment.json --delay-request 1000 --timeout-script 10000 --timeout-request 300000 --timeout 3600000 --insecure --verbose --ignore-redirects --folder logs newman run ./collection.json -n 1 -e ./environment.json --delay-request 500 --timeout-script 10000 --timeout-request 300000 --timeout 3600000 --insecure --verbose --ignore-redirects --folder logs
#Logs进行故障诊断通过表情形式输出测试结果 #Logs进行故障诊断通过表情形式输出测试结果
newman run ./collection.json -n 3 --delay-request 1000 -e ./environment.json --ignore-redirects --folder logs -r emojitrain newman run ./collection.json -n 1 --delay-request 500 -e ./environment.json --ignore-redirects --folder logs -r emojitrain
#Logs进行故障诊断输出报告json格式自动存储newman目录 #Logs进行故障诊断输出报告json格式自动存储newman目录
newman run ./collection.json -n 3 --delay-request 1000 -e ./environment.json --ignore-redirects --folder logs -r cli,json newman run ./collection.json -n 1 --delay-request 500 -e ./environment.json --ignore-redirects --folder logs -r cli,json
#清除测试数据(暂支持文件删除)
newman run ./collection.json -n 1 --delay-request 500 -e ./environment.json --ignore-redirects --folder clear_test_data -r emojitrain
``` ```