This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # README.md # applicationinsights-android/src/main/java/com/microsoft/applicationinsights/library/ApplicationInsights.java
- Loading branch information
Showing
36 changed files
with
1,131 additions
and
992 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
source 'https://www.rubygems.org' | ||
|
||
gem 'appium_lib', '~> 6.0.0' | ||
gem 'rest-client', '~> 1.8.0' | ||
gem 'rspec', '~> 2.14.1' | ||
gem 'rspec-expectations', '~> 2.14.5' | ||
gem 'spec', '~> 5.3.4' | ||
gem 'sauce_whisk', '~> 0.0.14' | ||
gem 'test-unit', '~> 2.5.5' # required for bundle exec ruby xunit_android.rb | ||
gem 'byebug', '~> 4.0.5' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
GEM | ||
remote: https://www.rubygems.org/ | ||
specs: | ||
appium_lib (6.0.0) | ||
awesome_print (~> 1.6, >= 1.6.0) | ||
json (~> 1.8, >= 1.8.1) | ||
nokogiri (~> 1.6.3.1) | ||
selenium-webdriver (~> 2.41, >= 2.41.0) | ||
toml (~> 0.0, >= 0.0.4) | ||
awesome_print (1.6.1) | ||
blankslate (2.1.2.4) | ||
byebug (4.0.5) | ||
columnize (= 0.9.0) | ||
childprocess (0.5.6) | ||
ffi (~> 1.0, >= 1.0.11) | ||
chronic_duration (0.10.6) | ||
numerizer (~> 0.1.1) | ||
columnize (0.9.0) | ||
diff-lcs (1.2.5) | ||
domain_name (0.5.24) | ||
unf (>= 0.0.5, < 1.0.0) | ||
ffi (1.9.8) | ||
http-cookie (1.0.2) | ||
domain_name (~> 0.5) | ||
json (1.8.2) | ||
mime-types (2.5) | ||
mini_portile (0.6.0) | ||
multi_json (1.11.0) | ||
netrc (0.10.3) | ||
nokogiri (1.6.3.1) | ||
mini_portile (= 0.6.0) | ||
numerizer (0.1.1) | ||
parslet (1.5.0) | ||
blankslate (~> 2.0) | ||
rest-client (1.8.0) | ||
http-cookie (>= 1.0.2, < 2.0) | ||
mime-types (>= 1.16, < 3.0) | ||
netrc (~> 0.7) | ||
rspec (2.14.1) | ||
rspec-core (~> 2.14.0) | ||
rspec-expectations (~> 2.14.0) | ||
rspec-mocks (~> 2.14.0) | ||
rspec-core (2.14.8) | ||
rspec-expectations (2.14.5) | ||
diff-lcs (>= 1.1.3, < 2.0) | ||
rspec-mocks (2.14.6) | ||
rubyzip (1.1.7) | ||
sauce_whisk (0.0.18) | ||
json (~> 1.8.1) | ||
rest-client (~> 1.7) | ||
selenium-webdriver (2.45.0) | ||
childprocess (~> 0.5) | ||
multi_json (~> 1.0) | ||
rubyzip (~> 1.0) | ||
websocket (~> 1.0) | ||
spec (5.3.4) | ||
chronic_duration (~> 0.10.2) | ||
test-unit (2.5.5) | ||
toml (0.1.2) | ||
parslet (~> 1.5.0) | ||
unf (0.1.4) | ||
unf_ext | ||
unf_ext (0.0.7.1) | ||
websocket (1.2.2) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
appium_lib (~> 6.0.0) | ||
byebug (~> 4.0.5) | ||
rest-client (~> 1.8.0) | ||
rspec (~> 2.14.1) | ||
rspec-expectations (~> 2.14.5) | ||
sauce_whisk (~> 0.0.14) | ||
spec (~> 5.3.4) | ||
test-unit (~> 2.5.5) | ||
|
||
BUNDLED WITH | ||
1.10.3 |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
require File.expand_path('spec_helper') | ||
|
||
def defaultTestRun | ||
|
||
it 'should should tap track 5 times' do | ||
list_el = text('Track event') | ||
list_el.click | ||
back | ||
list_el.click | ||
back | ||
list_el.click | ||
back | ||
list_el.click | ||
back | ||
list_el.click | ||
back | ||
end | ||
|
||
it 'should background for 3s and foreground again 3 times' do | ||
background_app(3) | ||
sleep(2) | ||
background_app(3) | ||
sleep(2) | ||
background_app(3) | ||
end | ||
|
||
it 'should should tap track 5 times' do | ||
list_el = text('Track event') | ||
list_el.click | ||
back | ||
list_el.click | ||
back | ||
list_el.click | ||
back | ||
list_el.click | ||
back | ||
list_el.click | ||
back | ||
end | ||
|
||
it 'should background for 10s and foreground again' do | ||
background_app(10) | ||
sleep(2) | ||
end | ||
|
||
it 'should trigger a sync' do | ||
list_el = text('Trigger Synchronize') | ||
list_el.click | ||
back | ||
sleep(5) | ||
list_el.click | ||
back | ||
end | ||
|
||
it 'should crash the app' do | ||
list_el = text('Crash the App!') | ||
list_el.click | ||
end | ||
|
||
end | ||
|
||
describe 'Run default tests' do | ||
defaultTestRun | ||
end | ||
|
||
|
||
describe 'Run with disabled session management' do | ||
it 'Can disable session management' do | ||
list_el = text('Disable session management') | ||
list_el.click | ||
back | ||
end | ||
defaultTestRun | ||
end | ||
|
||
describe 'Run with re-enabled session management' do | ||
it 'Can enable session management' do | ||
list_el = text('Enable session management') | ||
list_el.click | ||
back | ||
end | ||
defaultTestRun | ||
end | ||
|
||
describe 'Run with disabled pageviews' do | ||
it 'Can disable pageviews' do | ||
list_el = text('Disable page view tracking') | ||
list_el.click | ||
back | ||
end | ||
defaultTestRun | ||
end | ||
|
||
describe 'Run with re-enabled pageviews' do | ||
it 'Can re-enable pageviews' do | ||
list_el = text('Enable page view tracking') | ||
list_el.click | ||
back | ||
end | ||
defaultTestRun | ||
end | ||
|
||
describe 'Run with disabled pageviews and session management' do | ||
it 'Can disable pageviews' do | ||
list_el = text('Disable page view tracking') | ||
list_el.click | ||
back | ||
end | ||
it 'Can disable session management' do | ||
list_el = text('Disable session management') | ||
list_el.click | ||
back | ||
end | ||
defaultTestRun | ||
end | ||
|
Oops, something went wrong.