@@ -454,37 +454,98 @@ def show_responds():
454
454
print (f"Responds: { ret } " )
455
455
456
456
# 降温到4
457
- print ("开始降温 -> 4C" )
457
+ print ("条件准备: 开始降温 -> 4C" )
458
458
self .serail .write_and_get_buffer ("M104 S4" , delay = 3 )
459
459
ret = get_tem_and_break (4 )
460
460
assert ret , 'set temperature timeout'
461
461
462
462
input ("Plate Temperature & Light 开始测试..." )
463
463
# 升温到23
464
+ print ("测试:开始升温 -> 4-23C" )
464
465
self .serail .write_and_get_buffer ("M104 S23" , delay = 3 )
465
- get_tem_and_break (23 )
466
+ time .sleep (1 )
467
+ ret = input ('是否蓝色灯条闪烁(Y/N)?' )
468
+ if ret .strip ().upper () == 'Y' :
469
+ print ('Pulsing blue : Changing to cool temperature (<23 °C) TEST PASS' )
470
+ self .test_result .append ('Pass' )
471
+ else :
472
+ print ('Pulsing blue : Changing to cool temperature (<23 °C) TEST FAIL' )
473
+ self .test_result .append ('Fail' )
474
+
475
+ ret = get_tem_and_break (23 )
466
476
show_responds ()
467
- ret = input ('是否亮蓝色灯条 (Y/N)?' )
477
+ ret = input ('是否亮蓝色灯条常亮 (Y/N)?' )
468
478
if ret .strip ().upper () == 'Y' :
469
- print ('TEST PASS' )
479
+ print ('Solid blue : Holding at cool temperature (<23 °C) TEST PASS' )
470
480
self .test_result .append ('Pass' )
471
481
else :
482
+ print ('Solid blue : Holding at cool temperature (<23 °C) TEST FAIL' )
472
483
self .test_result .append ('Fail' )
473
484
# 升温到95
485
+ print ("测试:开始升温 -> 23-95C" )
474
486
self .serail .write_and_get_buffer ("M104 S95" , delay = 3 )
487
+ time .sleep (2 )
488
+ ret = input ('是否红色灯条闪烁(Y/N)?' )
489
+ if ret .strip ().upper () == 'Y' :
490
+ print ('Pulsing red : Changing to hot temperature (>23 °C) TEST PASS' )
491
+ self .test_result .append ('Pass' )
492
+ else :
493
+ print ('Pulsing red : Changing to hot temperature (>23 °C) TEST FAIL' )
494
+ self .test_result .append ('Fail' )
495
+
475
496
get_tem_and_break (95 )
476
497
show_responds ()
477
- ret = input ('是否亮红色灯条(Y/N)?' )
498
+ ret = input ('是否红色灯条常亮(Y/N)?' )
499
+ if ret .strip ().upper () == 'Y' :
500
+ print ('Solid red : Holding at hot temperature (>23 °C) TEST PASS' )
501
+ self .test_result .append ('Pass' )
502
+ else :
503
+ print ('Solid red : Holding at hot temperature (>23 °C) TEST FAIL' )
504
+ self .test_result .append ('Fail' )
505
+
506
+
507
+ # 降温到24
508
+ print ("测试:开始降温 -> 95-24C" )
509
+ self .serail .write_and_get_buffer ("M104 S24" , delay = 3 )
510
+ time .sleep (2 )
511
+ ret = input ('是否红色灯条闪烁(Y/N)?' )
478
512
if ret .strip ().upper () == 'Y' :
479
- print ('TEST PASS' )
513
+ print ('Pulsing red : Changing to hot temperature (>23 °C) TEST PASS' )
480
514
self .test_result .append ('Pass' )
481
515
else :
482
- print ('TEST FAIL' )
516
+ print ('Pulsing red : Changing to hot temperature (>23 °C) TEST FAIL' )
483
517
self .test_result .append ('Fail' )
518
+ get_tem_and_break (95 )
519
+ show_responds ()
484
520
521
+ # 升温到23
522
+ print ("测试:开始升温 -> 24-4C" )
485
523
self .serail .write_and_get_buffer ("M104 S23" , delay = 3 )
486
- get_tem_and_break (23 )
487
- print ("结束测试失能..." )
524
+ time .sleep (2 )
525
+ ret = input ('是否蓝色灯条闪烁(Y/N)?' )
526
+ if ret .strip ().upper () == 'Y' :
527
+ print ('Pulsing blue : Changing to cool temperature (<23 °C) TEST PASS' )
528
+ self .test_result .append ('Pass' )
529
+ else :
530
+ print ('Pulsing blue : Changing to cool temperature (<23 °C) TEST FAIL' )
531
+ self .test_result .append ('Fail' )
532
+ get_tem_and_break (95 )
533
+ show_responds ()
534
+
535
+ self .serail .write_and_get_buffer ("M18" , delay = 3 )
536
+ time .sleep (2 )
537
+ ret = input ('是否白色灯条常亮(Y/N)?' )
538
+ if ret .strip ().upper () == 'Y' :
539
+ print ('Solid white : Idle TEST PASS' )
540
+ self .test_result .append ('Pass' )
541
+ else :
542
+ print ('Solid white : Idle TEST FAIL' )
543
+ self .test_result .append ('Fail' )
544
+
545
+ # print("结束测试:恢复温度23C")
546
+ # self.serail.write_and_get_buffer("M104 S23", delay=3)
547
+ # get_tem_and_break(23)
548
+ print ("结束测试..." )
488
549
self .serail .write_and_get_buffer ("M18" , delay = 3 )
489
550
490
551
0 commit comments