All files / src/sdk constants.ts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 1011x 1x 1x 1x 1x     1x 1x 1x 1x 1x 1x 1x 1x     1x 1x 1x 1x 1x 1x 1x 1x 1x     1x 1x 1x     1x                                                     1x               1x                         1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x     1x       1x    
export enum PRIORITY_ENUM {
    P0 = 0,
    P1 = 1,
    P2 = 2,
    P3 = 3,
  }
  
  export enum EXECUTION_TYPE_ENUM {
    Manual = 0,
    Automated = 1,
    Automatable = 2,
    NotAutomatable = 3,
    ReadyForAutomation = 4,
    AutomationExpired = 5,
    AutomationSuspended = 6,
  }
  
  export enum EXECUTION_STATUS_ENUM {
    Passed = 'p',
    Failed = 'f',
    Blocked = 'b',
    Skipped = 's',
    NotApplicable = 'na',
    Warning = 'w',
    Crashed = 'c',
    NotRun = 'n',
  }
  
  export enum VERSION_ENUM {
    Active = 'active',
    Last = 'last',
  }
  
  export const PREDEFINED_PROPERTY_MAP = {
    project: 'project_id',
    test_plan: 'test_plan_id',
    case_id: 'external_id',
    case_name: 'case_name',
    suite: 'suite_id',
    suite_name: 'suite_name',
    summary: 'summary',
    preconditions: 'preconditions',
    test_step: 'step',
    expected_result: 'expected_result',
    text: 'text',
    priority: 'priority',
    execution_type: 'execution_type',
    last_execution_status: 'last_status',
    execution_status: 'status',
    tested_by: 'tester_id',
    version: 'version',
    version_number: 'number',
    created_by: 'created_by_id',
    date_created: 'date_created',
    updated_by: 'last_updated_by_id',
    last_updated: 'last_updated',
    document_id: 'document_id',
    run: 'build_id',
  };
  
  export const PREDEFINED_VALUE_MAP = {
    priority: PRIORITY_ENUM,
    execution_type: EXECUTION_TYPE_ENUM,
    last_execution_status: EXECUTION_STATUS_ENUM,
    execution_status: EXECUTION_STATUS_ENUM,
    version: VERSION_ENUM,
  };
  
  export const OPERATOR_MAP = {
    '=': 'eq',
    in: 'in',
    not: 'not',
    like: 'like',
    '<': 'lt',
    '<=': 'lte',
    '>': 'gt',
    '>=': 'gte',
  };
  
  export type Scope = 'TEST_SUITES' | 'EXECUTIONS';
  
  export enum CacheKey {
    GLOBAL_DATA = 'GLOBAL_DATA',
    PROJECTS = 'PROJECTS',
    PROJECT = 'PROJECT',
    PROJECT_TREE = 'PROJECT_TREE',
    SECTION = 'SECTION',
    SUBTYPE = 'SUBTYPE',
    KEYWORDS = 'KEYWORDS',
    TEST_PLAN = 'TEST_PLAN',
    SUITES = 'SUITES',
    SUITE_TREE = 'SUITE_TREE',
  }
  
  export enum KeywordsMap{
 
  }
 
  export enum SubtypeMap{
    
  }