How to test a search bar?
This project aims to open up ideas to test search bars with adequate coverage, and using Google as an example
A) Numbers
- Positive decimals (one-digit, multi-digit)
- Negative decimals (one-digit, multi-digit)
- Floats
- Zero
B) Letters
- Single Characters
- Words (small cases, Capital case, UPPER CASE)
- Words with typos (missing letter, extra letter)
- Word of a different language
- Sentence (< 32 search limit)
- Paragraph (= 32 search limit)
- Paragraph (> 32 search limit)
- Gibberish
- Special characters in URL query (ex: q, ?, etc.)
- Special word operator in advanced search
- Special character operator in advanced search
- URL
- Null
- A search in its URL encoding
- Python
- Python 3.8.3
- Selenium 3.141.0
- Requests 2.27.1
- Webdriver (Chromedriver in my case, and the version depends on the browser version)
pip install -r requirements.txt
- Stackoverflow -> for small code tips and sharing a few testcases
- Browserstack -> how to use Selenium with Python
- PEP8 and RealPython -> Python style conventions
- Github -> which I used to find good readme templates
- Wikipedia -> Google advanced search using operators
- Google guide -> helped with knowing more about the search limit and other useful tips
- Install any Webdriver: https://www.browserstack.com/guide/python-selenium-to-run-web-automation-test#toc0
Give a ⭐️ if you like this project!
This project is MIT licensed.