performAction( 'get_list_item_text', '2' )
6 | # (1st item of 2nd list) performAction( 'get_list_item_text', '2' , '1' )
7 | Then /^I should see following list:$/ do | expected_table |
8 | PM_unsupported()
9 | end
--------------------------------------------------------------------------------
/Calabash/src/lib/calabash-perfectomobile/steps/location_steps.rb:
--------------------------------------------------------------------------------
1 | # Modified by Perfecto Mobile Ltd.
2 |
3 | Then /^I am in "([^\"]*)"$/ do |location|
4 | PM_unsupported()
5 | end
6 |
7 | Then /^I am at "([^\"]*)"$/ do |location|
8 | PM_unsupported()
9 | end
10 |
11 | Then /^I go to "([^\"]*)"$/ do |location|
12 | PM_unsupported()
13 | end
14 |
15 | Then /^I am at ([-+]?[0-9]*\.?[0-9]+), ([-+]?[0-9]*\.?[0-9]+)$/ do |latitude, longitude|
16 | PM_unsupported()
17 | end
18 |
19 | Then /^I go to ([-+]?[0-9]*\.?[0-9]+), ([-+]?[0-9]*\.?[0-9]+)$/ do |latitude, longitude|
20 | PM_unsupported()
21 | end
22 |
--------------------------------------------------------------------------------
/Calabash/src/lib/calabash-perfectomobile/steps/recording_steps.rb:
--------------------------------------------------------------------------------
1 | # Modified by Perfecto Mobile Ltd.
2 |
3 | ## iOS step
4 | Then /^I playback recording "([^\"]*)"$/ do |filename|
5 | PM_unsupported()
6 | end
7 |
8 | ## iOS step
9 | Then /^I playback recording "([^\"]*)" on "([^\"]*)"$/ do |filename, name|
10 | PM_unsupported()
11 | end
12 |
13 | ## iOS step
14 | Then /^I playback recording "([^\"]*)" on "([^\"]*)" with offset (\d+),(\d+)$/ do |filename, name, x, y|
15 | PM_unsupported()
16 | end
17 |
18 | ## iOS step
19 | Then /^I reverse playback recording "([^\"]*)"$/ do |filename|
20 | PM_unsupported()
21 | end
22 |
23 | ## iOS step
24 | Then /^I reverse playback recording "([^\"]*)" on "([^\"]*)"$/ do |filename, name|
25 | PM_unsupported()
26 | end
27 |
28 | ## iOS step
29 | Then /^I reverse playback recording "([^\"]*)" on "([^\"]*)" with offset (\d+),(\d+)$/ do |filename, name, x, y|
30 | PM_unsupported()
31 | end
32 |
33 |
--------------------------------------------------------------------------------
/Calabash/src/lib/calabash-perfectomobile/steps/rotation_steps.rb:
--------------------------------------------------------------------------------
1 | # Modified by Perfecto Mobile Ltd.
2 |
3 | Then /^I rotate the device to landscape$/ do
4 | PM_rotate("landscape")
5 | end
6 |
7 | Then /^I rotate the device to portrait$/ do
8 | PM_rotate("portrait")
9 | end
10 |
11 | ## iOS step
12 | Then /^I rotate device (left|right)$/ do |dir|
13 | PM_unsupported()
14 | end
15 |
16 | ## iOS step
17 | Then /^I send app to background for (\d+) seconds$/ do |secs|
18 | PM_unsupported()
19 | end
20 |
21 |
--------------------------------------------------------------------------------
/Calabash/src/lib/calabash-perfectomobile/steps/screenshot_steps.rb:
--------------------------------------------------------------------------------
1 | # Modified by Perfecto Mobile Ltd.
2 |
3 | Then /^take picture$/ do
4 | PM_screenshot()
5 | end
6 |
7 | Then /^I take a picture$/ do
8 | PM_screenshot()
9 | end
10 |
11 | Then /^I take a screenshot$/ do
12 | PM_screenshot()
13 | end
14 |
--------------------------------------------------------------------------------
/Calabash/src/lib/calabash-perfectomobile/steps/search_steps.rb:
--------------------------------------------------------------------------------
1 | # Modified by Perfecto Mobile Ltd.
2 |
3 | Then /^I enter "([^\"]*)" into search field$/ do |text|
4 | PM_enter_search_field_by_num(text,1)
5 | end
6 |
7 | Then /^I enter "([^\"]*)" into search field number (\d+)$/ do |text, number|
8 | PM_enter_search_field_by_num(text,number)
9 | end
10 |
--------------------------------------------------------------------------------
/Calabash/src/lib/calabash-perfectomobile/steps/spinner_steps.rb:
--------------------------------------------------------------------------------
1 | # Modified by Perfecto Mobile Ltd.
2 |
3 | Then /^I select "([^\"]*)" from "([^\"]*)"$/ do |item_text, spinner_content_description|
4 | PM_unsupported()
5 | end
--------------------------------------------------------------------------------
/Calabash/src/lib/calabash-perfectomobile/steps/time_picker_steps.rb:
--------------------------------------------------------------------------------
1 | # Modified by Perfecto Mobile Ltd.
2 |
3 | Given /^I set the time to "(\d\d:\d\d)" on TimePicker with index "([^\"]*)"$/ do |time, index|
4 | PM_unsupported()
5 | end
6 |
7 | Given /^I set the "([^\"]*)" time to "(\d\d:\d\d)"$/ do |content_description, time|
8 | PM_unsupported()
9 | end
10 |
11 | ## iOS step
12 | # time_str can be in any format that Time can parse
13 | Then(/^I change the date picker time to "([^"]*)"$/) do |time_str|
14 | PM_unsupported()
15 | end
16 |
17 | ## iOS step
18 | # date_str can be in any format that Date can parse
19 | Then(/^I change the date picker date to "([^"]*)"$/) do |date_str|
20 | PM_unsupported()
21 | end
22 |
23 | ## iOS step
24 | # date_str can be in any format that Date can parse
25 | Then(/^I change the date picker date to "([^"]*)" at "([^"]*)"$/) do |date_str, time_str|
26 | PM_unsupported()
27 | end
28 |
29 |
--------------------------------------------------------------------------------
/Calabash/src/lib/calabash-perfectomobile/version.rb:
--------------------------------------------------------------------------------
1 | # Modified by Perfecto Mobile Ltd.
2 |
3 | module Calabash
4 | module PerfectoMobile
5 | VERSION = "1.0.0"
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/Calabash/tests/my_first.feature.Android-MultipleWebApps:
--------------------------------------------------------------------------------
1 | Feature: Calabash Testing for Android - use app : MultipleWebApps
2 |
3 | #Scenario: Checking if link click works - MultipleWebApps app
4 | # When I touch the "Privacy Policy" text
5 | # Then I should see text containing "Updated Privacy Statement"
6 |
--------------------------------------------------------------------------------
/Calabash/tests/my_first.feature.Android-PMTest:
--------------------------------------------------------------------------------
1 | Feature: Calabash Testing for Android - use app : PMTest
2 |
3 | #Scenario: Swiping - PMTest app
4 | # When I press the "Test Drag/Swipe" button
5 | # Then I wait
6 | # Then I swipe left
7 | # Then I wait for 3 seconds
8 | # Then I swipe right
9 | # Then I wait for 3 seconds
10 | # Then I press the "Back" button
11 |
--------------------------------------------------------------------------------
/Calabash/tests/my_first.feature.Android-S_Health:
--------------------------------------------------------------------------------
1 | Feature: Calabash Testing for Android - use app : "S Health"
2 |
3 | #Scenario: Click on text link - S Health
4 | # When I touch the "Next" text
5 | # Then I wait for 3 seconds
6 | # Then I go back
7 |
--------------------------------------------------------------------------------
/Calabash/tests/my_first.feature.Android-YP:
--------------------------------------------------------------------------------
1 | Feature: Calabash Testing for Android - use app : YP (Yellow Pages)
2 |
3 | #Scenario: Image button - YP
4 | # When I press image button number 1
5 | # Then I wait for 3 seconds
6 | # Then I go back
7 |
--------------------------------------------------------------------------------
/Calabash/tests/my_first.feature.any-any:
--------------------------------------------------------------------------------
1 | Feature: Report Testing - run on any app
2 |
3 | Scenario: Press 100 button (fail for report) - CalabashTest
4 | When I press button number 100
5 |
6 |
--------------------------------------------------------------------------------
/Calabash/tests/my_first.feature.iOS-Compass:
--------------------------------------------------------------------------------
1 | Feature: Calabash Testing for iPhone - use app : Compass
2 |
3 | #Scenario: Checking rotate - Compass
4 | # When I rotate the device to landscape
5 | # Then I wait
6 | # Then I rotate the device to portrait
7 | # Then I wait
8 |
9 |
--------------------------------------------------------------------------------
/ClearSafariHistoryData/testng.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Class name | 4 |Method name | 5 |Groups | 6 |
---|---|---|
TestNG.xcuitest.SingleScriptXCUITest | 8 |||
@Test | 11 |||
14 | | f | 15 ||
@BeforeClass | 18 |||
21 | | beforeClass | 22 ||
@BeforeMethod | 25 |||
@AfterMethod | 28 |||
@AfterClass | 31 |||
34 | | afterClass | 35 |
Test results
6 |Suite | Passed | Failed | Skipped | testng.xml |
---|---|---|---|---|
Total | 2 | 0 | 1 | |
Suite | 9 |2 | 0 | 1 | Link |
Class name | 4 |Method name | 5 |Groups | 6 |
---|---|---|
com.networkPreference.tests.NetworkPreferencesTest | 8 |||
@Test | 11 |||
14 | | networkPreferenceTest | 15 ||
@BeforeClass | 18 |||
@BeforeMethod | 21 |||
@AfterMethod | 24 |||
@AfterClass | 27 |
Test results
6 |Suite | Passed | Failed | Skipped | testng.xml |
---|---|---|---|---|
Total | 3 | 0 | 0 | |
Suite | 9 |3 | 0 | 0 | Link |
Class name | 4 |Method name | 5 |Groups | 6 |
---|---|---|
com.perfecto.demo.tests.Flipkart.LoginToFlipKartTest | 8 |||
@Test | 11 |||
14 | | f | 15 ||
@BeforeClass | 18 |||
@BeforeMethod | 21 |||
@AfterMethod | 24 |||
@AfterClass | 27 |
Class name | 4 |Method name | 5 |Groups | 6 |
---|---|---|
com.perfecto.demo.tests.eBay.LoginToeBayTest | 8 |||
@Test | 11 |||
14 | | loginWithInvalidCredentials | 15 ||
@BeforeClass | 18 |||
@BeforeMethod | 21 |||
@AfterMethod | 24 |||
@AfterClass | 27 |
Test results
6 |Suite | Passed | Failed | Skipped | testng.xml |
---|---|---|---|---|
Total | 4 | 0 | 0 | |
Suite | 9 |4 | 0 | 0 | Link |