Class: UIAuto::Listeners::BaseListener
- Inherits:
-
Object
- Object
- UIAuto::Listeners::BaseListener
- Defined in:
- lib/uiauto/listeners/base_listener.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#element_tree(element_tree) ⇒ Object
UI Automation’s logElementTree was called.
-
#element_tree_finish ⇒ Object
After an element tree is finished.
-
#element_tree_line(line) ⇒ Object
A line from an element tree.
-
#element_tree_start ⇒ Object
Before an element tree starts.
-
#instruments_line(line) ⇒ Object
Raw instruments output.
-
#load_simulator_data(path) ⇒ Object
Called if a script contains a comment header to load simulator data.
-
#log_debug(message) ⇒ Object
Message printed by UI Automation’s logDebug.
-
#log_default(message) ⇒ Object
Message printed by UI Automation’s logMessage.
-
#log_error(message) ⇒ Object
Message printed by UI Automation’s logError.
-
#log_fail(message) ⇒ Object
Message printed by UI Automation’s logFail.
-
#log_issue(message) ⇒ Object
Message printed by UI Automation’s logIssue.
-
#log_none(message) ⇒ Object
An uncategorized log type.
-
#log_pass(message) ⇒ Object
Message printed by UI Automation’s logPass.
-
#log_start(message) ⇒ Object
Message printed by UI Automation’s logStart.
-
#log_stopped(message) ⇒ Object
Typically reports a script was stopped by user, but is caused by a failed import.
-
#log_warning(message) ⇒ Object
Message printed by UI Automation’s logWarning.
-
#run_finish ⇒ Object
After a run finished.
-
#run_start ⇒ Object
Before a run is started.
-
#script_finish(script) ⇒ Object
After a script is finished.
-
#script_start(script) ⇒ Object
Before a script is started.
-
#script_summary(duration, trace_location) ⇒ Object
After a script is finished.
-
#unknown(line) ⇒ Object
Misc lines from instruments that are not called in above methods.
Instance Method Details
#element_tree(element_tree) ⇒ Object
UI Automation’s logElementTree was called. element_tree contains the entire tree.
57 58 |
# File 'lib/uiauto/listeners/base_listener.rb', line 57 def element_tree(element_tree) end |
#element_tree_finish ⇒ Object
After an element tree is finished.
69 70 |
# File 'lib/uiauto/listeners/base_listener.rb', line 69 def element_tree_finish end |
#element_tree_line(line) ⇒ Object
A line from an element tree.
65 66 |
# File 'lib/uiauto/listeners/base_listener.rb', line 65 def element_tree_line(line) end |
#element_tree_start ⇒ Object
Before an element tree starts.
61 62 |
# File 'lib/uiauto/listeners/base_listener.rb', line 61 def element_tree_start end |
#instruments_line(line) ⇒ Object
Raw instruments output.
85 86 |
# File 'lib/uiauto/listeners/base_listener.rb', line 85 def instruments_line(line) end |
#load_simulator_data(path) ⇒ Object
Called if a script contains a comment header to load simulator data.
13 14 |
# File 'lib/uiauto/listeners/base_listener.rb', line 13 def load_simulator_data(path) end |
#log_debug(message) ⇒ Object
Message printed by UI Automation’s logDebug. Also prints actions such as tap, typeString, etc…
33 34 |
# File 'lib/uiauto/listeners/base_listener.rb', line 33 def log_debug() end |
#log_default(message) ⇒ Object
Message printed by UI Automation’s logMessage.
41 42 |
# File 'lib/uiauto/listeners/base_listener.rb', line 41 def log_default() end |
#log_error(message) ⇒ Object
Message printed by UI Automation’s logError.
37 38 |
# File 'lib/uiauto/listeners/base_listener.rb', line 37 def log_error() end |
#log_fail(message) ⇒ Object
Message printed by UI Automation’s logFail.
25 26 |
# File 'lib/uiauto/listeners/base_listener.rb', line 25 def log_fail() end |
#log_issue(message) ⇒ Object
Message printed by UI Automation’s logIssue.
29 30 |
# File 'lib/uiauto/listeners/base_listener.rb', line 29 def log_issue() end |
#log_none(message) ⇒ Object
An uncategorized log type. Typically uncaught javascript errors.
49 50 |
# File 'lib/uiauto/listeners/base_listener.rb', line 49 def log_none() end |
#log_pass(message) ⇒ Object
Message printed by UI Automation’s logPass.
21 22 |
# File 'lib/uiauto/listeners/base_listener.rb', line 21 def log_pass() end |
#log_start(message) ⇒ Object
Message printed by UI Automation’s logStart.
17 18 |
# File 'lib/uiauto/listeners/base_listener.rb', line 17 def log_start() end |
#log_stopped(message) ⇒ Object
Typically reports a script was stopped by user, but is caused by a failed import
53 54 |
# File 'lib/uiauto/listeners/base_listener.rb', line 53 def log_stopped() end |
#log_warning(message) ⇒ Object
Message printed by UI Automation’s logWarning.
45 46 |
# File 'lib/uiauto/listeners/base_listener.rb', line 45 def log_warning() end |
#run_finish ⇒ Object
After a run finished.
89 90 |
# File 'lib/uiauto/listeners/base_listener.rb', line 89 def run_finish end |
#run_start ⇒ Object
Before a run is started. A run contains one or more scripts.
5 6 |
# File 'lib/uiauto/listeners/base_listener.rb', line 5 def run_start end |
#script_finish(script) ⇒ Object
After a script is finished.
77 78 |
# File 'lib/uiauto/listeners/base_listener.rb', line 77 def script_finish(script) end |
#script_start(script) ⇒ Object
Before a script is started.
9 10 |
# File 'lib/uiauto/listeners/base_listener.rb', line 9 def script_start(script) end |
#script_summary(duration, trace_location) ⇒ Object
After a script is finished. Duration and trace location as reported by instruments.
73 74 |
# File 'lib/uiauto/listeners/base_listener.rb', line 73 def script_summary(duration, trace_location) end |
#unknown(line) ⇒ Object
Misc lines from instruments that are not called in above methods.
81 82 |
# File 'lib/uiauto/listeners/base_listener.rb', line 81 def unknown(line) end |