on 3f4cc21 help sign in
searx/tests/robot/test_basic.robot
157 lines 5.8 kB history raw
1*** Settings ***
2Library Selenium2Library timeout=10 implicit_wait=0.5
3Test Setup Open Browser http://localhost:11111/
4Test Teardown Close All Browsers
7*** Test Cases ***
8Front page
9 Page Should Contain about
10 Page Should Contain preferences
12404 page
13 Go To http://localhost:11111/no-such-page
14 Page Should Contain Page not found
15 Page Should Contain Go to search page
17About page
18 Click Element link=about
19 Page Should Contain Why use searx?
20 Page Should Contain Element link=search engines
22Preferences page
23 Click Element link=preferences
24 Page Should Contain Preferences
25 Page Should Contain Default categories
26 Page Should Contain Currently used search engines
27 Page Should Contain dummy_dummy
28 Page Should Contain general_dummy
30Switch category
31 Go To http://localhost:11111/preferences
32 Page Should Contain Checkbox category_general
33 Page Should Contain Checkbox category_dummy
34 Click Element xpath=//*[.="general"]
35 Click Element xpath=//*[.="dummy"]
36 Submit Form id=search_form
37 Location Should Be http://localhost:11111/
38 Checkbox Should Not Be Selected category_general
39 Checkbox Should Be Selected category_dummy
41Change language
42 Page Should Contain about
43 Page Should Contain preferences
44 Go To http://localhost:11111/preferences
45 Select From List locale hu
46 Submit Form id=search_form
47 Location Should Be http://localhost:11111/
48 Page Should Contain rólunk
49 Page Should Contain beállítások
51Change method
52 Page Should Contain about
53 Page Should Contain preferences
54 Go To http://localhost:11111/preferences
55 Select From List method GET
56 Submit Form id=search_form
57 Location Should Be http://localhost:11111/
58 Go To http://localhost:11111/preferences
59 List Selection Should Be method GET
60 Select From List method POST
61 Submit Form id=search_form
62 Location Should Be http://localhost:11111/
63 Go To http://localhost:11111/preferences
64 List Selection Should Be method POST
66Change theme
67 Page Should Contain about
68 Page Should Contain preferences
69 Go To http://localhost:11111/preferences
70 List Selection Should Be theme default
71 Select From List theme oscar
72 Submit Form id=search_form
73 Location Should Be http://localhost:11111/
74 Go To http://localhost:11111/preferences
75 List Selection Should Be theme oscar
77Change safesearch
78 Page Should Contain about
79 Page Should Contain preferences
80 Go To http://localhost:11111/preferences
81 List Selection Should Be safesearch None
82 Select From List safesearch Strict
83 Submit Form id=search_form
84 Location Should Be http://localhost:11111/
85 Go To http://localhost:11111/preferences
86 List Selection Should Be safesearch Strict
88Change image proxy
89 Page Should Contain about
90 Page Should Contain preferences
91 Go To http://localhost:11111/preferences
92 List Selection Should Be image_proxy Disabled
93 Select From List image_proxy Enabled
94 Submit Form id=search_form
95 Location Should Be http://localhost:11111/
96 Go To http://localhost:11111/preferences
97 List Selection Should Be image_proxy Enabled
99Change search language
100 Page Should Contain about
101 Page Should Contain preferences
102 Go To http://localhost:11111/preferences
103 List Selection Should Be language Automatic
104 Select From List language Turkish (Turkey) - tr_TR
105 Submit Form id=search_form
106 Location Should Be http://localhost:11111/
107 Go To http://localhost:11111/preferences
108 List Selection Should Be language Turkish (Turkey) - tr_TR
110Change autocomplete
111 Page Should Contain about
112 Page Should Contain preferences
113 Go To http://localhost:11111/preferences
114 List Selection Should Be autocomplete -
115 Select From List autocomplete google
116 Submit Form id=search_form
117 Location Should Be http://localhost:11111/
118 Go To http://localhost:11111/preferences
119 List Selection Should Be autocomplete google
121Change allowed/disabled engines
122 Page Should Contain about
123 Page Should Contain preferences
124 Go To http://localhost:11111/preferences
125 Page Should Contain Engine name
126 Element Should Contain xpath=//label[@class="deny"][@for='engine_dummy_dummy_dummy'] Block
127 Element Should Contain xpath=//label[@class="deny"][@for='engine_general_general_dummy'] Block
128 Click Element xpath=//label[@class="deny"][@for='engine_general_general_dummy']
129 Submit Form id=search_form
130 Location Should Be http://localhost:11111/
131 Page Should Contain about
132 Page Should Contain preferences
133 Go To http://localhost:11111/preferences
134 Page Should Contain Engine name
135 Element Should Contain xpath=//label[@class="deny"][@for='engine_dummy_dummy_dummy'] Block
136 Element Should Contain xpath=//label[@class="deny"][@for='engine_general_general_dummy'] \
138Block a plugin
139 Page Should Contain about
140 Page Should Contain preferences
141 Go To http://localhost:11111/preferences
142 List Selection Should Be theme default
143 Select From List theme oscar
144 Submit Form id=search_form
145 Location Should Be http://localhost:11111/
146 Go To http://localhost:11111/preferences
147 List Selection Should Be theme oscar
148 Page Should Contain Plugins
149 Click Link Plugins
150 Checkbox Should Not Be Selected id=plugin_HTTPS_rewrite
151 Click Element xpath=//label[@for='plugin_HTTPS_rewrite']
152 Submit Form id=search_form
153 Location Should Be http://localhost:11111/
154 Go To http://localhost:11111/preferences
155 Page Should Contain Plugins
156 Click Link Plugins
157 Checkbox Should Be Selected id=plugin_HTTPS_rewrite