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

发表于:2012-01-13来源:未知作者:娃娃点击数: 标签:自动化测试
public class OutputterContainer implements IOutputter { 8 9 private Vector outputterVector = new Vector (); 10 @Override 11 public boolean EndSuite() { 12 Iterator it = outputterVector.iterator(); 13
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)
{ 28
// the similar with the first function 29
return false; 30
} 31
32
public void Add(IOutputter outputter)
{ 33
outputterVector.add(outputter); 34

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