lib/calabash-android/operations.rb in calabash-android-0.3.4 vs lib/calabash-android/operations.rb in calabash-android-0.3.5
- old
+ new
@@ -180,17 +180,13 @@
end
log "Result:'" + result.strip + "'"
raise "Empty result from TestServer" if result.chomp.empty?
result = JSON.parse(result)
if not result["success"] then
- @cucumber_world.screenshot_embed
- if result["bonusInformation"] && result["bonusInformation"].size > 0 && result["bonusInformation"][0].include?("Exception")
- log result["bonusInformation"][0]
- end
raise "Step unsuccessful: #{result["message"]}"
end
- return result
+ result
end
rescue Timeout::Error
raise Exception, "Step timed out"
end
@@ -451,10 +447,10 @@
end
def backdoor(sel, arg)
ni
end
-
+
def map( query, method_name, *method_args )
ni
end
def http(options, data=nil)