Skip to content

Instantly share code, notes, and snippets.

View shapovalovei's full-sized avatar
🎯
Focusing on TrueAutomation.OI

Eugene Shapovalov shapovalovei

🎯
Focusing on TrueAutomation.OI
View GitHub Profile
19:14:03.294 xcodebuild[87769:30903968] Beginning test session WebDriverAgentRunner-4FF55857-5A92-49AB-86C5-2F93A67689D3 at 2017-05-09 19:14:03.292 with Xcode 8E1000a on target <DVTiOSDevice: 0x7fd2cdee3230> {
deviceSerialNumber: F17NFAHCG5MD
identifier: 599ee8713eddeb9f7f4c9a35ec69dbb8cf53f3c8
deviceClass: iPhone
deviceName: iPhone
deviceIdentifier: 599ee8713eddeb9f7f4c9a35ec69dbb8cf53f3c8
productVersion: 10.0.1
buildVersion: 14A403
deviceSoftwareVersion: 10.0.1 (14A403)
deviceArchitecture: arm64
-------------------------------------------------------
T E S T S
-------------------------------------------------------
objc[8295]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/bin/java (0x1063ee4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x1064e84e0). One of the two will be used. Which one is undefined.
Running TestSuite
[INFO] 21:04:08: [SuiteListener] All Tests
[INFO] 21:04:09: [DriverFactory] Look for the launched iOS proxy on port: 27763
[INFO] 21:04:09: [DriverFactory] Port: 27763 is free
[INFO] 21:04:09: [DriverFactory] Execute command: [ios_webkit_debug_proxy, -c, f2b87b1ace53f97344a6c46ba67f33c60fb46cd1:27763, -F]
[INFO] 21:04:11: [DriverFactory] iOS Proxy started.
05-23 15:09:30.100 862 3711 D SSRM:n : SIOP:: AP = 480, PST = 473, CUR = 300, LCD = 49
05-23 15:09:30.310 26264 26264 I chromium: [INFO:CONSOLE(1)] "Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.", source: https://ad.doubleclick.net/adj/N8029.197812NSO.CODESRV/B10650198.142138973;dcadv=;sz=1x2;ord=240978078319.73773 (1)
05-23 15:09:30.310 26264 26264 I chromium: [INFO:CONSOLE(145)] "Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.", source: https://ad.doubleclick.net/adj/N8029.197812NSO.CODESRV/B10650198.142138973;dcadv=;sz=1x2;ord=240978078319.73773 (145)
05-23 15:09:30.540 26264 26264 I chromium: [INFO:CONSOLE(1)] "Uncaught SecurityError: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "https://mstage.pepboys.com" from accessing
[Appium] Had trouble ending session 9b40413c-30c6-466d-99a7-a0c82f9bd0c0: Android bootstrap socket crashed: Error: This socket has been ended by the other party
[MJSONWP] Encountered internal error running command: Error: Android bootstrap socket crashed: Error: This socket has been ended by the other party
at Socket.<anonymous> (../../lib/bootstrap.js:87:21)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Socket.writeAfterFIN [as write] (net.js:297:8)
at ../../lib/bootstrap.js:112:25
at F (/usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/$.export.js:30:36)
at AndroidBootstrap.sendCommand$ (../../lib/bootstrap.js:108:18)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
Capybara.default_driver = :selenium
Capybara.register_driver :selenium do |app|
Capybara::Selenium::Driver.new(app, browser: :chrome)
end
Capybara.save_path = 'reports/screenshots'
After do |scenario|
# Do something after each scenario.
package utils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.openqa.selenium.net.UrlChecker;
import java.io.*;
import java.net.InetAddress;
import java.net.URL;
package utils;
import io.appium.java_client.remote.AndroidMobileCapabilityType;
import io.appium.java_client.remote.IOSMobileCapabilityType;
import io.appium.java_client.remote.MobileCapabilityType;
import io.appium.java_client.service.local.AppiumDriverLocalService;
import io.appium.java_client.service.local.AppiumServiceBuilder;
import io.appium.java_client.service.local.flags.AndroidServerFlag;
import io.appium.java_client.service.local.flags.GeneralServerFlag;
import io.appium.java_client.service.local.flags.IOSServerFlag;
trueautomation:proxy:index:detail 98 HTML:
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=11" />
<title>QuickTickets Dashboard</title>
<style type="text/css">html, body {height:100%;margin:0;}</style>
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="./VAADIN/themes/dashboard/favicon.ico" />
<link rel="icon" type="image/vnd.microsoft.icon" href="./VAADIN/themes/dashboard/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
import io.trueautomation.client.driver.TrueAutomationDriver;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import java.net.MalformedURLException;
import java.util.concurrent.TimeUnit;
/Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home/bin/java -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=64752:/Applications/IntelliJ IDEA.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/testng/lib/testng-plugin.jar:/Users/eugeneshapovalov/Projects/facebook-tests/target/test-classes:/Users/eugeneshapovalov/.m2/repository/org/seleniumhq/selenium/selenium-java/3.11.0/selenium-java-3.11.0.jar:/Users/eugeneshapovalov/.m2/repository/org/seleniumhq/selenium/selenium-api/3.11.0/selenium-api-3.11.0.jar:/Users/eugeneshapovalov/.m2/repository/org/seleniumhq/selenium/selenium-chrome-driver/3.11.0/selenium-chrome-driver-3.11.0.jar:/Users/eugeneshapovalov/.m2/repository/org/seleniumhq/selenium/selenium-edge-driver/3.11.0/selenium-edge-driver-3.11.0.jar:/Users/eugeneshapovalov/.m2/repository/org/seleniumhq/selenium/selenium-firefox-driver