lib/kraken-mobile/runners/calabash/android/steps/communication_steps.rb in kraken-mobile-1.0.4 vs lib/kraken-mobile/runners/calabash/android/steps/communication_steps.rb in kraken-mobile-1.0.5

- old
+ new

@@ -16,9 +16,24 @@ return s end } ) +ParameterType( + name: 'property', + regexp: /[^\"]*/, + type: String, + transformer: ->(s) { + channel = @scenario_tags.grep(/@user/).first + if ENV["PROPERTIES_PATH"] && channel && s.start_with?("<") && s.end_with?(">") + s.slice!('$') + return properties[channel][s] + else + return s + end + } +) + Then /^I wait for a signal containing "([^\"]*)"$/ do |string| channel = @scenario_tags.grep(/@user/).first readSignal(channel, string, KrakenMobile::Constants::DEFAULT_TIMEOUT) end