我使用Python AppiumService启动我的appium服务器。
from appium.webdriver.appium_service import AppiumService
service = AppiumService()
args = [
"--address", "127.0.0.1", # this works
#"--address", "0.0.0.0", # this works on cmd line, but not in script. Why?
"--p
我有一个Appium测试项目,这是大约九个月前创建的,而且运行良好。从那时起,我就再次尝试在这个项目上工作,而且这个项目可以工作,但前提是我手动启动Appium (使用桌面应用程序)。该项目检查服务器是否已经运行,如果没有,则使用下面的服务逻辑启动它:
public class AppiumServer {
AppiumDriverLocalService service = null;
public void InitAppiumServer() {
System.out.println("Creating Appium Service . .
运行脚本时出现未知服务器端错误。
脚本将终止,而滚动,否则它将工作良好。
日志错误:
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: io.appium.uiautomator2.common.exceptions.UiAutomator2Exception: java.lang.IllegalStateException: UiAutomation not connected!
我正在使用Appium 1.3.7。几天前,.it在windows上正常工作,但是今天我访问它时,它给了我错误。
Unhandled error: Error: ENOENT, no such file or directory。
我在谷歌上搜索了一下,发现这可能是因为环境因素。但我正确地设置了ANDROID_HOME和PATH。我还升级了1.4.0。但还是同样的错误。
日志:
Starting Node Server
info: Welcome to Appium v1.3.7 (REV 72fbfaa116d3d9f6a862600ee99cf02f6d0e2182)
info: Appi
我需要使用selenium网格、appium和serenity.properties中的设置来运行测试。
我首先使用驱动程序类和本地selenium网格的url运行,它可以工作,但是当我从serenity.properties设置属性时,它不会运行
clase Driver.java driver.java类成功执行
public class Driver {
public static WebDriver appiumDriver() {
DesiredCapabilities capabilities1 = new DesiredCapabilities();
尝试在eclipse上启动测试时出现Appium错误。我已经安装了Xcode6.4,它应该可以工作,但它不能。
error: Could not determine Xcode version:Could not get Xcode version. /Library/Developer/Info.plist does not exist on disk.
info: [debug] Setting iOS SDK Version
info: [debug] Cleaning up appium session
info: [debug] Error: Could not get Xcode