TestResult Class — NXOpen Python API Reference 12.0.0 documentation

# TestResult Class

class `NXOpen.CAE.ModelCheck.``TestResult`

  Bases: `NXOpen.TransientObject`

  Represents quality checking result of a quality test

  To obtain an instance of this class use CAE.ModelCheck.ElementTestResult.GetTestResults

  New in version NX8.5.0.

# Properties

Property | Description
--- | ---
TestType | Returns the test type
TestValue | Returns the test value.
ValidatedTestResult | Returns the validation result of comparing test value with the criteria value.

# Methods

Method | Description
--- | ---
Dispose | Frees the object from memory.
HasTestValue | Tells whether there is a test value associated with this test

# Property Detail

## TestType

`TestResult.``TestType`

  Returns the test type

  `-------------------------------------`

  Getter Method

  Signature `TestType`

  Returns: |
  Return type: | `NXOpen.CAE.ModelCheck.TestValueTypesTestType`

  New in version NX8.5.0.

  License requirements: None.

## TestValue

`TestResult.``TestValue`

  Returns the test value.

  An exception will be thrown f there is no test value associated with this test

  `-------------------------------------`

  Getter Method

  Signature `TestValue`

  Returns: |
  Return type: | float

  New in version NX8.5.0.

  License requirements: None.

## ValidatedTestResult

`TestResult.``ValidatedTestResult`

  Returns the validation result of comparing test value with the criteria value.

  if no test value is associated this test, the result just indicates the test is passed or failed

  `-------------------------------------`

  Getter Method

  Signature `ValidatedTestResult`

  Returns: |
  Return type: | `NXOpen.CAE.ModelCheck.TestValueTypesResult`

  New in version NX8.5.0.

  License requirements: None.

# Method Detail

## Dispose

`TestResult.``Dispose`

  Frees the object from memory.

  After this method is called, it is illegal to use the object. In .NET, this method is automatically called when the object is deleted by the garbage collector.

  Signature `Dispose()`

  New in version NX8.5.0.

  License requirements: None.

## HasTestValue

`TestResult.``HasTestValue`

  Tells whether there is a test value associated with this test

  Signature `HasTestValue()`

  Returns: |
  Return type: | bool

  New in version NX8.5.0.

  License requirements: None.