51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 5153|回复: 3
打印 上一主题 下一主题

[Appium] Appium问题

[复制链接]

该用户从未签到

跳转到指定楼层
#
发表于 2015-1-9 10:51:19 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
import os
from selenium import webdriver
PATH = lambda p: os.path.abspath(
    os.path.join(os.path.dirname(__file__), p)
)
desired_caps={}
desired_caps['device']='Android'
desired_caps['browserName'] = ''
desired_caps['version'] = '4.2.2'
desired_caps['app'] = PATH('C:\\Users\\guji\\Desktop\\APK\\DriveNetInfo-51.12.85_110000004.apk')
desired_caps['app-package'] = 'xxxxxxx'
desired_caps['app-activity'] = 'xxxxxxxx'
driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub',desired_caps)


D:\Tools\Python27\python.exe C:/Users/guji/Desktop/Pytest/appiumTest.py
Traceback (most recent call last):
  File "C:/Users/guji/Desktop/Pytest/appiumTest.py", line 14, in <module>
    driver = webdriver.Remote('http://192.168.85.1:4723/wd/hub',desired_caps)
  File "D:\Tools\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 73, in __init__
    self.start_session(desired_capabilities, browser_profile)
  File "D:\Tools\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 121, in start_session
    'desiredCapabilities': desired_capabilities,
  File "D:\Tools\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 171, in execute
    response = self.command_executor.execute(driver_command, params)
  File "D:\Tools\Python27\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 349, in execute
    return self._request(command_info[0], url, body=data)
  File "D:\Tools\Python27\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 417, in _request
    resp = opener.open(request)
  File "D:\Tools\Python27\lib\urllib2.py", line 404, in open
    response = self._open(req, data)
  File "D:\Tools\Python27\lib\urllib2.py", line 422, in _open
    '_open', req)
  File "D:\Tools\Python27\lib\urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "D:\Tools\Python27\lib\urllib2.py", line 1214, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "D:\Tools\Python27\lib\urllib2.py", line 1184, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno 10061] >

请教给位这是什么问题呀

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

  • TA的每日心情
    开心
    2015-4-23 18:44
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    3#
    发表于 2015-4-23 18:42:37 | 只看该作者
    appium 没有启动~
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-11-15 20:35 , Processed in 0.065778 second(s), 23 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表