Added Read only user testcases to verify GUI page
Changes:
- Verify Profile Setting Menu With Read only User
- Verify Server LED Turn Off And On With Read only User
- Added variable and xpath for Error and Unauthorized option
- keyword for create readonly user
- Keyword for verify success message
- keyword for Delete user and Logout current GUI session.
Tested:
- Successfully ran this from gui/gui_test
Change-Id: I683d819a27aef1b2405c2e35d6056216c7bf5771
Signed-off-by: Ramyasree Reddicherla <rramyasr@in.ibm.com>
diff --git a/gui/data/gui_variables.py b/gui/data/gui_variables.py
index 0f713de..f36208c 100644
--- a/gui/data/gui_variables.py
+++ b/gui/data/gui_variables.py
@@ -104,7 +104,6 @@
xpath_power_sub_menu = "//*[@data-test-id='nav-item-power']"
xpath_power_link = "//a[@href='#/resource-management/power']"
xpath_power_heading = "//h1[contains(text(), 'Power')]"
- xpath_success_message = "//*[contains(text(),'Success')]"
# Profile settings
xpath_default_UTC = "//*[@data-test-id='profileSettings-radio-defaultUTC']"
@@ -135,6 +134,15 @@
"//*[@aria-label='Page loading progress bar']"
)
+ # Pop up variables
+ xpath_success_message = "//*[contains(text(),'Success')]"
+ xpath_error_popup = (
+ "//*[contains(text(),'Error')]/following-sibling::button"
+ )
+ xpath_unauthorized_popup = (
+ "//*[contains(text(),'Unauthorized')]/following-sibling::button"
+ )
+
# Reboot sub menu
xpath_reboot_bmc_heading = "//h1[text()='Reboot BMC']"
xpath_reboot_bmc_button = "//button[contains(text(),'Reboot BMC')]"