| 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 | /** |
| 9 | * Equivalent to the JavaScript TestCase object as described in |
| 10 | * TestDriver.java. For each test case in a TestFile, a TestCase object is |
| 11 | * created and added to the TestFile's caseVector. |
| 12 | * |
| 13 | * @see com.netscape.javascript.qa.drivers.TestDriver |
| 14 | * @see com.netscape.javascript.qa.drivers.TestEnvironment |
| 15 | * |
| 16 | * @author [email protected] |
| 17 | */ |
| 18 | |
| 19 | public class TestCase { |
| 20 | public String passed; |
| 21 | public String name; |
| 22 | public String description; |
| 23 | public String expect; |
| 24 | public String actual; |
| 25 | public String reason; |
| 26 | |
| 27 | /** |
| 28 | * Create a new TestCase object. |
| 29 | * |
| 30 | * @param passed "true" if the test case passed, otherwise "false" |
| 31 | * @param name label associated with the test case |
| 32 | * @param description string showing what got tested, usually JavaScript |
| 33 | * code |
| 34 | * @param expect string representation of the expected result |
| 35 | * @param actual string representation of the actual result |
| 36 | * @param reason reason for test failure |
| 37 | * |
| 38 | * @see com.netscape.javascript.qa.drivers.TestDriver |
| 39 | * @see com.netscape.javascript.qa.drivers.TestEnvironment |
| 40 | * |
| 41 | */ |
| 42 | public TestCase( String passed, String name, String description, |
| 43 | String expect, String actual, String reason ) { |
| 44 | |
| 45 | this.passed = passed; |
| 46 | this.name = name; |
| 47 | this.description = description; |
| 48 | this.expect = expect; |
| 49 | this.actual = actual; |
| 50 | this.reason = reason; |
| 51 | } |
| 52 | } |