From the decision-theoretic viewpoint, using a weighted loss we compare the risks of testing procedures in the location and scale parameter cases. We also get numerically the minimax solution of Bayes testing procedures w. r. t. a parameter of the prior distribution, under the weighted loss.