Added new testcases to policies sub-menu
Changes :
- Added test to enable SSH and IPMI via GUI and verify it's state on BMC reboot
- Added test to disable SSH and IPMI via GUI and verify it's state on BMC reboot
- Added test to enable SSH and disable IPMI via GUI and verify it's state on BMC reboot
- Added test to disable SSH and enable IPMI via GUI and verify it's state on BMC reboot
Tested:
- Ran successfully test_policies_sub_menu.robot
Change-Id: Ieadd70c0d1256eb29683f497db929cf79ddccd58
Signed-off-by: Megha G N <Megha.G.N@ibm.com>
diff --git a/gui/gui_test/security_and_access_menu/test_policies_sub_menu.robot b/gui/gui_test/security_and_access_menu/test_policies_sub_menu.robot
index 049bfee..0e0e921 100644
--- a/gui/gui_test/security_and_access_menu/test_policies_sub_menu.robot
+++ b/gui/gui_test/security_and_access_menu/test_policies_sub_menu.robot
@@ -184,6 +184,21 @@
Disabled Enabled
+Configure SSH And IPMI Settings Via GUI And Verify Its Persistency
+ [Documentation] Login to GUI Policies page,set SSH and IPMI toggle and
+ ... verify SSH & IPMI settings after BMC reboot.
+ [Tags] Configure_SSH_And_IPMI_Settings_Via_GUI_And_Verify_Its_Persistency
+ [Setup] Fetch IPMI And SSH Settings
+ [Template] Set SSH And IPMI State Via GUI
+ [Teardown] Set SSH And IPMI State Via GUI ${initial_ssh_setting} ${initial_ipmi_setting}
+
+ # ssh_state ipmi_state persistency_check
+ Enabled Enabled True
+ Disabled Disabled True
+ Enabled Disabled True
+ Disabled Enabled True
+
+
*** Keywords ***
Test Setup Execution
@@ -278,6 +293,9 @@
... ELSE IF '${ipmi_state}' != '${current_ipmi_state}'
... Click Element ${xpath_network_ipmi_toggle}
+ Run Keyword If ${persistency_check} == ${True}
+ ... Run Keywords Reboot BMC via GUI AND Test Setup Execution
+
Wait Until Keyword Succeeds 30 sec 15 sec Verify Policy State ${ssh_state} ${ipmi_state}