lib/mutx/results/result.rb in mutx-0.1.13 vs lib/mutx/results/result.rb in mutx-0.1.14

- old
+ new

@@ -29,11 +29,12 @@ :last_check_time, :configuration_values, :timeout, :started_message, :console_output, - :application + :application, + :gui_task def initialize data_for_result Mutx::Support::Log.debug "Result.new => data_for_result => #{data_for_result}" if Mutx::Support::Log if data_for_result["_id"] @@ -135,11 +136,11 @@ end # Returns the string of custom params values # @return [String] foo=bar john=doe def custom_params_values - "mutx_custom_params='#{validate_params(@custom_params).to_json}'".gsub(',', ', ') + "mutx_custom_params='#{validate_params(@custom_params).to_json}'".gsub(',', ', ') unless @custom_params.empty? end # Returns a hash with valid parameters. This is to prevent command line command with could cause problems # @param [hash] custom params @@ -199,9 +200,13 @@ @task["platform"] end def generate_cucumber_report? @task["cucumber_report"] + end + + def gui_task? + @task["aplication"] == "GUI" end def finish! @finished_at= now_in_seconds @status = @summary = "finished" \ No newline at end of file