T tests, and related nonparametric tests compare two sets of measurements (data expressed using an interval or ratio scale). If you have three or more groups, use one-way ANOVA (and related nonparametric tests) instead. Different tests are used to compare two proportions, or two survival curves.