KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jmeter > save > SaveServiceConstants


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

18
19 package org.apache.jmeter.save;
20
21
22 /**
23  * This interface defines a number of constants used in the properties file
24  * that is used to indicate which portions of the results will be
25  * stored in the results files. It also contains constants representing XML
26  * tags, elements, etc.
27  *
28  *
29  *@author <a HREF="mailto:kcassell&#X0040;apache.org">Keith Cassell</a>
30  *@version $Revision: 1.7 $ $Date: 2004/02/13 02:40:54 $
31 */

32
33 public interface SaveServiceConstants
34 {
35     // ---------------------------------------------------------------------
36
// PROPERTY FILE CONSTANTS
37
// ---------------------------------------------------------------------
38

39     /** Indicates that the results file should be in XML format. **/
40     public static final String JavaDoc XML = "xml";
41
42     /** Indicates that the results file should be in CSV format. **/
43     public static final String JavaDoc CSV = "csv";
44
45     /** Indicates that the results should be stored in a database. **/
46     public static final String JavaDoc DATABASE = "db";
47
48     /** A properties file indicator for true. **/
49     public static final String JavaDoc TRUE = "true";
50
51     /** A properties file indicator for false. **/
52     public static final String JavaDoc FALSE = "false";
53
54     /** A properties file indicator for milliseconds. **/
55     public static final String JavaDoc MILLISECONDS = "ms";
56
57     /** A properties file indicator for none. **/
58     public static final String JavaDoc NONE = "none";
59
60     /** A properties file indicator for the first of a series. **/
61     public static final String JavaDoc FIRST = "first";
62
63     /** A properties file indicator for all of a series. **/
64     public static final String JavaDoc ALL = "all";
65
66     /** The name of the property indicating which assertion results
67      should be saved. **/

68     public static final String JavaDoc ASSERTION_RESULTS_FAILURE_MESSAGE_PROP
69             = "jmeter.save.saveservice.assertion_results_failure_message";
70
71     /** The name of the property indicating which assertion results
72      should be saved. **/

73     public static final String JavaDoc ASSERTION_RESULTS_PROP
74             = "jmeter.save.saveservice.assertion_results";
75
76     /** The name of the property indicating which delimiter should be
77         used when saving in a delimited values format. **/

78     public static final String JavaDoc DEFAULT_DELIMITER_PROP
79             = "jmeter.save.saveservice.default_delimiter";
80
81     /** The name of the property indicating which format should be
82         used when saving the results, e.g., xml or csv. **/

83     public static final String JavaDoc OUTPUT_FORMAT_PROP
84             = "jmeter.save.saveservice.output_format";
85
86     /** The name of the property indicating whether field names should be
87         printed to a delimited file. **/

88     public static final String JavaDoc PRINT_FIELD_NAMES_PROP
89             = "jmeter.save.saveservice.print_field_names";
90
91     /** Indicates that results should be saved as XML. **/
92     public static final int SAVE_AS_XML = 0;
93
94     /** Indicates that results should be saved as comma-separated-values. **/
95     public static final int SAVE_AS_CSV = SAVE_AS_XML + 1;
96
97
98     /** The name of the property indicating whether the data type
99      should be saved. **/

100     public static final String JavaDoc SAVE_DATA_TYPE_PROP
101             = "jmeter.save.saveservice.data_type";
102
103     /** The name of the property indicating whether the label
104      should be saved. **/

105     public static final String JavaDoc SAVE_LABEL_PROP
106             = "jmeter.save.saveservice.label";
107
108     /** The name of the property indicating whether the response code
109      should be saved. **/

110     public static final String JavaDoc SAVE_RESPONSE_CODE_PROP
111             = "jmeter.save.saveservice.response_code";
112
113     /** The name of the property indicating whether the response data
114      should be saved. **/

115     public static final String JavaDoc SAVE_RESPONSE_DATA_PROP
116             = "jmeter.save.saveservice.response_data";
117
118     /** The name of the property indicating whether the response message
119      should be saved. **/

120     public static final String JavaDoc SAVE_RESPONSE_MESSAGE_PROP
121             = "jmeter.save.saveservice.response_message";
122
123     /** The name of the property indicating whether the success indicator
124      should be saved. **/

125     public static final String JavaDoc SAVE_SUCCESSFUL_PROP
126             = "jmeter.save.saveservice.successful";
127
128     /** The name of the property indicating whether the thread name
129      should be saved. **/

130     public static final String JavaDoc SAVE_THREAD_NAME_PROP
131             = "jmeter.save.saveservice.thread_name";
132
133     /** The name of the property indicating whether the time
134      should be saved. **/

135     public static final String JavaDoc SAVE_TIME_PROP
136             = "jmeter.save.saveservice.time";
137
138     /** The name of the property indicating whether the time stamp
139      should be saved. **/

140     public static final String JavaDoc TIME_STAMP_FORMAT_PROP
141             = "jmeter.save.saveservice.timestamp_format";
142
143     // ---------------------------------------------------------------------
144
// XML RESULT FILE CONSTANTS AND FIELD NAME CONSTANTS
145
// ---------------------------------------------------------------------
146

147     public final static String JavaDoc PRESERVE = "preserve";
148     public final static String JavaDoc XML_SPACE = "xml:space";
149     public static final String JavaDoc ASSERTION_RESULT_TAG_NAME = "assertionResult";
150     public static final String JavaDoc BINARY = "binary";
151     public static final String JavaDoc DATA_TYPE = "dataType";
152     public static final String JavaDoc ERROR = "error";
153     public static final String JavaDoc FAILURE = "failure";
154     public static final String JavaDoc FAILURE_MESSAGE = "failureMessage";
155     public static final String JavaDoc LABEL = "label";
156     public static final String JavaDoc RESPONSE_CODE = "responseCode";
157     public static final String JavaDoc RESPONSE_MESSAGE = "responseMessage";
158     public static final String JavaDoc SAMPLE_RESULT_TAG_NAME = "sampleResult";
159     public static final String JavaDoc SUCCESSFUL = "success";
160     public static final String JavaDoc THREAD_NAME = "threadName";
161     public static final String JavaDoc TIME = "time";
162     public static final String JavaDoc TIME_STAMP = "timeStamp";
163
164 }
165
Popular Tags