Skip to content

Test any "Search" bar (Google, Bing, Yahoo, etc.) with test cases covering all important flows ⚡

License

Notifications You must be signed in to change notification settings

Omar-Abdel-Wahab/Search-Bar-Test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Search-Bar-Test

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

Used Test Scenarios

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

Built With

  • Python

Prerequisites

  • 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)

Installing dependencies

pip install -r requirements.txt

🤝 Resources

  • 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

Useful links

Show your support

Give a ⭐️ if you like this project!

📝 License

This project is MIT licensed.

About

Test any "Search" bar (Google, Bing, Yahoo, etc.) with test cases covering all important flows ⚡

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages