Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
testing.tools.test_runner.TestResult Class Reference
+ Collaboration diagram for testing.tools.test_runner.TestResult:

Public Member Functions

 IsPass (self)
 

Public Attributes

 status = result_types.PASS
 

Static Public Attributes

float duration_milliseconds = None
 
str log = None
 
list image_artifacts = field(default_factory=list)
 
str reason = None
 

Detailed Description

Results from running a test case.

Attributes:
  test_id: The corresponding test case ID.
  status: The overall `result_types` status.
  duration_milliseconds: Test time in milliseconds.
  log: Optional log of the test's output.
  image_artfacts: Optional list of image artifacts.
  reason: Optional reason why the test failed.

Definition at line 836 of file test_runner.py.

Member Function Documentation

◆ IsPass()

testing.tools.test_runner.TestResult.IsPass ( self)
Whether the test passed.

Definition at line 854 of file test_runner.py.

Member Data Documentation

◆ duration_milliseconds

float testing.tools.test_runner.TestResult.duration_milliseconds = None
static

Definition at line 849 of file test_runner.py.

◆ image_artifacts

list testing.tools.test_runner.TestResult.image_artifacts = field(default_factory=list)
static

Definition at line 851 of file test_runner.py.

◆ log

str testing.tools.test_runner.TestResult.log = None
static

Definition at line 850 of file test_runner.py.

◆ reason

str testing.tools.test_runner.TestResult.reason = None
static

Definition at line 852 of file test_runner.py.

◆ status

testing.tools.test_runner.TestResult.status = result_types.PASS

Definition at line 856 of file test_runner.py.


The documentation for this class was generated from the following file: