Let's say I'm on eBay and I search for golf balls. I want to test the "sort by: quantity" button's function on the results page.
Before clicking the "sort by: quantity" button, the order is random:
Seller A has 9 balls for sale
Seller B has 70 balls for sale
Seller C has 32 balls for sale
After clicking the "sort by: quantity" button, the order should look like the following:
Seller B has 70 balls for sale
Seller C has 32 balls for sale
Seller A has 9 balls for sale
What are some test cases for such a function?
I was asked this during an interview with a search team of a company.
Typically I would test out:
And so forth.