KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > netui > tools > testrecorder > shared > Constants


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  * $Header:$
17  */

18
19 package org.apache.beehive.netui.tools.testrecorder.shared;
20
21 /**
22  * User: ozzy
23  * Date: Mar 20, 2003
24  * Time: 4:00:54 PM
25  */

26 public class Constants {
27
28     // files in the classpath obtained via the classloader
29
public static String JavaDoc CONFIG_FILE = "testRecorder-config.xml";
30     public static String JavaDoc TESTS_FILE = "testRecorder-tests.xml";
31     public static String JavaDoc WEBAPPS_FILE = "testRecorder-webapp.xml";
32     public static String JavaDoc SERVER_FILE = "testRecorder-server.xml";
33
34     public static String JavaDoc FILE_TYPE_CONFIG = "config";
35     public static String JavaDoc FILE_TYPE_WEBAPP = "webapp";
36     public static String JavaDoc FILE_TYPE_TESTS = "tests";
37
38     // playback test number
39
public static final String JavaDoc TEST_NUMBER_HEADER = "testRecorder.playback.testNumber";
40     // playback session id.
41
public static final String JavaDoc TEST_ID_HEADER = "testRecorder.playback.testID";
42     // describes the absolute path to the playback file to be used for the session.
43
// returned as a response header on playback start.
44
public static final String JavaDoc RECORD_FILE_HEADER = "testRecorder.playback.recordFile";
45     // describes the absolute path to the playback results file
46
public static final String JavaDoc RESULTS_FILE_HEADER = "testRecorder.playback.resultsFile";
47     // describes the absolute path to the diff file
48
// NOTE: This may not be set if the file does not exist
49
public static final String JavaDoc RESULTS_DIFF_HEADER = "testRecorder.playback.resultsDiffFile";
50     // request header sent by PlaybackExecutor indicating whether to continue on
51
// failure with subsequent tests or to stop processing tests.
52
public static final String JavaDoc FAIL_MODE_HEADER = "testRecorder.playback.failMode";
53     // response header to indicate the outcome of a playback request.
54
public static final String JavaDoc OUTCOME_HEADER = "testRecorder.playback.outcome";
55     // skip processing through the filter, used as both a parameter and a request header
56
public static final String JavaDoc FILTER_SKIP_PARAM = "testRecorder.filter.skip";
57     // request attribute to mark requests seen by the filter, so forwards are still
58
// considered a single request from a capture stand point
59
public static final String JavaDoc REQUEST_MARKER_ATTRIBUTE = "testRecorder.request.marked";
60     public static final String JavaDoc REQUEST_EXCEPTION_MARKER_ATTRIBUTE = "testRecorder.request.marked.exception";
61     public static final String JavaDoc REQUEST_NEW_EXCEPTION_MARKER_ATTRIBUTE = "testRecorder.request.marked.exception.new";
62     public static final String JavaDoc STATE_STORAGE_KEY = "testRecorder.state.";
63     public static final String JavaDoc BODY_END = "</body>";
64     public static final String JavaDoc BODY_END_CAPS = "</BODY>";
65     public static final String JavaDoc NL = "\n";
66     public static final String JavaDoc EMPTY_STRING = "";
67     // 'cmd' values
68
public static final String JavaDoc START = "Start";
69     public static final String JavaDoc STOP = "Stop";
70     public static final String JavaDoc RED = "red";
71     public static final String JavaDoc GREEN = "green";
72     public static final String JavaDoc RECORD_FILE_PATH = "/testRecorder/tests";
73     public static final String JavaDoc RESULTS_FILE_PATH = "/testRecorder/testResults";
74     public static final String JavaDoc ERROR_PAGE = "/testRecorder/error.jsp";
75     public static final String JavaDoc RECORD_PAGE = "/testRecorder/record.jsp";
76     public static final String JavaDoc PLAYBACK_PAGE = "/testRecorder/playback.jsp";
77     public static final String JavaDoc STATUS_PAGE = "/testRecorder/status.jsp";
78     public static final String JavaDoc TEST_PAGE = "/testRecorder/test.jsp";
79     public static final String JavaDoc XML = ".xml";
80     public static final String JavaDoc DIFF = ".diff";
81     // request attributes
82
public static final String JavaDoc MSG_ATTRIBUTE = "testRecorder.msg";
83     public static final String JavaDoc RECORD_SESSION_ATTRIBUTE = "testRecorder.record.session";
84     public static final String JavaDoc PLAYBACK_SESSION_ATTRIBUTE = "testRecorder.playback.session";
85     // request param
86
public static final String JavaDoc TEST_USER = "testUser";
87     public static final String JavaDoc TEST_NAME = "testName";
88     public static final String JavaDoc DESCRIPTION = "description";
89     public static final String JavaDoc OVERWRITE = "overwrite";
90     public static final String JavaDoc MODE = "mode";
91     public static final String JavaDoc CMD = "cmd";
92     public static final String JavaDoc FILE = "file";
93     // 'mode' values
94
public static final String JavaDoc RECORD = "record";
95     public static final String JavaDoc PLAYBACK = "playback";
96     public static final String JavaDoc XML_MODE = "xml";
97     public static final String JavaDoc ADMIN = "admin";
98     public static final String JavaDoc CLEAN = "clean";
99     public static final String JavaDoc SET_TEST_MODE_FALSE = "setTestModeFalse";
100     public static final String JavaDoc SET_TEST_MODE_TRUE = "setTestModeTrue";
101     public static final String JavaDoc DPY_DIFF = "diff";
102     public static final String JavaDoc DPY_DETAILS = "details";
103     public static final String JavaDoc DPY_LINK = "displayLink";
104     public static final String JavaDoc MODE_TEST = "test";
105     public static final String JavaDoc DISPLAY_REPORT = "displayReport";
106     public static final String JavaDoc DISPLAY_RECORD = "displayRecordFile";
107     public static final String JavaDoc DISPLAY_PLAYBACK = "displayPlaybackFile";
108
109     // outcomes
110
public static final String JavaDoc PASS = "pass";
111     public static final String JavaDoc FAIL = "fail";
112     public static final String JavaDoc ERROR= "ERROR";
113
114 }
115
Popular Tags