Remove false positive tests
[integration/csit.git] / tests / appc / healthcheck / LCM_VNF_RESTART_TIMESTAMP.robot
1 *** Settings ***
2 Library    Selenium2Library
3 Library    XvfbRobot
4 Resource   ${CURDIR}/APPC_GLOBAL_VARIABLES.robot
5 Resource   ${CURDIR}/APPC_GLOBAL_KEYWORDS.robot
6
7
8 *** Test Cases ***
9 APPC LCM API VNF RESTART
10     [Documentation]    APPC LCM API VNF RESTART
11     [Teardown]    Close All Browsers
12 # Set the timeout because Open Browser ended with timeout...  
13     Set Selenium Timeout    5 seconds
14     Start Virtual Display     1920     1080
15     Open Browser    http://${GLOBAL_APPC_ADMIN_USER}:${GLOBAL_APPC_ADMIN_PASS}@localhost:8282/apidoc/explorer/index.html    chrome
16     Set Window Size    1920    1080
17 #    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
18
19     Reload Page
20
21 #    Wait Until Page Contains Element    xpath=//*[@id="resource_appc-provider-lcm(2016-01-08)"]/div/h2/a  
22 #    Set Selenium Speed    60
23 #    Click Element     xpath=.//*[contains(text(),'appc-provider-lcm(2016-01-08)')]
24
25 #    Wait Until Page Contains Element    xpath=//*[@id="resource_appc-provider-lcm(2016-01-08)"]/div/h2/a//following::a[contains(text(),'/operations/appc-provider-lcm:restart')]        
26 #    Set Selenium Speed    60
27 #    Click Element     xpath=.//*[contains(text(),'appc-provider-lcm:restart')]
28
29 #    Get Server time    ${GLOBAL_VNF_RESTART_REQUESTFILE}
30 #    ${file_content}=    OperatingSystem.Get File    ${GLOBAL_VNF_RESTART_REQUESTFILE}
31     
32 #    Wait Until Page Contains Element    xpath=//td[contains(text(), '(restart)input-TOP')]//following::textarea[@name='(restart)input-TOP'][3]
33 #    Set Selenium Speed    90
34 #    Input Text       xpath=(.//*[contains(text(),'(restart)input-TOP')])[5]/following::textarea[1]    ${file_content} 
35 #    Click Element     xpath=//*[@id="resource_appc-provider-lcm(2016-01-08)"]/div/h2/a//following::a[contains(text(),'/operations/appc-provider-lcm:restart')]//following::form/div[2]/input[1]
36
37 #    Input Text     xpath= //td[contains(text(), '(restart)input-TOP')]//following::textarea[@name='(restart)input-TOP'][3]      ${file_content}
38
39 #    ${var}=    Get Value    xpath=//*[@id="resource_appc-provider-lcm(2016-01-08)"]/div/h2/a//following::a[contains(text(),'/operations/appc-provider-lcm:restart')]//following::h4[contains(text(),'Response Code')][1]//following-sibling::div//pre    
40 #    Element Text Should Be     xpath=//*[contains(text(),'/operations/appc-provider-lcm:restart')]//following::h4[text()='Response Code'][1]//following-sibling::div//pre[1][text()='200']     200     expected