1/* 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/** 17 * define the testcase type : TestType, Size , Level 18 */ 19export const DEFAULT = 0B0000; 20 21export class TestType { 22 static FUNCTION = 0B1; 23 static PERFORMANCE = 0B1 << 1; 24 static POWER = 0B1 << 2; 25 static RELIABILITY = 0B1 << 3; 26 static SECURITY = 0B1 << 4; 27 static GLOBAL = 0B1 << 5; 28 static COMPATIBILITY = 0B1 << 6; 29 static USER = 0B1 << 7; 30 static STANDARD = 0B1 << 8; 31 static SAFETY = 0B1 << 9; 32 static RESILIENCE = 0B1 << 10; 33} 34 35export class Size { 36 static SMALLTEST = 0B1 << 16; 37 static MEDIUMTEST = 0B1 << 17; 38 static LARGETEST = 0B1 << 18; 39} 40 41export class Level { 42 static LEVEL0 = 0B1 << 24; 43 static LEVEL1 = 0B1 << 25; 44 static LEVEL2 = 0B1 << 26; 45 static LEVEL3 = 0B1 << 27; 46 static LEVEL4 = 0B1 << 28; 47} 48