Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(app-testing): full phase 1 app analysis battery #12143

Merged
merged 11 commits into from
Feb 16, 2023
Merged
Prev Previous commit
Next Next commit
all protocols mapped
  • Loading branch information
y3rsh committed Jan 31, 2023
commit a060c6bcf3084ddcff0b45370c89e7a11e1c1b7a
77 changes: 77 additions & 0 deletions app-testing/automation/data/protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,80 @@ class Protocols:
app_error=False,
robot_error=False,
)

OT2_P20SRight_None_6_1_SimpleTransferError: Protocol = Protocol(
file_name="OT2_P20SRight_None_6_1_SimpleTransferError",
file_extension="json",
protocol_name="Have Pipette",
robot="OT-2",
app_error=True,
robot_error=True,
app_analysis_error="Cannot aspirate more than pipette max volume",
robot_analysis_error="?",
)

OT2_P300M_P20S_MM_TM_TC1_5_2_6_PD40: Protocol = Protocol(
file_name="OT2_P300M_P20S_MM_TM_TC1_5_2_6_PD40",
file_extension="json",
protocol_name="script_pur_sample_1",
robot="OT-2",
app_error=False,
robot_error=False,
)

OT2_P300M_P20S_None_2_12_FailOnRun: Protocol = Protocol(
file_name="OT2_P300M_P20S_None_2_12_FailOnRun",
file_extension="py",
protocol_name="Will fail on run",
robot="OT-2",
app_error=False,
robot_error=False,
)

OT2_P300SG1_None_5_2_6_Gen1PipetteSimple: Protocol = Protocol(
file_name="OT2_P300SG1_None_5_2_6_Gen1PipetteSimple",
file_extension="json",
protocol_name="gen1 pipette",
robot="OT-2",
app_error=False,
robot_error=False,
)

OT2_P1000SLeft_None_6_1_SimpleTransfer: Protocol = Protocol(
file_name="OT2_P1000SLeft_None_6_1_SimpleTransfer",
file_extension="json",
protocol_name="Need Pipette",
robot="OT-2",
app_error=False,
robot_error=False,
)

OT2_P300M_P20S_HS_6_1_Smoke620release: Protocol = Protocol(
file_name="OT2_P300M_P20S_HS_6_1_Smoke620release",
file_extension="json",
protocol_name="H/S normal use",
robot="OT-2",
app_error=False,
robot_error=False,
)

OT2_P300M_P20S_MM_TM_TC1_5_2_6_PD40Error: Protocol = Protocol(
file_name="OT2_P300M_P20S_MM_TM_TC1_5_2_6_PD40Error",
file_extension="json",
protocol_name="script_pur_sample_1",
robot="OT-2",
app_error=True,
robot_error=True,
app_analysis_error="Cannot aspirate more than pipette max volume",
robot_analysis_error="?",
)

OT2_None_None_2_12_Python310SyntaxRobotAnalysisOnlyError: Protocol = Protocol(
file_name="OT2_None_None_2_12_Python310SyntaxRobotAnalysisOnlyError",
file_extension="py",
protocol_name="🛠 3.10 only Python 🛠",
robot="OT-2",
app_error=False,
robot_error=True,
robot_analysis_error="?",
)
8 changes: 7 additions & 1 deletion app-testing/example.env
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ LOCALHOST=false
# run all tests
# possible values in \automation\data\protocol_files.py
# dynamically generate with make print-protocols
#APP_ANALYSIS_TEST_PROTOCOLS="OT2_P1000SLeft_None_6_1_SimpleTransfer, OT2_P20SRight_None_6_1_SimpleTransferError, OT2_P20S_P300M_HS_6_1_HS_WithCollision_Error, OT2_P20S_P300M_NoMods_6_1_TransferReTransferLiquid, OT2_P300M_P20S_HS_6_1_Smoke620release, OT2_P300M_P20S_MM_HS_TD_TC_6_1_AllMods_Error, OT2_P300M_P20S_MM_TM_TC1_5_2_6_PD40, OT2_P300M_P20S_MM_TM_TC1_5_2_6_PD40Error, OT2_P300M_P20S_NoMod_6_1_MixTransferManyLiquids, OT2_P300M_P300S_HS_6_1_HS_NormalUseWithTransfer, OT2_P300SG1_None_5_2_6_Gen1PipetteSimple, OT2_P300SLeft_MM_TM_TM_5_2_6_MOAMTemps, OT2_None_None_2_12_Python310SyntaxRobotAnalysisOnlyError, OT2_None_None_2_13_PythonSyntaxError, OT2_P10S_P300M_TC1_TM_MM_2_11_Swift, OT2_P20S_None_2_7_Walkthrough, OT2_P300MLeft_MM_TM_2_4_Zymo, OT2_P300M_P20S_None_2_12_FailOnRun, OT2_P300M_P20S_TC_MM_TM_6_13_Smoke620Release, OT2_P300SLeft_MM1_MM_2_2_EngageMagHeightFromBase, OT2_P300SLeft_MM1_MM_TM_2_3_Mix, OT2_P300S_Thermocycler_Moam_Error, OT2_P300S_Twinning_Error"
#APP_ANALYSIS_TEST_PROTOCOLS="OT2_P1000SLeft_None_6_1_SimpleTransfer, OT2_P20SRight_None_6_1_SimpleTransferError, OT2_P20S_P300M_HS_6_1_HS_WithCollision_Error,
OT2_P20S_P300M_NoMods_6_1_TransferReTransferLiquid, OT2_P300M_P20S_HS_6_1_Smoke620release, OT2_P300M_P20S_MM_HS_TD_TC_6_1_AllMods_Error, OT2_P300M_P20S_MM_TM_TC1_5_2_6_PD40,
OT2_P300M_P20S_MM_TM_TC1_5_2_6_PD40Error, OT2_P300M_P20S_NoMod_6_1_MixTransferManyLiquids, OT2_P300M_P300S_HS_6_1_HS_NormalUseWithTransfer,
OT2_P300SG1_None_5_2_6_Gen1PipetteSimple, OT2_P300SLeft_MM_TM_TM_5_2_6_MOAMTemps, OT2_None_None_2_12_Python310SyntaxRobotAnalysisOnlyError, OT2_None_None_2_13_PythonSyntaxError,
OT2_P10S_P300M_TC1_TM_MM_2_11_Swift, OT2_P20S_None_2_7_Walkthrough, OT2_P300MLeft_MM_TM_2_4_Zymo, OT2_P300M_P20S_None_2_12_FailOnRun,
OT2_P300M_P20S_TC_MM_TM_6_13_Smoke620Release, OT2_P300SLeft_MM1_MM_2_2_EngageMagHeightFromBase, OT2_P300SLeft_MM1_MM_TM_2_3_Mix, OT2_P300S_Thermocycler_Moam_Error,
OT2_P300S_Twinning_Error"
# run one
APP_ANALYSIS_TEST_PROTOCOLS="OT2_P1000SLeft_None_6_1_SimpleTransfer"
FILES_FOLDER="files"
1 change: 1 addition & 0 deletions app-testing/tests/protocol_analyze_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def test_analyses(
assert protocol_landing.get_error_details_safe() is None, "Unexpected analysis error."

# Verifying elements on Protocol Landing Page
# todo fix next line needs to be safe and print name not found
assert protocol_landing.get_deckMap_protocol_landing(protocol_name=protocol.protocol_name).is_displayed()
assert (
protocol_landing.get_protocol_name_text_protocol_landing(protocol_name=protocol.protocol_name)
Expand Down