blob: 6e5e6c7e7b97b1df52bad91e64864829ad0ca839 [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 SRR40c1f042018-01-05 11:00:02 -060026
27 obmc_BMC_URL= "http://localhost:8080/#/login"
28 obmc_bmc_ip= "xpath=//*[@id='login__form']/input[1]"
29 obmc_uname= "username"
30 obmc_user_name= "root"
31 obmc_password= "0penBmc"
Sivas SRRc2446252017-04-12 11:46:15 -050032
33 # Power Operation Elements needed for power on
Sivas SRR40c1f042018-01-05 11:00:02 -060034 header_wrapper= "3"
35 header_wrapper_elt= "3"
Sivas SRRc2446252017-04-12 11:46:15 -050036
37 # Power Operation Elements needed for power operations confirmation
Sivas SRR40c1f042018-01-05 11:00:02 -060038 power_operations= "3"
Sivas SRRc2446252017-04-12 11:46:15 -050039 warm_boot= "3"
40 cold_boot= "4"
41 shut_down= "5"
42 power_off= "6"
43 confirm_msg= "2"
44 yes= "1"