test_basic.robot 5.5KB

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