Sweta Potthuri | 8ea333e | 2017-02-13 03:58:26 -0600 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Run security and vulnerability scan. |
| 4 | |
| 5 | Library XML |
| 6 | Library String |
| 7 | Library Collections |
| 8 | Library DateTime |
| 9 | |
| 10 | Test Setup Security Setup |
| 11 | |
| 12 | Resource ../lib/utils.robot |
| 13 | |
| 14 | *** Test Cases *** |
| 15 | |
| 16 | Security Scan |
| 17 | [Documentation] Run nessus network and vulnerability scan. |
| 18 | [Tags] Security_Scan |
| 19 | Log ${NESSUS_URL} |
| 20 | Open Browser with URL ${NESSUS_URL} |
| 21 | Login to GUI ${NESSUS_URL} ${xpath_uname} ${username} |
| 22 | ... ${xpath_password} ${password} ${xpath_signin} ${nessus_logo} |
| 23 | Select Full Scan |
| 24 | Start Scan |
| 25 | |
| 26 | *** Keywords *** |
| 27 | |
| 28 | Security Setup |
| 29 | [Documentation] Break firewall and generate URL. |
| 30 | # Nessus Username, password and IP details are expected by program |
| 31 | # and should be given as command line parameters. |
| 32 | Break Firewall ${NESSUS_HOST} ${NESSUS_USERNAME} ${NESSUS_PASSWORD} |
| 33 | ${NESSUS_URL}= Set Variable https://${NESSUS_HOST}:8834/nessus6.html |
| 34 | Set Suite Variable ${NESSUS_URL} |
| 35 | |
| 36 | Select Full Scan |
| 37 | [Documentation] Search OP full scan. |
| 38 | Input Text ${xpath_search} ${scan_name} |
| 39 | Capture Page Screenshot |
| 40 | Click Element ${xpath_op_scan} |
| 41 | |
| 42 | Start Scan |
| 43 | [Documentation] Start Nessus scan. |
| 44 | Click Element ${xpath_launch} |
| 45 | Click Element ${xpath_default} |
| 46 | Wait Until Page Contains running error=Scanning not started. |
| 47 | Capture Page Screenshot |