1886da342Sopenharmony_ci/* 2886da342Sopenharmony_ci * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 3886da342Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4886da342Sopenharmony_ci * you may not use this file except in compliance with the License. 5886da342Sopenharmony_ci * You may obtain a copy of the License at 6886da342Sopenharmony_ci * 7886da342Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8886da342Sopenharmony_ci * 9886da342Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10886da342Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11886da342Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12886da342Sopenharmony_ci * See the License for the specific language governing permissions and 13886da342Sopenharmony_ci * limitations under the License. 14886da342Sopenharmony_ci */ 15886da342Sopenharmony_ci 16886da342Sopenharmony_ci/** 17886da342Sopenharmony_ci * define the testcase type : TestType, Size , Level 18886da342Sopenharmony_ci */ 19886da342Sopenharmony_ciexport const TAG = '[Hypium]'; 20886da342Sopenharmony_ci 21886da342Sopenharmony_ciexport const DEFAULT = 0B0000; 22886da342Sopenharmony_ci 23886da342Sopenharmony_ciexport class PrintTag { 24886da342Sopenharmony_ci static OHOS_REPORT_WORKER_STATUS = 'OHOS_REPORT_WORKER_STATUS'; 25886da342Sopenharmony_ci static OHOS_REPORT_ALL_RESULT = 'OHOS_REPORT_ALL_RESULT'; 26886da342Sopenharmony_ci static OHOS_REPORT_ALL_CODE = 'OHOS_REPORT_ALL_CODE'; 27886da342Sopenharmony_ci static OHOS_REPORT_ALL_STATUS = 'OHOS_REPORT_ALL_STATUS'; 28886da342Sopenharmony_ci static OHOS_REPORT_RESULT = 'OHOS_REPORT_RESULT'; 29886da342Sopenharmony_ci static OHOS_REPORT_CODE = 'OHOS_REPORT_CODE'; 30886da342Sopenharmony_ci static OHOS_REPORT_STATUS = 'OHOS_REPORT_STATUS'; 31886da342Sopenharmony_ci static OHOS_REPORT_SUM = 'OHOS_REPORT_SUM'; 32886da342Sopenharmony_ci static OHOS_REPORT_STATUS_CODE = 'OHOS_REPORT_STATUS_CODE'; 33886da342Sopenharmony_ci}; 34886da342Sopenharmony_ci 35886da342Sopenharmony_ciexport class TestType { 36886da342Sopenharmony_ci static FUNCTION = 0B1; 37886da342Sopenharmony_ci static PERFORMANCE = 0B1 << 1; 38886da342Sopenharmony_ci static POWER = 0B1 << 2; 39886da342Sopenharmony_ci static RELIABILITY = 0B1 << 3; 40886da342Sopenharmony_ci static SECURITY = 0B1 << 4; 41886da342Sopenharmony_ci static GLOBAL = 0B1 << 5; 42886da342Sopenharmony_ci static COMPATIBILITY = 0B1 << 6; 43886da342Sopenharmony_ci static USER = 0B1 << 7; 44886da342Sopenharmony_ci static STANDARD = 0B1 << 8; 45886da342Sopenharmony_ci static SAFETY = 0B1 << 9; 46886da342Sopenharmony_ci static RESILIENCE = 0B1 << 10; 47886da342Sopenharmony_ci}; 48886da342Sopenharmony_ci 49886da342Sopenharmony_ciexport class Size { 50886da342Sopenharmony_ci static SMALLTEST = 0B1 << 16; 51886da342Sopenharmony_ci static MEDIUMTEST = 0B1 << 17; 52886da342Sopenharmony_ci static LARGETEST = 0B1 << 18; 53886da342Sopenharmony_ci}; 54886da342Sopenharmony_ci 55886da342Sopenharmony_ciexport class Level { 56886da342Sopenharmony_ci static LEVEL0 = 0B1 << 24; 57886da342Sopenharmony_ci static LEVEL1 = 0B1 << 25; 58886da342Sopenharmony_ci static LEVEL2 = 0B1 << 26; 59886da342Sopenharmony_ci static LEVEL3 = 0B1 << 27; 60886da342Sopenharmony_ci static LEVEL4 = 0B1 << 28; 61886da342Sopenharmony_ci}; 62886da342Sopenharmony_ci 63886da342Sopenharmony_ciexport const TESTTYPE = { 64886da342Sopenharmony_ci 'function': 1, 65886da342Sopenharmony_ci 'performance': 1 << 1, 66886da342Sopenharmony_ci 'power': 1 << 2, 67886da342Sopenharmony_ci 'reliability': 1 << 3, 68886da342Sopenharmony_ci 'security': 1 << 4, 69886da342Sopenharmony_ci 'global': 1 << 5, 70886da342Sopenharmony_ci 'compatibility': 1 << 6, 71886da342Sopenharmony_ci 'user': 1 << 7, 72886da342Sopenharmony_ci 'standard': 1 << 8, 73886da342Sopenharmony_ci 'safety': 1 << 9, 74886da342Sopenharmony_ci 'resilience': 1 << 10, 75886da342Sopenharmony_ci}; 76886da342Sopenharmony_ci 77886da342Sopenharmony_ciexport const LEVEL = { 78886da342Sopenharmony_ci '0': 1 << 24, 79886da342Sopenharmony_ci '1': 1 << 25, 80886da342Sopenharmony_ci '2': 1 << 26, 81886da342Sopenharmony_ci '3': 1 << 27, 82886da342Sopenharmony_ci '4': 1 << 28, 83886da342Sopenharmony_ci}; 84886da342Sopenharmony_ci 85886da342Sopenharmony_ciexport const SIZE = { 86886da342Sopenharmony_ci 'small': 1 << 16, 87886da342Sopenharmony_ci 'medium': 1 << 17, 88886da342Sopenharmony_ci 'large': 1 << 18, 89886da342Sopenharmony_ci}; 90886da342Sopenharmony_ci 91886da342Sopenharmony_ciexport const KEYSET = [ 92886da342Sopenharmony_ci '-s class', '-s notClass', '-s suite', '-s itName', 93886da342Sopenharmony_ci '-s level', '-s testType', '-s size', '-s timeout', 94886da342Sopenharmony_ci '-s dryRun', '-s random', '-s breakOnError', '-s stress', 95886da342Sopenharmony_ci '-s coverage', '-s skipMessage', '-s runSkipped', 96886da342Sopenharmony_ci 'class', 'notClass', 'suite', 'itName', 97886da342Sopenharmony_ci 'level', 'testType', 'size', 'timeout', 'dryRun', 'random', 98886da342Sopenharmony_ci 'breakOnError', 'stress', 'coverage', 'skipMessage', 'runSkipped' 99886da342Sopenharmony_ci]; 100