This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def list(name, locator) | |
define_method("click_#{name}_with_text") do |which_text| | |
platform.click_list_item_with_text(which_text) | |
end | |
end | |
class Notes | |
list(:notes, :id => "notesGridId") | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public CustomTestRunner(Class<?> testClass) throws InitializationError { | |
super(RobolectricContext.bootstrap(CustomTestRunner.class, testClass, new Factory() { | |
@Override | |
public RobolectricContext create() { | |
return new RobolectricContext() { | |
@Override | |
protected AndroidManifest createAppManifest() { | |
return new AndroidManifest(new File("../YourAppDirectory")); | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-agent | sed -n 's/\(\b.\+\)=\(.*\); export.*/set \1\=\2/p' > %TEMP%\store_ssh.bat && echo ssh-add >> %TEMP%\store_ssh.bat | |
%TEMP%\\store_ssh.bat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "StdAfx.h" | |
#include "DynamicAssemblyResolver.h" | |
void DynamicAssemblyResolver::PrivatePath::set(String^ path) { | |
_PrivatePath = path; | |
AppDomain::CurrentDomain->AssemblyResolve += gcnew ResolveEventHandler(Resolve); | |
} | |
Assembly^ DynamicAssemblyResolver::Resolve(Object^ sender, ResolveEventArgs^ args) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project> | |
... | |
<target name="levi-test" depends="-test-project-check"> | |
<property name="test.runner" value="android.test.InstrumentationTestRunner" /> | |
<run-tests-helper> | |
<extra-instrument-args> | |
<arg value="-r" /> | |
</extra-instrument-args> | |
</run-tests-helper> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Illustrating that RubyMine eats error output in hooks | |
Scenario: Some scenario that should fail | |
When I so something that will fail | |
Then this step will never execute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lwilson@levis-macbook leviwilson $ cd gametel/ | |
lwilson@levis-macbook gametel (master) $ git submodule update --init --recursive | |
Submodule 'webview_sample' (git@github.com:cheezy/Androidwebviewsampleapp.git) registered for path 'webview_sample' | |
Cloning into 'webview_sample'... | |
remote: Counting objects: 92, done. | |
remote: Compressing objects: 100% (57/57), done. | |
remote: Total 92 (delta 16), reused 90 (delta 14) | |
Receiving objects: 100% (92/92), 60.76 KiB, done. | |
Resolving deltas: 100% (16/16), done. | |
fatal: reference is not a tree: 2f1fa3c2748dde3e8aa8cb5f0d38bbb24932f55f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SomeScreen | |
include Gametel | |
def click_menu_item(which) | |
platform.chain_calls do |d| | |
# get the id of the menu item, store it in @@id@@ | |
d.id_from_name which, :target => :Brazenhead, :variable => '@@id@@' | |
# give the @@id@@ back to Robotium to click on the menu option | |
d.click_on_action_bar_item '@@id@@', :target => :Robotium | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AddReserves | |
include Mohawk | |
select_list(:appointment_type, :id => 'whatever') | |
def any_checked? | |
appointment_type_options.any? &method(:checked?) | |
end | |
def checked?(which_type) |