android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <TextView android:id="@+id/text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello, I am a TextView" /> <Button android:id="@+id/button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello, I am a Button" /> </LinearLayout>
android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <TextView android:id="@+id/text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello, I am a TextView" />
поддерживается Apple Базовые инструменты для функционального тестирования 32 * https://developer.apple.com/library/tvos/documentation/DeveloperTools/Conceptual/InstrumentsUserGuide/UIAutomation.html
Credit card numbers must be exactly 16 characters. Scenario: Credit card number is too long Given I try to validate a credit card number that is 17 characters long Then I should see the error message "Credit card number is too long."
a credit card number that is (\d+) characters long$/) do |number_of_digits| touch("textField marked:'CreditCardNumberField'") wait_for_keyboard keyboard_enter_text("9" * number_of_digits.to_i) touch("button marked:'Validate'") end
error message "(.*?)"$/) do |error_message| text_view = query("textView marked:'ErrorMessagesField' {text CONTAINS '#{error_message}'}") raise "The error message '#{error_message}' is not visible in the View." unless text_view.any? end
public void backdoorFoo(String baz) { Log.w(TAG, String.format("backdoor value of '%s'", baz)); } } Приложение: Тест: backdoor "backdoorFoo", "the value of baz" Backdoor* * https://developer.xamarin.com/guides/testcloud/calabash/working-with/backdoors/