TestResultObject
✖
TestResultObject
Details

- 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:
-
"AbsoluteTime" absolute time the test was created, in UTC time zone "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 "Created" DateObject of creation time, in $TimeZone "ExpectedMessages" messages passed to the test "ExpectedOutput" evaluated expected output "Input" original test input "MemoryConstraint" original MemoryConstraint value "MemoryUsed" number of bytes used to store all data "Outcome" outcome on running the VerificationTest "SameTest" original SameTest function "TestFileName" absolute file name of the currently executing test file "TestID" unique identifier for the test "TestKey" automatic key that is unique for every test "TimeConstraint" original TimeConstraint value "VerificationTest" original VerificationTest expression
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Run a VerificationTest to get a TestResultObject:

https://wolfram.com/xid/0dc0v2mlfwya-ya2r42

Extract output generated on evaluation of input:

https://wolfram.com/xid/0dc0v2mlfwya-ht2cg2


https://wolfram.com/xid/0dc0v2mlfwya-lpmzm9

Extract the original input and run the test again by using ReleaseHold:

https://wolfram.com/xid/0dc0v2mlfwya-or8oc6

Scope (1)Survey of the scope of standard use cases

https://wolfram.com/xid/0dc0v2mlfwya-hz3ltq

https://wolfram.com/xid/0dc0v2mlfwya-017e2a

Extract several properties at once:

https://wolfram.com/xid/0dc0v2mlfwya-kg5shb

Extract all properties and present results in a Dataset:

https://wolfram.com/xid/0dc0v2mlfwya-rvd6zg

Applications (1)Sample problems that can be solved with this function

https://wolfram.com/xid/0dc0v2mlfwya-8nndti

Use the "VerificationTest" property to recreate the original test expression:

https://wolfram.com/xid/0dc0v2mlfwya-l8hdkb

Use ReleaseHold to run it again:

https://wolfram.com/xid/0dc0v2mlfwya-9snyf7

Wolfram Research (2014), TestResultObject, Wolfram Language function, https://reference.wolfram.com/language/ref/TestResultObject.html.
Text
Wolfram Research (2014), TestResultObject, Wolfram Language function, https://reference.wolfram.com/language/ref/TestResultObject.html.
Wolfram Research (2014), TestResultObject, Wolfram Language function, https://reference.wolfram.com/language/ref/TestResultObject.html.
CMS
Wolfram Language. 2014. "TestResultObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TestResultObject.html.
Wolfram Language. 2014. "TestResultObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TestResultObject.html.
APA
Wolfram Language. (2014). TestResultObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TestResultObject.html
Wolfram Language. (2014). TestResultObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TestResultObject.html
BibTeX
@misc{reference.wolfram_2025_testresultobject, author="Wolfram Research", title="{TestResultObject}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/TestResultObject.html}", note=[Accessed: 03-June-2025
]}
BibLaTeX
@online{reference.wolfram_2025_testresultobject, organization={Wolfram Research}, title={TestResultObject}, year={2014}, url={https://reference.wolfram.com/language/ref/TestResultObject.html}, note=[Accessed: 03-June-2025
]}