• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1  /*
2   * Copyright (C) 2017 The Android Open Source Project
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  
17  package com.android.junitxml;
18  
19  /**
20   * It is an adaptation of the schema used by Ant,
21   * org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.
22   */
23  public interface XmlConstants {
24  
25      String ELEMENT_TESTSUITE = "testsuite";
26      String ELEMENT_TESTCASE = "testcase";
27      String ELEMENT_PROPERTIES = "properties";
28      String ELEMENT_PROPERTY = "property";
29      String ELEMENT_FAILURE = "failure";
30      String ELEMENT_SKIPPED = "skipped";
31      String ELEMENT_ERROR = "error";
32  
33      String ATTR_TESTSUITE_NAME = "name";
34      String ATTR_TESTSUITE_TESTS = "tests";
35      String ATTR_TESTSUITE_FAILURES = "failures";
36      String ATTR_TESTSUITE_ERRORS = "errors";
37      String ATTR_TESTSUITE_TIME = "time";
38      String ATTR_TESTSUITE_SKIPPED = "skipped";
39      String ATTR_TESTSUITE_HOSTNAME = "hostname";
40  
41      String ATTR_TESTCASE_NAME = "name";
42      String ATTR_TESTCASE_CLASSNAME = "classname";
43      String ATTR_TESTCASE_TIME = "time";
44  
45      String ATTR_PROPERTY_NAME = "name";
46      String ATTR_PROPERTY_VALUE = "value";
47  
48      String ATTR_FAILURE_MESSAGE = "message";
49      String ATTR_FAILURE_TYPE = "type";
50  
51      String ATTR_SKIPPED_MESSAGE = "message";
52  }
53  
54