Tag: appium

真实设备上的Appium检查员 – iOS

我正在为我的iOS自动化testing评估Appium。 作为其中的一部分,当我select我的设备目标作为iPhone模拟器时,我能够成功地执行appium元素检查器。 但是当我瞄准真实的设备时,我无法调用元素检查器。 我已经使用开发configuration文件签署了我的应用程序,并且能够从Xcode 5安装并运行我的应用程序。所以我的应用程序安装程序看起来没问题,因为我可以运行我的应用程序。 然后,我将Appium.app GUI中的所有细节configuration为捆绑ID,设备等,并启动了appium服务器和检查器。 当检查器启动时,我的应用程序在设备上成功打开,但它没有做任何进一步的行动,几秒钟后,我得到一个stream行“请确保appium服务器正在运行,目前正在设置APP_PATH ……. “ 我调用了一些debugging日志,我无法从日志中找出问题所在。 附加日志 info: Welcome to Appium v1.2.0 (REV e53f49c706a25242e66d36685c268b599cc18da5) debug: Non-default server args: {"app":"com.bharathapp.npuzzle","udid":"a3c3ccbed22942bd7866cbf3751363004acec0a8","address":"127.0.0.1","sessionOverride":true,"fullReset":true,"deviceName":"iPhone Retina (4-inch 64-bit)","orientation":"Portrait","showSimulatorLog":true,"defaultCommandTimeout":7200} info: Appium REST http interface listener started on 127.0.0.1:4723 info: LogLevel: debug info: –> GET /wd/hub/status {} debug: Appium request initiated at /wd/hub/status debug: Request received with params: […]

Appium:可以用于跨平台应用程序testing吗?

我有一个使用跨平台开发工具开发的应用程序。 这个应用程序具有相同的界面为ios(ipa)和android(apk)。 我可以编写一个自动化脚本,并在两个平台上运行,例如android和ios应用程序。 任何人使用Appium试过这个? 什么是定位技术,需要用于开发跨平台testing脚本。 例如通过tagName,xpath? 跨平台testingappium有什么限制?

iOS应用程序在创build新的appium会话时重置

我正在执行以下步骤 设置function并启动ABC应用程序。 通过提供应用path capabilities.setCapability(“app”,“/Users/changdeojadhav/Library/Developer/Xcode/DerivedData/ABC/Build/Products/Debug-iphonesimulator/ABC.app”); capabilities.setCapability( “bundleId”, “com.abc.ABC-演示”); 执行一些操作 通过driver.quit()退出驱动程序 设置Xyz应用程序的function。 并启动XYZ应用程序 执行一些步骤 通过driver.quit()退出驱动程序 重新启动ABC应用,如步骤#1所述。 预计“应用程序ABC应保持它的状态”,但ABC被重置。 我用–no-reset参数启动了appium。 任何关于我在这里失踪的想法谢谢

使用appium访问iOS控制中心

我试图用appium和下面的代码打开控制中心: int halfWidth = driver.manage().window().getSize().width / 2; int screenHeight = driver.manage().window().getSize().height; driver.swipe(halfWidth, screenHeight-5, halfWidth, screenHeight-300, 500); // driver is instance of IOSDriver 应用程序只需从底部向上绘制屏幕(使用坐标input),而不是打开控制中心。 任何人都知道如何使用appium和滑动(或任何其他方式)打开控制中心? 谢谢,查理

如何使appiumtesting在iOS上运行得更快?

目前,我正在使用appium进行iOS应用程序testing,并在Mac mini机器上使用Java编写了testing。 我正在使用Jenkins CI来运行我的testing。 我想以更快的速度运行我的testing,因为它在iOS模拟器上相当慢。 例如,如果我通过sendkeys()函数在textfield中input任何值(如'testdata'),则在模拟器中input速度很慢。 它首先从模拟器的键盘写字符't'然后'e'然后's'等。 以下是我的问题, 有什么方法可以在模拟器上更快地执行我的testing,特别是通过sendkeys()函数进入文本框时? 有什么办法可以在没有模拟器的情况下运行我的testing吗?

使用Appium和RubytestingiOS应用程序时是否需要加载元素?

我正在testing一个iOS应用程序,并且不能与login后的元素交互,因为Appium速度太快了。 有人可以请我指出一个使用WebDriverWait风格等待Appium iOStesting的例子吗? 最好在Ruby中。 谢谢。

在Mac上启动并运行appium

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

如何使用Java在Appium中处理本机iOS警报

我尝试编写应用程序的testing,该应用程序显示iOS的本机警报位置(此应用程序想要使用您当前的位置)。 我试过这个代码 driver.switchTo().alert.accept(); 这实际上适用于其他警报,但不适用于本地警报。 另外我注意到,从第二次运行一个testing(即使只有一个sysout没有什么),它会因SessionNotCreatedException失败,但如果我从应用程序中删除该警报,一切都好。 我使用Appium 1.3.4。 提前致谢。

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 […]