Skip to content

Instantly share code, notes, and snippets.

View jraczak's full-sized avatar

Justin Raczak jraczak

View GitHub Profile
### Uploading negotiated files ###
dbug: Microsoft.Xtc.TestCloud.Services.TestCloudProxy[1]
HTTP POST request to https://testcloud.xamarin.com/cici/upload
info: Microsoft.Xtc.TestCloud.Services.TestCloudProxy[2]
Retrying in 10 seconds. Failed to reach server: Response status code does not indicate success: 400 (Bad Request).
dbug: Microsoft.Xtc.TestCloud.Services.TestCloudProxy[3]
Exception: System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Microsoft.Xtc.TestCloud.Services.TestCloudProxy.<>c__DisplayClass13_0`1.<<SendMultipartPostRequest>b__0>d.MoveNext() in /Users/Shared/Jenkins/jobs/Uploader master/workspace/Xtc/src/Xtc.TestCloud/Services/TestCloudProxy.cs:line 179
--- End of stack trace from previous location where exception was thrown ---
justinr@justinr-mac court-counter-appium (master) $ /Users/justinr/Desktop/Appium/Test\ Cloud\ Uploader/xtc/xtc test app-debug.apk b67ca9dbcd26ec517eed5ec2b88eab87 --user [email protected] --app-name "Court Counter" --devices fbe9602a --test-parameters pipeline:appium --workspace target/upload --debug
fail: Microsoft.Xtc.Cli.Program[0]
Error while executing command test: The type initializer for 'System.Net.Http.CurlHandler' threw an exception.
dbug: Microsoft.Xtc.Cli.Program[0]
System.TypeInitializationException: The type initializer for 'System.Net.Http.CurlHandler' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Http' threw an exception. ---> System.TypeInitializationException: The type initializer for 'HttpInitializer' threw an exception. ---> System.TypeInitializationException: The type initializer for 'CryptoInitializer' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'System.Security.Cryptography.Native': The specified
Error: The type initializer for 'System.Net.Http.CurlHandler' threw an exception.
Error: System.TypeInitializationException: The type initializer for 'System.Net.Http.CurlHandler' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Http' threw an exception. ---> System.TypeInitializationException: The type initializer for 'HttpInitializer' threw an exception. ---> System.TypeInitializationException: The type initializer for 'CryptoInitializer' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'System.Security.Cryptography.Native': The specified module could not be found.
(Exception from HRESULT: 0x8007007E)
at Interop.CryptoInitializer.EnsureOpenSslInitialized()
at Interop.CryptoInitializer..cctor()
--- End of inner exception stack trace ---
at Interop.CryptoInitializer.Initialize()
at Interop.HttpInitializer..cctor()
--- End of inner exception stack trace ---
at Interop.HttpInitializer.Initialize()
@jraczak
jraczak / gist:30011224c91b32057eebf5b1db4b1d4f
Created August 30, 2016 18:43
Appium fails to install settings app when already installed
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Running /Users/justinr/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s","00d2d967c0c8a765","install","/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-android-driver/node_modules/io.appium.settings/bin/settings_apk-debug.apk"]
[debug] [ADB] Running /Users/justinr/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s","00d2d967c0c8a765","install","/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-android-driver/node_modules/io.appium.settings/bin/settings_apk-debug.apk"]
[debug] [AndroidDriver] Shutting down Android driver
[AndroidDriver] Cannot shut down Android driver; it has already shut down
justinr@justinr-mac Movies (appium) $ appium
info: Welcome to Appium v1.4.10 (REV c97e824665ae82df682a0b540b38dfe8c13c8ac7)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: Console LogLevel: debug
info: --> POST /wd/hub/session {"desiredCapabilities":{"automationName":"Appium","app":"/Users/justinr/AndroidStudioProjects/Movies/app/app-release.apk","platformName":"Android","deviceName":"Nexus5X","appActivity":".MainActivity","appium-version":"1.5.3","appPackage":"com.justinraczak.android.movies"}}
info: Client User-Agent string: Apache-HttpClient/4.5.2 (Java/1.7.0_71)
info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : appium-version
info: [debug] Using local app from desired caps: /Users/justinr/AndroidStudioProjects/Movies/app/app-release.apk
info: [debug] Creating new appium session 0a40d65f-1bae-47b9-8923-826ca27f616c
info: Starting android appium
@jraczak
jraczak / gist:7d80bb224d76c6048adad6fd9671d21c
Created August 26, 2016 23:48
appium android studio errors
java.lang.NoClassDefFoundError: java/util/Base64
at com.xamarin.testcloud.appium.ShortIdentifier.calcBase64Hash(ShortIdentifier.java:50)
at com.xamarin.testcloud.appium.ShortIdentifier.shortId(ShortIdentifier.java:35)
at com.xamarin.testcloud.appium.ShortIdentifier.<init>(ShortIdentifier.java:20)
at com.xamarin.testcloud.appium.EventReporter.toId(EventReporter.java:79)
at com.xamarin.testcloud.appium.EventReporter.reportJunit(EventReporter.java:32)
at com.xamarin.testcloud.appium.Watcher.starting(Watcher.java:36)
at org.junit.rules.TestWatcher.startingQuietly(TestWatcher.java:108)
at org.junit.rules.TestWatcher.access$000(TestWatcher.java:46)
info: --> POST /wd/hub/session/205390f4-a4e7-40e2-a9e2-53cdacb55a0b/timeouts {"type":"implicit","ms":2000}
info: [debug] Set Android implicit wait to 2000ms
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"205390f4-a4e7-40e2-a9e2-53cdacb55a0b"}
info: <-- POST /wd/hub/session/205390f4-a4e7-40e2-a9e2-53cdacb55a0b/timeouts 200 2.567 ms - 76 {"status":0,"value":null,"sessionId":"205390f4-a4e7-40e2-a9e2-53cdacb55a0b"}
info: --> POST /wd/hub/session/205390f4-a4e7-40e2-a9e2-53cdacb55a0b/element {"using":"name","value":"Team A Score"}
info: [debug] Waiting up to 2000ms for condition
info: [debug] Pushing command to appium work queue: ["find",{"strategy":"name","selector":"Team A Score","context":"","multiple":false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"name","selector":"Team A Score","context":"","multiple":false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.saucelabs.appium.AndroidContactsTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 124.014 sec
Running com.saucelabs.appium.AndroidSlideTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 169.693 sec <<< FAILURE!
testSlider(com.saucelabs.appium.AndroidSlideTest) Time elapsed: 169.67 sec <<< ERROR!
org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 128.97 seconds
FATAL EXCEPTION: AsyncTask #1
Process: com.justinraczak.android.movies, PID: 2112
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:309)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
6-02 09:43:02.667 2044-2044/com.justinraczak.android.movies I/FA: App measurement is starting up, version: 9080
06-02 09:43:02.667 2044-2044/com.justinraczak.android.movies I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
06-02 09:43:02.739 2044-2044/com.justinraczak.android.movies D/FirebaseApp: Initialized class com.google.android.gms.measurement.AppMeasurement.
06-02 09:43:02.739 2044-2044/com.justinraczak.android.movies I/FirebaseInitProvider: FirebaseApp initialization successful
06-02 09:43:02.786 2044-2044/com.justinraczak.android.movies D/onCreate: ArrayList size is 0
06-02 09:43:02.789 2044-2044/com.justinraczak.android.movies D/AndroidRuntime: Shutting down VM
06-02 09:43:02.789 2044-2044/com.justinraczak.android.movies E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.justinraczak.android.movies, PID: 2044
java.lang.R