How to test a "sort by: quantity" function on a website - testcase

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:
What happens if 0 items show up?
What happens if 1 item shows up?
What happens if many items show up? [expected case]
What happens if there are duplicate (or multiple duplicates) of the same number of items?
What happens if one item doesn't list quantity?
What happens if no items list quantity?
What happens if a number is part of the product name?
And so forth.

Related

Can you have a google sheets dropdown list that is filtered by prior selections

I am trying to do some team management for my sons sports community.
The challenge is we have a list of 60 players, and need to split them into 4 teams.
What I would like to do is have 1 column for each team, and in the players area have a dropdown list of the available players. The catch is I would like the player removed from the dropdown list once they have been assigned to a team.
I have succesfully made the dropdown list for each team, but can't seem to make the list change as players are added. Can anyone help?
Here is a solution https://docs.google.com/spreadsheets/d/1-MWiKINX_mSJXRenmscofYRG5gJAWuyXfIRIYT5BGdc/edit?usp=sharing
Make the matrix with 4 columns (4 teams)
Make the list of attendees
Check if the attendee is already assigned by (cell B1 of attendees)
={"Status";arrayformula(IF(COUNTIF(teams,A2:A)>0,"nok","ok"))}
Then filtered the list as following (cell C2)
=filter(A2:A,B2:B="ok")
This will done your validation list. By choosing each participant, the list will reduce and you will see a top-right red corner, that means that this participant is well now out of the list of validation.

Dynamics CRM 2013 updates to Price List Items are not reflected in the General view

I am using Microsoft Dynamics CRM 2013, and have a quandry. I have a product that is sold in 3 currencies (and 2 different unit groups, but the unit groups should not affect this), and I wish to update the prices for those three currencies. So, the simple way to do this should be through the Sales -> Products screen, and then in the Price List Items menu I should update the prices for the three different currencies. This is correct so far, right? However, when I do this, the List Price box in the Product's general screen will retain the earlier price for the item.
For example, for item Toy Car, the price in the past was $99.99 (I do not remember the exact source for the price). I update that price in the Price List Items screen so that the "Amount (Base)" column for the USD price is $10, the CAD price is 20, and the EUR price is 30. USD is the default currency. I expect the List Price on the general screen to show $10 after I make these updates. But it doesn't, it keeps the $99.99 instead.
What am I doing wrong? Does that List Price pull from somewhere else?
The List Price attribute on the product form has no relationship with the Price List Items.
You need some kind of custom automation to bring over the value (I'd say a plugin on create/update of Price List Items, just to name one option).

Apply custom option price once regardless of quantity

I need to sell business cards in Magento. If the customer wants to use metallic ink (gold or silver) then I need to add $60 to the order, regardless of the quantity. I currently have Metallic Ink as a custom option, but Magento applies the $60 to each item. So if they order 100 business cards (which costs $25) there's an extra $1,500 added, making the total cost $1,525. The cost should be $85. How can I do this?
I've found Magento extensions that can do this, but one is $135 and one is $165. That seems a bit ridiculous to accomplish something that should be so simple for an online store.
Why don't you create an option for 100 cards, 250 cards, 500 cards etc and not allow the user to input the product qty but select it just like the ink option. This would stop people from ordering random number of cards like 37! Your problem is that magento takes the inputted qty and multiplies it by price (including options). If you remove the qty field (i.e so it always 1 when they click add to basket) and make the qty an option it allows for control over order volumes, discounts and surcharges like you are trying to achieve for free. Otherwise the quoted module prices seem very reasonable...
I would;
Create custom option for qty of cards with fixed prices for each
band.
Custom option for ink type with fixed price.
Remove or hide the
qty field on product page and cart.

Order getting successful, when both person placing order at the same time on a single quantity item (same product, quantity =1)

I was trying different scenarios about the payment. Since we are a small boutique, sometimes we have only one item in stock. So I was trying a scenario where I added a product (with only one quantity in the inventory) to my cart and clicked on place order and then was filling my credit card information at the same time another person was adding the same product to his cart and clicked on place order after me. But because I was filling the information and he was paying by "cash on delivery". What happened is that we both got the confirmation email and the payment was successful. So how this is possible? When I checked the inventory it was (-1) and not (0). I tried again but this time , I filled the credit card information and clicked "pay now" and then the other person clicked "place order". In this case the cash on delivery one didn't get the order. which is what it should have happened in the first time.

Magento - products pr page issue

Im setting up a Magento community installation, and im having a weird issue with the settings for showing a particular amounts of products pr page.
Even though i have over 50 products in a category, the first page in the category displays "show 1-9 of total 9 products". So on the first page, the system thinks i have 9 products in total. At the same time, it still show pagination for 4 pages, and if i select "show all products", its show all 50.
So, the problem is that it always think the total amount of products is what the value in "products pr page is set to".
I want it to say: showing 1-9 of total 50 products, not "showing 1-9 of total 9, which really is 50 if you just click next":/
Hope i made myself understood.. Thanks for feedback on this..
Try running a reindex on Category Products.
(admin->system->index management)

Resources