aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/appc/testsuite/LCM_VM_RESTART.robot
diff options
context:
space:
mode:
authorNGUYEN <pn8984@att.com>2017-09-11 14:13:51 -0700
committerGary Wu <gary.i.wu@huawei.com>2017-09-11 22:43:51 +0000
commit01925891c033007b29f7afb1a71a91c61e91b96c (patch)
treea99b8024338fa94e38ad40708b5603be5a1f4746 /test/csit/tests/appc/testsuite/LCM_VM_RESTART.robot
parent24f96274000828229ccde75aa520e534c48d2480 (diff)
APPC ONAP Scripts
Change-Id: Idbad175df1df1c49df22f6c5af2dbf9d311c8873 issue-ID=APPC-193 Signed-off-by: NGUYEN <pn8984@att.com>
Diffstat (limited to 'test/csit/tests/appc/testsuite/LCM_VM_RESTART.robot')
-rw-r--r--test/csit/tests/appc/testsuite/LCM_VM_RESTART.robot31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/csit/tests/appc/testsuite/LCM_VM_RESTART.robot b/test/csit/tests/appc/testsuite/LCM_VM_RESTART.robot
new file mode 100644
index 000000000..997ba17a0
--- /dev/null
+++ b/test/csit/tests/appc/testsuite/LCM_VM_RESTART.robot
@@ -0,0 +1,31 @@
+*** Settings ***
+Library Selenium2Library
+Library OperatingSystem
+
+*** Variable ***
+${ResponseCode}
+${var}
+${RequestJSON} /LearningSamples/Resources/VMRestart.json
+
+
+*** Test Cases ***
+
+APPC API VM RESTART
+ [Documentation] APPC VM LCM Restart
+ Open Browser http://admin:Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U@104.130.138.49:8282/apidoc/explorer/index.html chrome
+ Click Element xpath=.//p[contains(text(),'If you have reason to expect the website is safe, select the I Accept the Risk button to continue.')]//following::img
+ Click Element xpath=//*[@id="resource_appc-provider-lcm(2016-01-08)"]/div/h2/a
+ Click Element xpath=//*[@id="appc-provider-lcm(2016-01-08)_restart_post_23"]/div[1]/h3/span[2]/a
+ ${VM_LCM_RESTART} Get File ${RequestJSON}
+ Input Text xpath=//*[@id="appc-provider-lcm(2016-01-08)_restart_post_23_content"]/form/table/tbody/tr/td[2]/textarea ${VM_LCM_RESTART}
+ Click Element xpath=//*[@id="appc-provider-lcm(2016-01-08)_restart_post_23_content"]/form/div[2]/input
+ # Get Text locator
+ ${ResponseCode} Get Text xpath=//*[@id="appc-provider-lcm(2016-01-08)_restart_post_23_content"]/div[2]/h4[contains(text(),'Response Code')]//following::div//pre
+ ${var} Get Value xpath=//*[@id="appc-provider-lcm(2016-01-08)_restart_post_23_content"]/div[2]/h4[contains(text(),'Response Code')]//following::div//pre
+ Log Value--> ${ResponseCode}
+ Log var--> ${var}
+ Element Text Should Be xpath=//*[@id="appc-provider-lcm(2016-01-08)_restart_post_23_content"]/div[2]/h4[contains(text(),'Response Code')]//following::div//pre 400 expected
+
+Tear Down
+ [Documentation] Close all browsers
+ Close All Browsers \ No newline at end of file