Переглянути джерело

feat: 提示性文字优化
1. 优化了启动时的日志
2. 优化了空测试时的命令

kindring 6 днів тому
батько
коміт
6ad2c6c37e
2 змінених файлів з 11 додано та 13 видалено
  1. 1 1
      bird_tool/TestEngine.cs
  2. 10 12
      bird_tool/bird_tool.cs

+ 1 - 1
bird_tool/TestEngine.cs

@@ -353,7 +353,7 @@ namespace Bird_tool
 
         public TestExecutor(SerialManager serialManager)
         {
-            bird_tool.Log("TestExecutor ");
+            bird_tool.Log("初始化测试引擎 TestExecutor init");
             _serialManager = serialManager;
             _taskQueue = Channel.CreateBounded<Func<CancellationToken, Task>>(1000);
 

+ 10 - 12
bird_tool/bird_tool.cs

@@ -863,7 +863,7 @@ namespace Bird_tool
                 Log_show("测试引擎未初始化!");
                 return;
             }
-            Log($"testType{testType} by {groupId}");
+            Log($"开始测试 {testType} by {groupId}");
             progressPanel.ResetPanel();
             var groups = _testExecutor.GetGroupInfos();
             foreach (var group in groups)
@@ -1017,8 +1017,8 @@ namespace Bird_tool
                     GroupId = "btn_long",
                     GroupName = "按钮测试",
                     Name = "长按测试1",
-                    Tips = "请长按电源按钮5秒后松开, 没成功按一次按钮 等6秒后再次长按",
-                    Command = "\r\n",
+                    Tips = "请长按电源按钮5秒后松开, 没成功按一次按钮 等6秒后再次长按",
+                    Command = "",
                     SuccessPattern = "sys off",
                     Timeout = 20000,
                     DelayBefore = 200,
@@ -1029,7 +1029,7 @@ namespace Bird_tool
                     GroupId = "btn_long",
                     Name = "开机测试1",
                     Tips = "灯灭后按下电源按钮后松开 2秒后再次按下后松开",
-                    Command = "\r\n",
+                    Command = "",
                     SuccessPattern = "OS start",
                     Timeout = 20000,
                     DelayBefore = 1000,
@@ -1043,7 +1043,7 @@ namespace Bird_tool
                     GroupId = "btn_long",
                     Name = "双击测试1",
                     Tips = "听到开机声音后, 请双击电源按钮 第一次",
-                    Command = "\r\n",
+                    Command = "",
                     SuccessPattern = "_msg_dbclick_callback",
                     Timeout = 20000,
                     DelayBefore = 500,
@@ -1054,7 +1054,7 @@ namespace Bird_tool
                     GroupId = "btn_long",
                     Name = "双击测试2",
                     Tips = "请再次双击电源按钮 第二次",
-                    Command = "\r\n",
+                    Command = "",
                     SuccessPattern = "_msg_dbclick_callback",
                     Timeout = 20000,
                     DelayBefore = 1000,
@@ -1113,7 +1113,7 @@ namespace Bird_tool
                     GroupId = "pir_test",
                     Name = "等待设备休眠",
                     Tips = "等待设备进入休眠状态",
-                    Command = "\r\n",
+                    Command = "",
                     SuccessPattern = "CAM: Close",
                     Timeout = 30000,
                     DelayAfter = 100,
@@ -1136,7 +1136,7 @@ namespace Bird_tool
                     GroupName = "重置按钮测试",
                     Name = "重置按钮1",
                     Tips = "请按下重置按钮 第一次",
-                    Command = "\r\n",
+                    Command = "",
                     SuccessPattern = "OS start",
                     Timeout = 30000,
                     MaxRetries = 3,
@@ -1147,8 +1147,8 @@ namespace Bird_tool
                 {
                     GroupId = "btn_reset",
                     Name = "重置按钮2",
-                    Tips = "请按下重置按钮 第二次",
-                    Command = "\r\n",
+                    Tips = "请再次按下重置按钮 第二次",
+                    Command = "",
                     SuccessPattern = "OS start",
                     Timeout = 30000,
                     MaxRetries = 3,
@@ -1253,8 +1253,6 @@ namespace Bird_tool
                     DelayBefore = 1000,
                     MaxJump = 5,
                 },
-
-                // 设备基础参数配置
                 
                 // 音频测试
                 ///**