Skip to content

Class: TestCase

Represents a single enumerated instance of Test Case, derived from a given collection of one or more TestAsset instances (the value of the 'test_assets' slot) which define the 'inputs' and 'outputs' of the TestCase, used to probe a particular test condition.

URI: ttm:TestCase

classDiagram class TestCase TestEntity <|-- TestCase TestCase <|-- AcceptanceTestCase TestCase <|-- QuantitativeTestCase TestCase : components TestCase --> ComponentEnum : components TestCase : description TestCase : id TestCase : input_category TestCase : name TestCase : output_category TestCase : preconditions TestCase --> Precondition : preconditions TestCase : qualifiers TestCase --> Qualifier : qualifiers TestCase : query_type TestCase --> QueryTypeEnum : query_type TestCase : tags TestCase : test_assets TestCase --> TestAsset : test_assets TestCase : test_case_input_id TestCase : test_case_objective TestCase --> TestObjectiveEnum : test_case_objective TestCase : test_case_predicate_id TestCase : test_case_predicate_name TestCase : test_case_source TestCase --> TestSourceEnum : test_case_source TestCase : test_env TestCase --> TestEnvEnum : test_env TestCase : test_runner_settings TestCase : trapi_template TestCase --> TrapiTemplateEnum : trapi_template

Inheritance

Slots

Name Cardinality and Range Description Inheritance
query_type 0..1
QueryTypeEnum
Type of TestCase query direct
test_assets 1..*
TestAsset
One or more 'tags' slot values (inherited from TestEntity) should generally b... direct
preconditions 0..*
Precondition
direct
trapi_template 0..1
TrapiTemplateEnum
A template for a query, which can be used to generate a query for a test case direct
test_case_objective 0..1
TestObjectiveEnum
Testing objective behind specified set of test particulars (e direct
test_case_source 0..1
TestSourceEnum
Provenance of a specific set of test assets, cases and/or suites direct
test_case_predicate_name 0..1
String
direct
test_case_predicate_id 0..1
String
direct
test_case_input_id 0..1
Uriorcurie
direct
qualifiers 0..*
Qualifier
Optional qualifiers which constrain to the test asset defined knowledge state... direct
input_category 0..1
ConceptCategory
direct
output_category 0..1
ConceptCategory
direct
components 0..*
ComponentEnum
The component that this test case is intended to run against direct
test_env 0..1
TestEnvEnum
Deployment environment within which the associated TestSuite is run direct
id 1..1
Uriorcurie
A unique identifier for a Test Entity TestEntity
name 0..1
String
A human-readable name for a Test Entity TestEntity
description 0..1
String
A human-readable description for a Test Entity TestEntity
tags 0..*
String
One or more 'tags' slot values (slot inherited from TestEntity) should genera... TestEntity
test_runner_settings 0..*
String
Scalar parameters for the TestRunner processing a given TestEntity TestEntity

Usages

used by used in type used
TestSuite test_cases range TestCase
AcceptanceTestSuite test_cases range TestCase
StandardsComplianceTestSuite test_cases range TestCase
OneHopTestSuite test_cases range TestCase
TestCaseResult test_case range TestCase

Identifier and Mapping Information

Schema Source

  • from schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel

Mappings

Mapping Type Mapped Value
self ttm:TestCase
native ttm:TestCase

LinkML Source

Direct

name: TestCase
description: Represents a single enumerated instance of Test Case, derived from a  given
  collection of one or more TestAsset instances (the value of the 'test_assets' slot)
  which define the 'inputs' and 'outputs' of the TestCase, used to probe a particular
  test condition.
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
is_a: TestEntity
slots:
- query_type
- test_assets
- preconditions
- trapi_template
- test_case_objective
- test_case_source
- test_case_predicate_name
- test_case_predicate_id
- test_case_input_id
- qualifiers
- input_category
- output_category
- components
- test_env
slot_usage:
  test_assets:
    name: test_assets
    description: One or more 'tags' slot values (inherited from TestEntity) should
      generally be defined as filters to specify TestAsset membership in 'test_assets'
      slot ("Block List") collection.
    aliases:
    - Block List
    domain_of:
    - TestCase
  tags:
    name: tags
    description: One or more 'tags' slot values (slot inherited from TestEntity) should
      generally be defined as filters to specify TestAsset membership in a "Block
      List" collection.
    domain_of:
    - TestEntity

Induced

name: TestCase
description: Represents a single enumerated instance of Test Case, derived from a  given
  collection of one or more TestAsset instances (the value of the 'test_assets' slot)
  which define the 'inputs' and 'outputs' of the TestCase, used to probe a particular
  test condition.
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
is_a: TestEntity
slot_usage:
  test_assets:
    name: test_assets
    description: One or more 'tags' slot values (inherited from TestEntity) should
      generally be defined as filters to specify TestAsset membership in 'test_assets'
      slot ("Block List") collection.
    aliases:
    - Block List
    domain_of:
    - TestCase
  tags:
    name: tags
    description: One or more 'tags' slot values (slot inherited from TestEntity) should
      generally be defined as filters to specify TestAsset membership in a "Block
      List" collection.
    domain_of:
    - TestEntity
attributes:
  query_type:
    name: query_type
    description: Type of TestCase query.
    from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
    rank: 1000
    alias: query_type
    owner: TestCase
    domain_of:
    - TestCase
    range: QueryTypeEnum
  test_assets:
    name: test_assets
    description: One or more 'tags' slot values (inherited from TestEntity) should
      generally be defined as filters to specify TestAsset membership in 'test_assets'
      slot ("Block List") collection.
    from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
    aliases:
    - Block List
    rank: 1000
    multivalued: true
    alias: test_assets
    owner: TestCase
    domain_of:
    - TestCase
    range: TestAsset
    required: true
    inlined: true
    inlined_as_list: true
  preconditions:
    name: preconditions
    from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
    rank: 1000
    multivalued: true
    alias: preconditions
    owner: TestCase
    domain_of:
    - TestCase
    range: Precondition
  trapi_template:
    name: trapi_template
    description: 'A template for a query, which can be used to generate a query for
      a test case.  note: the current enumerated values for this slot come from the
      Benchmarks repo config/benchmarks.json "templates" collection and refer to the
      "name" field of each template.  Templates themselves are currently stored in
      the config/[source_name]/templates directory.'
    from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
    rank: 1000
    alias: trapi_template
    owner: TestCase
    domain_of:
    - TestCase
    range: TrapiTemplateEnum
  test_case_objective:
    name: test_case_objective
    description: Testing objective behind specified set of test particulars (e.g.
      acceptance pass/fail; benchmark; quantitative; standards compliance; graph navigation
      integrity)
    from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
    rank: 1000
    alias: test_case_objective
    owner: TestCase
    domain_of:
    - TestCase
    range: TestObjectiveEnum
  test_case_source:
    name: test_case_source
    description: Provenance of a specific set of test assets, cases and/or suites.  Or,
      the person who cares about this,  know about this.  We would like this to be
      an ORCID eventually, but currently it is just a string.
    from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
    rank: 1000
    alias: test_case_source
    owner: TestCase
    domain_of:
    - TestCase
    range: TestSourceEnum
  test_case_predicate_name:
    name: test_case_predicate_name
    from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
    aliases:
    - Predicate
    rank: 1000
    alias: test_case_predicate_name
    owner: TestCase
    domain_of:
    - TestCase
    range: string
  test_case_predicate_id:
    name: test_case_predicate_id
    from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
    aliases:
    - Predicate
    rank: 1000
    alias: test_case_predicate_id
    owner: TestCase
    domain_of:
    - TestCase
    range: string
  test_case_input_id:
    name: test_case_input_id
    from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
    aliases:
    - InputID, node normalized
    - SubjectID
    rank: 1000
    alias: test_case_input_id
    owner: TestCase
    domain_of:
    - TestCase
    range: uriorcurie
  qualifiers:
    name: qualifiers
    description: Optional qualifiers which constrain to the test asset defined knowledge
      statement. Note that this field records such qualifier slots and values as tag=value
      pairs, where the tag is the Biolink Model qualifier slot named and the value
      is an acceptable (Biolink Model enum?) value of the said qualifier slot.
    from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
    rank: 1000
    multivalued: true
    alias: qualifiers
    owner: TestCase
    domain_of:
    - TestAsset
    - TestCase
    range: Qualifier
    inlined: true
    inlined_as_list: true
  input_category:
    name: input_category
    from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
    aliases:
    - SubjectCategory
    rank: 1000
    alias: input_category
    owner: TestCase
    domain_of:
    - TestAsset
    - TestCase
    range: concept_category
  output_category:
    name: output_category
    from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
    aliases:
    - ObjectCategory
    rank: 1000
    alias: output_category
    owner: TestCase
    domain_of:
    - TestAsset
    - TestCase
    range: concept_category
  components:
    name: components
    description: The component that this test case is intended to run against.  Most
      often this is the ARS for  acceptance tests, but for the Benchmarks repo integration,
      this can also be individual components of the system like Aragorn, or ARAX.
    from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
    rank: 1000
    multivalued: true
    alias: components
    owner: TestCase
    domain_of:
    - TestCase
    - TestRunSession
    range: ComponentEnum
  test_env:
    name: test_env
    description: Deployment environment within which the associated TestSuite is run.
    from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
    rank: 1000
    alias: test_env
    owner: TestCase
    domain_of:
    - TestCase
    - TestRunSession
    range: TestEnvEnum
  id:
    name: id
    description: A unique identifier for a Test Entity
    from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
    rank: 1000
    slot_uri: schema:identifier
    identifier: true
    alias: id
    owner: TestCase
    domain_of:
    - TestEntity
    range: uriorcurie
    required: true
  name:
    name: name
    description: A human-readable name for a Test Entity
    from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
    rank: 1000
    slot_uri: schema:name
    alias: name
    owner: TestCase
    domain_of:
    - TestEntity
    range: string
  description:
    name: description
    description: A human-readable description for a Test Entity
    from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
    rank: 1000
    slot_uri: schema:description
    alias: description
    owner: TestCase
    domain_of:
    - TestEntity
    range: string
  tags:
    name: tags
    description: One or more 'tags' slot values (slot inherited from TestEntity) should
      generally be defined as filters to specify TestAsset membership in a "Block
      List" collection.
    from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
    rank: 1000
    slot_uri: schema:additionalType
    multivalued: true
    alias: tags
    owner: TestCase
    domain_of:
    - TestEntity
    range: string
  test_runner_settings:
    name: test_runner_settings
    description: Scalar parameters for the TestRunner processing a given TestEntity.
    from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
    aliases:
    - Settings
    rank: 1000
    multivalued: true
    alias: test_runner_settings
    owner: TestCase
    domain_of:
    - TestEntity
    range: string
    required: false