Procházet zdrojové kódy

add prompt for LCD module

Joe před 2 dny
rodič
revize
eaae393b67
2 změnil soubory, kde provedl 8 přidání a 2 odebrání
  1. 8 0
      python_test/test_function.py
  2. 0 2
      python_test/testplan.csv

+ 8 - 0
python_test/test_function.py

@@ -740,6 +740,7 @@ def step27_routine(context):
     context.print1("==SubTest: 检查gsensor基本功能测试  -  Titem_23")
     context.print1("-:) bash ./gsensor-SC7A20H/C180_gsensor_function_script.sh")
     context.print1("10s内手动转动屏幕,才能测试PASS!")
+    tkMessageBox.showinfo("Prompt", "请人工向右转动屏幕检查横竖屏,判断重力传感器是否正常?"):
     a = os.popen("bash ./gsensor-SC7A20H/C180_gsensor_function_script.sh  | grep -c \"pass\"").read().replace('\n', '').replace('\r', '').strip()
     try:
         a_int = int(a)
@@ -900,6 +901,13 @@ def step39_routine(context):
             return False, "FAIL " + "Error! No Device found! {}".format(a)
         elif a == "cashDrawer1: , cashDrawer2: ":
             return False, "FAIL " + "Error! no cashDrawer!"
+        elif a == "cashDrawer1: 0, cashDrawer2: 0":
+            return False, "FAIL " + "Error! no cashDrawer!"
+        elif a == "cashDrawer1: 1, cashDrawer2: 0":
+            return False, "FAIL " + "Error! no cashDrawer2!"
+        elif a == "cashDrawer1: 0, cashDrawer2: 1":
+            return False, "FAIL " + "Error! no cashDrawer1"
+
     except ValueError:
         return False, "Invalid output: {}".format(a)
     if len(a) > 0:

+ 0 - 2
python_test/testplan.csv

@@ -9,8 +9,6 @@ N,检查OS操作系统版本号,step6_routine,,,
 N,RTC电池,step7_routine,,,
 N,USB基本功能测试,step8_routine,,,
 N,检查网络在线速度测试,step9_routine,,,
-N,串口A基本功能测试,step10_routine,,,
-N,串口B本功能测试,step11_routine,,,
 N,串口C本功能测试,step12_routine,,,
 N,led测试,step14_routine,,,
 N,检查电池健康指示灯功能测试,step15_routine,,,