TestResultObject

TestResultObject[]
gives an object that represents the results of a VerificationTest.

DetailsDetails

  • TestResultObject is typically obtained as a result from VerificationTest.
  • TestResultObject[]["prop"] returns the value of "prop" for a given TestResultObject.
  • TestResultObject[][{"prop1","prop2",}] returns an association of values corresponding to several properties.
  • TestResultObject[]["Properties"] returns a list of all properties available.
  • Possible properties for TestResultObject include:
  • "AbsoluteTimeUsed"absolute number of seconds in real time that have elapsed
    "ActualMessages"messages generated on evaluating input
    "ActualOutput"output generated on evaluating input
    "CPUTimeUsed"CPU time spent on evaluating input
    "ExpectedMessages"messages passed to the test
    "ExpectedOutput"evaluated expected output
    "MemoryUsed"number of bytes used to store all data
    "Outcome"outcome on running the VerificationTest
    "TestID"unique identifier for the test
    "TestIndex"automatic index that is incremented for every test
    "TestInput"input for the test

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

  • Run a VerificationTest to get a TestResultObject:
  • In[1]:=
    Click for copyable input
    Out[1]=
  • Extract ActualOutput generated on evaluation of input:
  • In[2]:=
    Click for copyable input
    Out[2]=
    In[3]:=
    Click for copyable input
    Out[3]=
  • Extract several properties:
  • In[4]:=
    Click for copyable input
    Out[4]=
    Introduced in 2014
    (10.0)