calabash-android

Accessing the Scenario Title and Example in a Cucumber After hook

孤街浪徒 提交于 2019-12-04 21:14:04
How can I get the current Example out of a Ruby cucumber test in an After hook? I can get the title with the code below. My Scenario has several Examples with it. Can I access the current Example being tested? Feature file Scenario Outline: Successful login with primary accounts Given I start on the login page When I log into Overview page with "<acct>" Then I am on the Overview page Examples: | acct | | account1 | | account2 | After hook After do |scenario| scenario.scenario_outline.title # will give me the title How to I get the current Example ? Here is how I did it. scenario_title =

calabash-android 链接整理

为君一笑 提交于 2019-12-03 21:58:26
Calabash-android调研 :http://qa.blog.163.com/blog/static/19014700220128981312173/ 使用calabash测试开源中国Android客户端:http://www.bubuko.com/infodetail-344129.html 利用Calabash-Android刷广告 :http://blog.csdn.net/bigconvience/article/details/39138623 Calabash-Android用法入门 :http://blog.csdn.net/bigconvience/article/details/39138623 中文Win7下成功安装calabash-android步骤:http://www.android100.org/html/201409/06/62885.html calabash-android 命令行使用 :http://blog.csdn.net/bigconvience/article/details/39182161 calabash-android android自动化测试十六之calabash-android : http://myeyeofjava.iteye.com/blog/1902710 来源: oschina 链接: https://my

Ubuntu 14.04 64位安装calabash-android问题汇总

半腔热情 提交于 2019-12-02 19:31:16
初装Ubuntu 14.04 64位后,安装calabash-android步骤: 安装jdk+ant sudo apt-get update sudo apt-get install openjdk-7-jre-headless sudo apt-get install openjdk-7-jdk sudo apt-get install ant sudo apt-get intall make 安装openjdk-7-jdk之前,运行 ant 失败: Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar 安装make之前,运行 sudo gem install calabash-android -V 失败: ERROR: Error installing calabash-android: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb checking for main() in -lc... yes creating Makefile make sh: 1: make: not found 安装Android SDK sudo

Best way to turn airplane mode on and off with Calabash

笑着哭i 提交于 2019-12-02 17:40:31
问题 What is the best way to turn airplane mode on and off using calabash-android? Can I use perform_action('set_preferences', .... ) ?? What does set_preferences do above? I would like to set up android settings during test of application. Thanks 回答1: Your question is a bit vague. Is it for simulator or device? In case you just need to disable wifi, you could use def disable_network %x(adb shell svc wifi disable) end def enable_network %x(adb shell svc wifi enable) end Found here https:/

Best way to turn airplane mode on and off with Calabash

拈花ヽ惹草 提交于 2019-12-02 10:13:59
What is the best way to turn airplane mode on and off using calabash-android? Can I use perform_action('set_preferences', .... ) ?? What does set_preferences do above? I would like to set up android settings during test of application. Thanks Your question is a bit vague. Is it for simulator or device? In case you just need to disable wifi, you could use def disable_network %x(adb shell svc wifi disable) end def enable_network %x(adb shell svc wifi enable) end Found here https://azevedorafaela.wordpress.com/tag/disable-wifi-android-simulator-calabash/ I have not tried it myself though. For

calabash-android - What does resign do?

南楼画角 提交于 2019-11-29 12:08:01
I am new to using calabash-android to test Android applications. What does the calabash-android resign name-of-my.apk do? Thanks The resign is used if you need to sign the app to match your keystore. Copied from GitHub docs https://github.com/calabash/calabash-android/wiki/Running-Calabash-Android Instead of resigning you could also consider copying your debug keystore to your folder. The apk calabash android runs must be signed with the same keystore as the test-server. Use the command: calabash-android resign to resign your application. Building the test-server using calabash-android build

Calabash handling “Complete action using” dialog

℡╲_俬逩灬. 提交于 2019-11-29 12:03:05
I want to test sharing functionality of an app but I have no idea how to handle android dialog "Complete action using" (Facebook, Gmail etc.) When I use query("*") it is returning an empty set of fields. Is there any way to handle such system dialogs using Calabash or any other way to test such functionality as sharing? I am running my tests on physical device. Edit: If there is no way to check whether the dialog has been opened or not, then maybe it is possible using adb shell or something like that? alannichols It's not a very elegant solution but you can simulate screen touches using adb.

Calabash handling “Complete action using” dialog

孤人 提交于 2019-11-28 05:48:23
问题 I want to test sharing functionality of an app but I have no idea how to handle android dialog "Complete action using" (Facebook, Gmail etc.) When I use query("*") it is returning an empty set of fields. Is there any way to handle such system dialogs using Calabash or any other way to test such functionality as sharing? I am running my tests on physical device. Edit: If there is no way to check whether the dialog has been opened or not, then maybe it is possible using adb shell or something