Debian Codegraph @

rhino/testsrc/tests/src/com/netscape/javascript/qa/drivers/TestFile.java

raw symbols SCIP
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 file found in a test suite directory, the TestDriver creates a
13 * TestFile object. This object has no methods; it only stores information
14 * about the program in the file it represents. TestFile fields are populated
15 * by the TestEnvironment when the program in the TestFile is executed.
16 *
17 * @see com.netscape.javascript.qa.drivers.TestDriver
18 * @see com.netscape.javascript.qa.drivers.TestEnvironment
19 *
20 * @author [email protected]
21 */
22
23 public class TestFile extends File {
24 public String description;
25 public String name;
26 public String filePath;
27 public boolean passed;
28 public boolean completed;
29 public String startTime;
30 public String endTime;
31 public String reason;
32 public String program;
33 public int totalCases;
34 public int casesPassed;
35 public int casesFailed;
36 public Vector caseVector;
37 public String exception;
38 public String bugnumber;
39
40 /**
41 * Create a new TestFile.
42 *
43 * @param name name of this test file
44 * @param filePath full path to this file
45 */
46
47 public TestFile( String name, String filePath ) {
48 super( filePath );
49
50 this.name = name;
51 this.filePath = filePath;
52 this.passed = true;
53 this.completed = false;
54 this.startTime = "00:00:00";
55 this.endTime = "00:00:00";
56 this.reason = "";
57 this.program = "";
58 this.totalCases = 0;
59 this.casesPassed = 0;
60 this.casesFailed = 0;
61 this.caseVector = new Vector();
62 this.exception = "";
63 this.bugnumber = "";
64 }
65 }