GUI: Added test to verify sub sections under firmware sub menu
Changes :-
- Updated test cases at poweroff state.
- Added variable and xpath for Sitch to running option.
Tested :-
- Successfully ran this from gui/gui_test/operations_menu/test_firmware_sub_menu.robot
Change-Id: I8aeebd792110dbd82b60cbaf018e7d71ed4e0d3d
Signed-off-by: rramyasr-in <rramyasr@in.ibm.com>
diff --git a/gui/gui_test/operations_menu/test_firmware_sub_menu.robot b/gui/gui_test/operations_menu/test_firmware_sub_menu.robot
index eee85a2..1435c54 100644
--- a/gui/gui_test/operations_menu/test_firmware_sub_menu.robot
+++ b/gui/gui_test/operations_menu/test_firmware_sub_menu.robot
@@ -12,7 +12,7 @@
${xpath_firmware_heading} //h1[text()="Firmware"]
${xpath_add_file_button} //*[@id='image-file']
${xpath_start_update_button} //*[@data-test-id="firmware-button-startUpdate"]
-
+${xpath_switch_to_running} //*[@data-test-id="firmware-button-switchToRunning"]
*** Test Cases ***
@@ -42,14 +42,17 @@
Page Should Contain Element ${xpath_start_update_button}
-Verify Existence Of All Sub Sections Under BMC And Server Section
- [Documentation] Verify existence of all sub sections under BMC and server section.
- [Tags] Verify_Existence_Of_All_Sub_Sections_Under_BMC_And_Server_Section
+Verify Existence Of All Sub Sections Under BMC And Server Section At Poweroff State
+ [Documentation] Verify existence of all sub sections under BMC and server section at poweroff state.
+ [Tags] Verify_Existence_Of_All_Sub_Sections_Under_BMC_And_Server_Section_At_Poweroff_State
+
+ Redfish Power Off stack_mode=skip quiet=1
Page Should Contain Running image
Page Should Contain Backup image
Page Should Contain Temporary
Page Should Contain Permanent
+ Element Should Be Visible ${xpath_switch_to_running}
Verify Existence Of All Buttons In Firmware Page At Host Power On