Believing that all members of a certain group have the same traits is called: Stereotype
Stereotype is basic perception that people have toward a certain race groups or ethnicity. Stereotype could both has positive and negative impacts towards the experience that those race/ethnicity groups felt within the society