autotest instruction fix tbt
This commit is contained in:
parent
f4e41b2422
commit
7c60b8e5d7
@ -353,11 +353,11 @@ class Test(Widget):
|
||||
l_at_1=copy.deepcopy(self.config["autotest_leak"])
|
||||
l_at_1.pop("enabled")
|
||||
l_at_1={a: float(x) for a, x in l_at_1.items()}
|
||||
l_at_1["autotest"]=True
|
||||
l_at_1["autotest"]="ko_check"
|
||||
l_at_2=copy.deepcopy(self.config["autotest_leak"])
|
||||
l_at_2.pop("enabled")
|
||||
l_at_2={a: float(x) for a, x in l_at_2.items()}
|
||||
l_at_2["autotest"]=False
|
||||
l_at_2["autotest"]="ok_check"
|
||||
leak_autotest_steps=[Steps(type="leak_1",spec=l_at_1),Steps(type="leak_1",spec=l_at_2)]
|
||||
|
||||
self.autotest_cycle_steps = [
|
||||
@ -392,40 +392,6 @@ class Test(Widget):
|
||||
}),
|
||||
] if "resistance" not in self.unsupported_steps else []),
|
||||
*(leak_autotest_steps),
|
||||
# *([
|
||||
# Steps(type="leak_1", spec={
|
||||
# "pre_filling_time": 0,
|
||||
# "pre_filling_pressure": 1000,
|
||||
# "filling_time": 5,
|
||||
# "settling_time": 5,
|
||||
# "settling_pressure_min_percent": 5,
|
||||
# "settling_pressure_max_percent": 5,
|
||||
# "test_time": 10,
|
||||
# "test_pressure_min_delta": 5,
|
||||
# "test_pressure": 9000,
|
||||
# "test_pressure_max_delta": 5,
|
||||
# "flush_time": 1,
|
||||
# "flush_pressure": 100,
|
||||
# "autotest": True,
|
||||
# }),
|
||||
# ] if "leak_1" not in self.unsupported_steps else []),
|
||||
# *([
|
||||
# Steps(type="leak_1", spec={
|
||||
# "pre_filling_time": 0,
|
||||
# "pre_filling_pressure": 1000,
|
||||
# "filling_time": 5,
|
||||
# "settling_time": 5,
|
||||
# "settling_pressure_min_percent": 5,
|
||||
# "settling_pressure_max_percent": 5,
|
||||
# "test_time": 10,
|
||||
# "test_pressure_min_delta": 5,
|
||||
# "test_pressure": 9000,
|
||||
# "test_pressure_max_delta": 5,
|
||||
# "flush_time": 1,
|
||||
# "flush_pressure": 100,
|
||||
# "autotest": False,
|
||||
# }),
|
||||
# ] if "leak_1" not in self.unsupported_steps else []),
|
||||
Steps(type="done"),
|
||||
Steps(type="wait"),
|
||||
]
|
||||
|
||||
@ -140,12 +140,15 @@ class Test_Leak(Test_Test):
|
||||
"END TEST, WAITING THE START OF A NEW TEST"
|
||||
"FINE TEST",
|
||||
}:
|
||||
if self.step.spec.get("autotest", False) is not True:
|
||||
if self.step.spec.get("autotest", False) == "ok_check":
|
||||
if self.parent_assembly_widget is not None:
|
||||
self.parent_assembly_widget().set_text(text="COLLEGARE GLI ATTACCHI PNEUMATICI E PREMERE START PER INIZIARE LA PROVA TENUTA")
|
||||
self.parent_assembly_widget().set_text(text="AUTOTEST: RIMUOVERE FUGA CALIBRATA E PREMERE START PER INIZIARE LA PROVA TENUTA",color="blue")
|
||||
elif self.step.spec.get("autotest", False) == "ko_check":
|
||||
if self.parent_assembly_widget is not None :
|
||||
self.parent_assembly_widget().set_text(text="AUTOTEST: COLLEGARE TUBO-TUBO + FUGA CALIBRATA E PREMERE START PER INIZIARE LA PROVA TENUTA DI PROVA",color="blue")
|
||||
else:
|
||||
if self.parent_assembly_widget is not None:
|
||||
self.parent_assembly_widget().set_text(text="AUTOTEST: COLLEGARE LA FUGA CALIBRATA E PREMERE START PER INIZIARE LA PROVA TENUTA DI PROVA",color="blue")
|
||||
self.parent_assembly_widget().set_text(text="COLLEGARE GLI ATTACCHI PNEUMATICI E PREMERE START PER INIZIARE LA PROVA TENUTA")
|
||||
self.start_b.setEnabled(True)
|
||||
self.stop_b.setEnabled(False)
|
||||
else:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user