Fix syntax errors in the suites
Changes:
- Fixes the following
1) Keyword 'SeleniumLibrary.Page Should Contain'
expected 1 to 2 arguments, got 3.
2) No keyword with name 'CLI Get Nameservers' found.
3) Keyword 'BuiltIn.Run Keyword And Return Status'
expected at least 1 argument, got 0.
4) Setting 'Documentation' is allowed only once.
Only the first value is used.
Tested:
- Ran with --dryrun and check is clean
Change-Id: I42db43f804910c96426e2f5a235e0fa1b67be0e8
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/gui/gui_test/operations_menu/test_server_power_operations_sub_menu.robot b/gui/gui_test/operations_menu/test_server_power_operations_sub_menu.robot
index 83fc89c..fc0d569 100644
--- a/gui/gui_test/operations_menu/test_server_power_operations_sub_menu.robot
+++ b/gui/gui_test/operations_menu/test_server_power_operations_sub_menu.robot
@@ -183,7 +183,7 @@
Page Should Contain Element ${xpath_poweron_button}
- Verify Server Power Operations Page With Readonly User When Host Off State
+Verify Server Power Operations Page With Readonly User When Host Off State
[Documentation] Verify Server Power Operations page with readonly user when Host Off state.
[Tags] Verify_Server_Power_Operations_Page_With_Readonly_User_When_Host_Off_State
[Setup] Run Keywords Power Off Server AND Create Readonly User And Login To GUI
diff --git a/gui/gui_test/security_and_access_menu/test_ldap_sub_menu.robot b/gui/gui_test/security_and_access_menu/test_ldap_sub_menu.robot
index c9993b9..82eb7ec 100644
--- a/gui/gui_test/security_and_access_menu/test_ldap_sub_menu.robot
+++ b/gui/gui_test/security_and_access_menu/test_ldap_sub_menu.robot
@@ -274,11 +274,10 @@
${radio_buttons}= Get WebElements ${xpath_service_radio_button}
${status}= Run Keyword And Return Status
- IF '${ldap_type}' == 'LDAP'
- Checkbox Should Be Selected ${radio_buttons}[${0}]
- ELSE
- Checkbox Should Be Selected ${radio_buttons}[${1}]
- END
+ ... Run Keyword If '${ldap_type}'=='LDAP'
+ ... Checkbox Should Be Selected ${radio_buttons}[${0}]
+ ... ELSE
+ ... Checkbox Should Be Selected ${radio_buttons}[${1}]
Should Be Equal ${status} ${True}
diff --git a/gui/gui_test/settings_menu/test_snmp_alerts_sub_menu.robot b/gui/gui_test/settings_menu/test_snmp_alerts_sub_menu.robot
index 918516c..e95b028 100644
--- a/gui/gui_test/settings_menu/test_snmp_alerts_sub_menu.robot
+++ b/gui/gui_test/settings_menu/test_snmp_alerts_sub_menu.robot
@@ -5,7 +5,7 @@
Resource ../../../lib/snmp/redfish_snmp_utils.robot
Resource ../../../lib/snmp/resource.robot
Resource ../../lib/gui_resource.robot
-Resource ../../lib/bmc_network_utils.robot
+Resource ../../../lib/bmc_network_utils.robot
Suite Setup Suite Setup Execution
Suite Teardown Run Keywords Redfish.Logout AND Close Browser
diff --git a/gui/lib/gui_resource.robot b/gui/lib/gui_resource.robot
index f324f87..d99d8aa 100644
--- a/gui/lib/gui_resource.robot
+++ b/gui/lib/gui_resource.robot
@@ -200,7 +200,8 @@
Input Text ${xpath_input_static_dns} ${dns_server}
Click Button ${xpath_add_button}
IF '${expected_status}' != 'Valid format'
- Page Should Contain ${expected_status} AND Return From Keyword
+ Page Should Contain ${expected_status}
+ Return From Keyword
END
Wait Until Page Contains Element ${xpath_add_dns_ip_address_button} timeout=10sec