aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/appc/cdt/common.robot
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-09-27 10:29:30 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-09-27 12:50:28 -0700
commit2d3d8dcf6ef1bd2a161c69d561c629c5ec3f59c4 (patch)
tree652fd47a183c291e96c6721f550a5f63464f6e66 /test/csit/tests/appc/cdt/common.robot
parente161173e279a73134dda4c2f429605d6c9ee1fe7 (diff)
Move CSIT to integration/csit repo
To facilite branching of CSIT tests, all CSIT test code and scripts are relocated to the integration/csit repo. Change-Id: I6777cd414e43dbf2bfa6215f7e50849e1a6a2e59 Issue-ID: INT-671 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'test/csit/tests/appc/cdt/common.robot')
-rw-r--r--test/csit/tests/appc/cdt/common.robot60
1 files changed, 0 insertions, 60 deletions
diff --git a/test/csit/tests/appc/cdt/common.robot b/test/csit/tests/appc/cdt/common.robot
deleted file mode 100644
index 3492924f1..000000000
--- a/test/csit/tests/appc/cdt/common.robot
+++ /dev/null
@@ -1,60 +0,0 @@
-# CDT Regression Testing # Set the MAINURL via the command line
-# run as:
-# 1) execute a .profile that sets and exports DEV2 and DEV4
-# 2) robot --variable MAINURL:$DEV# filename.robot
-
-
-*** Variables ***
-
-# ${MAINURL} is now set from the command line per above
-| ${BROWSER} | chrome
-| ${SHORTTIME} | 5s
-| ${LONGTIME} | 90s
-| ${TENMINUTES} | 600s
-#| ${FFPROFILE_DIR} | /home/dvz/.mozilla/firefox/s87c07vn.AppCZoomed50
-| ${MAINURL} | http://localhost:8080/index.html
-| ${USER_ID} | csituser
-
-*** Keywords ***
-| Setup1 | Open browser | ${MAINURL} | ${BROWSER} | | | | |
-| Setup2 | SLEEP | 2s
-
-# Refresh the ${MAINURL} which is used as starting point within each test file
-| RefreshMainURL
-| | Go To | ${MAINURL}
-| | Wait Until Page Contains | WELCOME TO CONTROLLER DESIGN TOOL | ${LONGTIME}
-
-
-# Make sure you can get to APPC server - Wrap in implicit wait then reset
-# Want to wait a few seconds to see if Server error appears.
-# Can't add an explicit wait to "Page should not contain"
-| CheckForServerError
-| | [Arguments] | ${WAITTIME}
-| | Set Selenium Implicit Wait | ${WAITTIME}
-| | Page Should Not Contain | Error in connecting to APPC Server
-| | Set Selenium Implicit Wait | 0
-
-
-| ClickButtonByContent
-| | [Arguments] | ${TEXT}
-| | ${RETVAL} | Execute Javascript | function clickButtonByTextContent(buttontext) { var buttons = document.querySelectorAll('button'); for (var i=0, l=buttons.length; i<l; i++) { if (buttons[i].firstChild.nodeValue == buttontext) { buttons[i].click(); return 0 } } return 1 }; var retval=clickButtonByTextContent('${TEXT}'); return retval;
-| | Return From Keyword | ${RETVAL}
-
-| ClickButtonByClassName
-| | [Arguments] | ${TEXT}
-| | ${RETVAL} | Execute Javascript | function clickButtonByClassName(theclass) { var buttons = document.querySelectorAll('button'); for (var i=0, l=buttons.length; i<l; i++) { if (buttons[i].firstChild.nodeValue == theclass) { buttons[i].click(); return 0 } } return 1 }; var retval=clickButtonByClassName(${TEXT}); return retval;
-| | Return From Keyword | ${RETVAL}
-
-| EnterElementByClassName
-| | [Arguments] | ${THECLASS} | ${INPUTVALUE}
-| | ${RETVAL} | Execute Javascript | function enterElementByClassName(theclass,theinput) { var element = document.querySelector('.'+theclass).value = theinput; return 0 }; var retval=enterElementByClassName(${THECLASS},${INPUTVALUE}); return retval;
-| | Return From Keyword | ${RETVAL}
-
-*** Settings ***
-
-| Library | ExtendedSelenium2Library
-| Library | OperatingSystem
-#| Library | Dialogs
-| Library | DateTime
-
-