lib/scoutui/commands/utils.rb in scoutui-2.0.3.55.pre vs lib/scoutui/commands/utils.rb in scoutui-2.0.3.56.pre

- old
+ new

@@ -16,10 +16,11 @@ @command_list=['pause', 'assignvar', 'assignments', 'existsAlert', 'clickJsAlert', + 'dumpvars', 'fillform', 'frame', 'highlight', 'submitform', 'type', @@ -234,11 +235,10 @@ def isAssignVar?(_action) !_action.match(/assign\(([\w]+)\s*\,(.*)\)\s*$/i).nil? end def isSelectWindow?(_action) - Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " isSelectWindow?(#{_action})" !_action.match(/^\s*select_window/i).nil? end def isExistsAlert?(_action) !_action.match(/(exist[s]*_*alert|existAlert|existsAlert|existsJsAlert|existsJsConfirm|existsJsPrompt)\(/i).nil? @@ -270,10 +270,14 @@ def isConnect?(_action) !_action.match(/^\s*connect\s*$/i).nil? end + def isDumpVars?(_action) + !_action.match(/^\s*dumpvars\s*$/i).nil? + end + def isLoadDB?(_action) !_action.match(/^\s*loaddb\s*$/i).nil? end def isExecuteCommands?(_action) @@ -361,9 +365,11 @@ @totalCommands['submitform']+=1 elsif isType?(cmd) @totalCommands['type']+=1 elsif isClick?(cmd) @totalCommands['click']+=1 + elsif isDumpVars?(cmd) + @totalCommands['dumpvars']+=1 elsif isMouseOver?(cmd) @totalCommands['mouseover']+=1 elsif isConnect?(cmd) @totalCommands['connect']+=1 elsif isExecuteCommands?(cmd)