Based on the test for reliability appraisal, the hierarchical Bayesian method is used to decide the prior distribution of the reliability indices, so that a new Beyesian sampling scheme is got for success or failure mould product in the acceptance test.