blob: 91211d72fd447bcdce7b16ef8e6380ec7236eaac [file] [log] [blame]
Sweta Potthuri8ea333e2017-02-13 03:58:26 -06001*** Settings ***
2
3Documentation Run security and vulnerability scan.
4
5Library XML
6Library String
7Library Collections
8Library DateTime
9
10Test Setup Security Setup
11
12Resource ../lib/utils.robot
13
14*** Test Cases ***
15
16Security 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
28Security 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
36Select 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
42Start 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