Tag: 自动化

JetBrains AppCode如何启动iOS模拟器?

我只是看着JetBrains的App Code IDE,它似乎能够启动iOS模拟器并在其中运行应用程序。 当我不得不自动部署我的项目时,我不得不求助于Applescript和GUI自动化。 他们似乎正在使用一个叫做“simlauncher”的封闭工具。 我不知道它背后的魔法是什么。 更新: 在看活动监视器,我看到osascript从模拟器启动之前从simlauncher启动。 它可以再次成为Applescript吗? 我以为iOS Simulator.app不是脚本的。 iOS模拟器似乎是由launchd启动,所以simlauncher绝对不是自己启动它。 此外,simlauncher只保留到实际应用程序正在模拟器中运行。 他们正在投票吗? 对于设备构build,他们正在使用AMDeviceService,这可能是Apple Mobile Device Service的一个版本。 这是一个来自jail破解SDK的技术吗? 模拟器上的'ps'输出的更多信息: plumenator 26404 12.9 1.3 290172 52772 ?? SX 8:56PM 0:03.62 /Users/plumenator/Library/Application Support/iPhone Simulator/4.3.2/Applications/817A280D-1F74-4755-B848-B04EC8A24ADA/xxx.app/xxx plumenator 26395 2.3 0.3 444208 13560 ?? S 8:56PM 0:00.72 /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone Simulator -SessionOnLaunch NO plumenator 26402 1.4 0.8 318320 33052 ?? […]

如何在同一个目标中有效地使用Autolayut和自动resize?

我有一个目标。 这是一个基于login的应用程序。 由于遗留代码,我不得不在一些视图控制器中使用自动resize,而使用自动布局更新了较新的用户界面。 如果Autolayout必须在iPhone 6和7 (4.7"/5.5" screens)我必须为这些添加启动图像。 问题 : 当我添加启动图像时,所有未使用自动布局的屏幕都会受到干扰。 如果我不使用启动屏幕图像,则使用自动布局的所有视图都会放大并显得比预期的稍大。 我没有奢望更新遗留代码来使用自动布局。 有人可以给我一个替代scheme或工作。

在Mac上启动并运行appium

我刚刚安装了Java和appium,如下面的链接所述: 在macOS sierra上安装appium 10.12.3 现在我该如何启动和运行appium来开始编写代码或testing?

Appium,Instruments在启动时坠毁

当我将Xcode从6.4更新到7.2时,我的Appium UI Automation停止工作,仪器崩溃。 Appium:1.4.13 Xcode:7.2 这里是错误日志: info: Launching instruments info: [debug] Attempting to run app on iPhone 6 (8.4) info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w "iPhone 6 (8.4)" /var/folders/23/nmp6lms102vg0s25m1322t400000gp/T/116125-731-112rfi4/Time.app -e UIASCRIPT "/Users/bogdan.shubravyi/Library/Application Support/appium/bootstrap/bootstrap-f062718992d59810.js" -e UIARESULTSPATH /tmp/appium-instruments info: [debug] And extra without-delay env: {"DYLD_INSERT_LIBRARIES":"/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-instruments/thirdparty/iwd7/InstrumentsShim.dylib","LIB_PATH":"/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-instruments/thirdparty/iwd7"} info: [debug] And launch timeouts (in […]

Appium 仪器在启动时崩溃

也许有人可以帮助我。 当appium尝试运行应用程序时,屏幕会在应用程序启animation面中闪烁,就好像appium试图多次启动应用程序一样。 这种行为在模拟器和真实设备上都会发生。 我设置启用我的iOS设备UI Autimation,但是当我尝试启动检查器我有这个问题: info: [debug] [INST STDERR] 2015-11-05 15:11:05.082 instruments[1495:39489] WebKit Threading Violation – initial use of WebKit from a secondary thread. info: [debug] [INST STDERR] 2015-11-05 15:11:06.049 instruments[1495:39460] Attempting to change event horizon while disengage error: Failed to start an Appium session, err was: Error: Instruments crashed on startup info: [debug] [INST […]