楼主不好意思,对于 ios 跑 monkey 这块是小白,ios 跑 monkey 的话机器必须是 mac 机吗
#10 楼 @pl02206984 sorry 啊,共看到,以前没试过你说的用管理员方式,不过既然改个环境变量就可以了,还是尽量不要用管理员吧
好的辛苦各位,我试下改下环境变量多谢
#1 楼 @lihuazhang 我都是下载的集成包安的,没有在网上下载
#1 楼 @haiquan180 好的谢谢,我先去看下
#1 楼 @chenhengjie123 请帮忙看下我刚才的回答吧,希望帮助解答谢谢
Exception in thread Thread-5:有很多这个报错,thread-6,thread-7 等等
你好,具体一点就是 A 脚本是开启多个 server 用的 [36minfo[39m: Welcome to Appium v1.3.4 (REV c8c79a85fbd6870cd6fc3d66d038a115ebe22efe)
[36minfo[39m: Appium REST http interface listener started on 0.0.0.0:4039
[36minfo[39m: [debug] Non-default server args: {"udid":"d2732a11","port":4039,"bootstrapPort":2201}
[36minfo[39m: Console LogLevel: debug 就是这个东西,B 脚本就是一些让手机点,滑,锁屏的一些操作
为什么 A 里 importB,什么目的
如果我想让手机做自动化操作,我就要先运行 A,然后在运行 B,这样很麻烦,A 里 importB 的话,我只要运行 A 脚本就可以了,省了 1 步,目前已经解决了刚刚的问题,有个新问题,就是,成功运行了,但中途会出现红色的报错,但是却不影响我脚本的正常功能。请帮忙看下这个报错是什么可以吗?
Exception in thread Thread-5:
Traceback (most recent call last):
File "F:\sfgj\python2\lib\threading.py", line 551, in bootstrap_inner
self.run()
File "F:\sfgj\python2\lib\threading.py", line 504, in run
self.target(*self.args, **self.kwargs)
File "C:\Users\v_gxu\workspace\python\python2\end\start_appium.py", line 84, in start_remote
driver = webdriver.Remote(r"http://localhost:%s/wd/hub" %p, cap)
File "build\bdist.win32\egg\appium\webdriver\webdriver.py", line 37, in init
super(WebDriver, self).init(command_executor, desired_capabilities, browser_profile, proxy, keep_alive)
File "F:\sfgj\python2\lib\site-packages\selenium-2.47.1-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 87, in init
self.start_session(desired_capabilities, browser_profile)
File "F:\sfgj\python2\lib\site-packages\selenium-2.47.1-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 136, in start_session
'desiredCapabilities': desired_capabilities,
File "F:\sfgj\python2\lib\site-packages\selenium-2.47.1-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 194, in execute
response = self.command_executor.execute(driver_command, params)
File "F:\sfgj\python2\lib\site-packages\selenium-2.47.1-py2.7.egg\selenium\webdriver\remote\remote_connection.py", line 395, in execute
return self._request(command_info[0], url, body=data)
File "F:\sfgj\python2\lib\site-packages\selenium-2.47.1-py2.7.egg\selenium\webdriver\remote\remote_connection.py", line 463, in _request
resp = opener.open(request, timeout=self._timeout)
File "F:\sfgj\python2\lib\urllib2.py", line 400, in open
response = self._open(req, data)
File "F:\sfgj\python2\lib\urllib2.py", line 418, in _open
'_open', req)
File "F:\sfgj\python2\lib\urllib2.py", line 378, in _call_chain
result = func(*args)
File "F:\sfgj\python2\lib\urllib2.py", line 1207, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "F:\sfgj\python2\lib\urllib2.py", line 1177, in do_open
raise URLError(err)
URLError:
谢谢楼主
楼主隔了这么久我才看到这个帖子,有个疑问希望帮忙解答,你写的这个脚本,设备的配置,做的操作。相当于有几台就要重复写几个,因为我的操作都一样,所以可不可以写多个设备的配置,只写一个操作,这样并行测试呢