blob: 6acefd42f353c5b91412e536dfbccfce778c3589 [file] [log] [blame]
prkatti1e2198962016-12-23 00:20:37 -06001#!/usr/bin/python
2
3# Contains xpaths and related string constants of Security scanning.
4
5class variables():
6
7 # xpaths for security scanning.
8
9 BROWSER= "ff"
10 nessus_logo= "xpath=//*[@id='logo']"
11 running_status= "xpath=//*[@id='main']/div[1]/section/div[2]/table/tbody/tr[1]/td[4]"
12 username= "test"
13 password= "passw0rd"
14 xpath_exception= "id=advancedButton"
15 xpath_add_exce= "id='exceptionDialogButton'"
16 xpath_uname= "xpath=//*[@id='nosession']/form/input[1]"
17 xpath_password= "xpath=//*[@id='nosession']/form/input[2]"
18 xpath_signin= "xpath=//*[@id='sign-in']"
Sivas SRRc2446252017-04-12 11:46:15 -050019
prkatti1e2198962016-12-23 00:20:37 -060020 xpath_search= "xpath=//*[@id='searchbox']/input"
21 scan_name= "OP Full Scan"
22 xpath_op_scan= "xpath=//*[@id='main']/div[1]/section/table/tbody"
23 xpath_launch= "xpath=//*[@id='scans-show-launch-dropdown']/span"
24 xpath_default= "xpath=//*[@id='scans-show-launch-default']"
25 xpath_status= "xpath=//*[@id='main']/div[1]/section/div[2]/table/tbody/tr[1]/td[4]"
Sivas SRRc2446252017-04-12 11:46:15 -050026 obmc_BMC_URL= "https://openbmc-test.mybluemix.net/#/login"
27 obmc_uname= "username"
28 obmc_user_name= "root"
29 obmc_password= "0penBmc"
30
31 # Power Operation Elements needed for power on
32 header_wrapper= "2"
33 header_wrapper_elt= "2"
34
35 # Power Operation Elements needed for power operations confirmation
36 power_operations= "4"
37 warm_boot= "3"
38 cold_boot= "4"
39 shut_down= "5"
40 power_off= "6"
41 confirm_msg= "2"
42 yes= "1"