自动测试:变化多端的输出(4)

发表于:2011-10-12来源:未知作者:领测软件测试网采编点击数: 标签:自动测试
import java.util.Iterator; 4 5 /**//*A Composite Outputter*/ 6 7 public class OutputterContainer implements IOutputter { 8 9 private Vector outputterVector = new Vector (); 10 @Override 11 public bool

import java.util.Iterator; 4

5

/**//*A Composite Outputter*/ 6

7

public class OutputterContainer implements IOutputter

{ 8

9

private Vector outputterVector = new Vector(); 10

@Override 11

public boolean EndSuite()

{ 12

Iterator it = outputterVector.iterator(); 13

while(it.hasNext())

{ 14

boolean rs = it.next().EndSuite(); 15

if (rs == false) return false; 16

} 17

return true; 18

} 19

20

@Override 21

public boolean StartSuite(String suiteName)

{ 22

// the similar with the first function 23

return false; 24

} 25

26

@Override 27

public boolean TestResult(String result)

原文转自:http://www.ltesting.net