| 1 | /* -*- Mode: java; tab-width: 8 -*- |
| 2 | * Copyright (C) 1997, 1998 Netscape Communications Corporation, |
| 3 | * All Rights Reserved. |
| 4 | */ |
| 5 | |
| 6 | package com.netscape.javascript.qa.drivers; |
| 7 | |
| 8 | import java.io.*; |
| 9 | import java.util.*; |
| 10 | |
| 11 | /** |
| 12 | * For each directory that the TestDriver finds, the TestDriver creates a |
| 13 | * TestSuite object. The TestDriver executes the JavaScript tests it finds |
| 14 | * in that directory, and updates the TestSuite object properties, maintaing |
| 15 | * the total number of test cases, and the number of test cases that have |
| 16 | * failed. |
| 17 | * |
| 18 | * @see com.netscape.javascript.qa.drivers.TestDriver |
| 19 | * @see com.netscape.javascript.qa.drivers.TestEnvironment |
| 20 | * |
| 21 | * @author [email protected] |
| 22 | */ |
| 23 | |
| 24 | public class TestSuite extends Vector { |
| 25 | public String name; |
| 26 | public String filePath; |
| 27 | public boolean passed; |
| 28 | public int totalCases; |
| 29 | public int casesPassed; |
| 30 | public int casesFailed; |
| 31 | |
| 32 | /** |
| 33 | * Create a new TestSuite object. |
| 34 | * |
| 35 | * @param name name of the TestSuite |
| 36 | * @param filePath full path to TestSuite directory |
| 37 | */ |
| 38 | |
| 39 | public TestSuite( String name, String filePath ) { |
| 40 | this.name = name; |
| 41 | this.filePath = filePath; |
| 42 | this.passed = true; |
| 43 | this.totalCases = 0; |
| 44 | this.casesPassed = 0; |
| 45 | this.casesFailed = 0; |
| 46 | } |
| 47 | } |