Fix for depreciated Continue For Loop If keyword
Changes:
- Continue For Loop If is deprecated since
Robot Framework version 5.*, use IF and CONTINUE instead
Tested:
- Checked using robot dry-run to make sure the
syntax is not broken
Change-Id: I63bba499b2c82394bb3fe2f74405dbacd09a6d0c
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/security/test_bmc_connections.robot b/security/test_bmc_connections.robot
index 9d1e7a9..53265d2 100644
--- a/security/test_bmc_connections.robot
+++ b/security/test_bmc_connections.robot
@@ -204,7 +204,7 @@
Log To Console ${iter}th Refresh of home page
Refresh GUI
- Continue For Loop If ${iter}%100 != 0
+ IF ${iter}%100 != 0 CONTINUE
# Every 100th iteration, check BMC GUI is responsive.
${status}= Run Keyword And Return Status
@@ -248,7 +248,7 @@
Run Keyword And Ignore Error
... Redfish.Delete /redfish/v1/AccountService/Accounts/test_user
- Continue For Loop If ${iter}%100 != 0
+ IF ${iter}%100 != 0 CONTINUE
# Every 100th iteration, check delete operation with valid session token.
${status}= Run Keyword And Return Status
@@ -359,7 +359,7 @@
FOR ${iter} IN RANGE ${iterations}
Log To Console ${iter}th Redfish login with invalid credentials
Run Keyword And Ignore Error Redfish.Login ${login_username} incorrect_password
- Continue For Loop If ${iter}%100 != 0
+ IF ${iter}%100 != 0 CONTINUE
# Every 100th iteration, check Redfish is responsive.
${status}= Run Keyword And Return Status