Applying the ant colony algorithm to select cooperative partners for virtual enterprise doesn't need any artificial intervention. On the contrary, it can find the best scheme which satisfy the constraints intelligently through the interaction of indicators. In this paper, social reputation of companies is considered as a implicit index, which conforms to requirements of contemporary business. At the same time, this paper put forward an ant colony algorithm with test points to make each task requirement to be free to choose one or more companies to complete the task. In this way, the optimal proportion of distribution can be achieved, and the calculation process of the algorithm can be simplified as well.