TestResults class

Platform: Selenium 3Language: Python SDK:
Encapsulates the results of a visual test, including summary information and checkpoint-specific details. An object of this class is returned by the close method upon test completion.

Import statement

from applitools.selenium import TestResults
	

Properties

app_name
Returns the application name.
app_urls
Returns an object with a set of URLs that you can use to access the Test manager in a browser, preloaded with the results of this test.
batch_id
Returns the unique batch id of the test batch.
batch_name
Returns the batch name.
branch_name
Returns the branch name of the test.
duration
Returns the amount of time the test ran.
host_app
Returns the host application (browser) property of the test.
host_display_size
Returns the viewport size used to identify the baseline.
host_os
Returns the host OS property of the test.
id
Returns the ID of the test.
is_aborted
Returns whether the test was aborted or not (i.e. if abort_if_not_closed was called and close was not called previously).
is_different
Indicates that at least one step was new, missing, or a mismatch.
is_new
Returns whether this is a new test or not (i.e. no existing baseline was found for this test).
matches
Returns the number of test steps where the checkpoint image matched the baseline image.
mismatches
Returns the number of test steps where the checkpoint image did not match the baseline image. This includes new steps (i.e. steps where a baseline corresponding to the checkpoint was not found). It does not include missing steps. You can obtain this value using the missing property.
missing
Returns the number of test steps where an image corresponding to the checkpoint image was not found in the baseline.
name
Returns the name of the test.
started_at
Returns the date and time the test started.
status
Returns a status that represents the results of the test.
steps
Returns the total number of steps in the result.
steps_info
Returns an array of objects with information on all steps in the test.
url
Returns a URL which, if opened in a browser, displays the results of this test in the test manager.