Trees | Indices | Help |
|
---|
|
General constants and function overrides for use with Squish. Should use this in almost every Squish test. Also includes functions to delete files from the AUT directory and to update the object.map
To use, add the following to the top of your test.py:
source(findFile("scripts", "general/general.py"))
Copyright (c) Schrodinger, LLC. All rights reserved
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
short_wait = 3000
|
|||
default_wait = 20000
|
|||
long_wait = 300000
|
|||
extra_long_wait = 600000
|
|
Deletes all files or directories passed in on the command line. Uses AUT's CWD as starting point for any relative paths. Missing files are silently ignored. All inputs are globbed into files, so valid invocations include: delete_paths(pathname1), delete_paths(pathname1, pathname2), delete_paths(pathname*) Raises an error if anything requested is not a file or if the AUT has not yet been started. |
Adds the dictionary of symbolic name->real names to the object map. Loads the new objects.map. If the symbolic name to be added already exists in your objects.map, its real-name definition will not be modified unless you specify overwrite=True. This does, however, overwrite your objects.map, so you will lose all formatting and comments. The default directory is "..", because the Python script is launched from the test subdirectory, and the objects.map is in the suite directory.
|
A compare function that takes a boolean operator and reports the outcome to the Squish log file if pass or failure messages are provided. Written as an improvement over Squish native test.compare allowing specification of success and failure and ability to use all python logical operators.
|
The default Squish waitForObject waits until an object exists and is enabled/available. This function only waits for existance. |
Waits until filename is available on the filesystem. filename is a string of the absolute path to the file or a path to the file from the CWD. timeout is an integer wait in milliseconds. This should be a short wait, for example 3000-5000 milliseconds. |
This is a function decorator for 'main' function in test.py. This turns the testSettings.logScreenshotOnError and testSettings.logScreenshoOnFail on and then turns off once the test case execution is completed. Usage: @log_screenshots def main(): start_maestro() # Rest of the test case. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue May 2 06:32:57 2017 | http://epydoc.sourceforge.net |