上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页

2019年2月15日

node之http模块

摘要: http模块 为什么用http模块? 为了创建服务器 怎么用http模块 1、创建服务器 2、服务器监听端口 把接口的路径当做文件的路径,这样做可以很方便的找到路径 先判断method方法,然后判断路径 req是请求对象 req中包含url信息,url(url就是路径+参数集合体,"/api?use 阅读全文

posted @ 2019-02-15 10:02 悬剑 阅读(93) 评论(0) 推荐(0)

2019年2月14日

airtest之脚本批量运行

摘要: 项目目录 根目录:D:\workspace\airtest\suite 脚本:douyin.air,dy.air 日志目录:log 日志目录由custom_launcher.py自动生成,custom_launcher.py目录:D:\workspace\airtest\suite\custom_l 阅读全文

posted @ 2019-02-14 17:38 悬剑 阅读(7188) 评论(4) 推荐(2)

airtest之一个脚本在多设备上运行

摘要: 把命令1放入1.bat中,把命令2,放入2.bat中,双击打开2个bat文件即可 阅读全文

posted @ 2019-02-14 17:10 悬剑 阅读(1167) 评论(0) 推荐(0)

2019年2月13日

npm概念

摘要: npm 是什么 node package manager:node包管理工具 为什么要使用npm 安装第三方库:https://www.npmjs.com/ 使用第三方库的时候需要先安装,安装后,才能使用第三方库 怎么用 npm install *** (npm i ***) 安装包 下载安装在当前 阅读全文

posted @ 2019-02-13 17:45 悬剑 阅读(247) 评论(0) 推荐(0)

node概念

摘要: node 是什么 node.js是服务器端运行环境,让我们js可以在服务端环境运行 js运行环境 浏览器或node 阅读全文

posted @ 2019-02-13 17:44 悬剑 阅读(163) 评论(0) 推荐(0)

2019年2月11日

python -m xx.py和python xx.py的区别

摘要: python xx.pypython -m xx.py 为什么用python -m ? 使sys.path的值不一样 python xx.py //sys.path的值,包含脚本所在的当前目录 python -m xx.py //sys.path的值,包含命令行中,输入命令时,cmd显示的目录 用p 阅读全文

posted @ 2019-02-11 14:47 悬剑 阅读(780) 评论(0) 推荐(0)

2019年2月2日

命令行运行脚本

摘要: 本地部署python环境 Python(2.7或<=3.6),我们更推荐使用 Python3 ,如果你愿意的话我们也同样建议使用 virtualenv 等虚拟环境新建一个干净的python环境 pip install airtest pip install pocoui 使用python命令行运行脚 阅读全文

posted @ 2019-02-02 17:33 悬剑 阅读(466) 评论(0) 推荐(0)

web使用

摘要: web send_keys("Airtest Project", Keys.ENTER)//输入后执行某个键盘事件 不同标签页切换 Airtest-Selenium中用driver.switch_to_previous_tab()和driver.switch_to_new_tab()两个接口来处理不 阅读全文

posted @ 2019-02-02 17:28 悬剑 阅读(421) 评论(0) 推荐(0)

window

摘要: window 连接窗口(窗口嵌入) 组合键输入 修饰符: '+': {VK_SHIFT} '^': {VK_CONTROL} '%': {VK_MENU} 又名Alt键 send_keys ('^ a ^ c' ) #select all(Ctrl + A)并复制到剪贴板(Ctrl + C) sen 阅读全文

posted @ 2019-02-02 17:26 悬剑 阅读(510) 评论(0) 推荐(0)

AirtestIDE使用

摘要: AirtestIDE adb 自带adb:home目录/airtest/core/android/static/adb/windows/adb.exe 自带chromedriver:home目录 python第三方库也自带adb:目录一般为python目录下的 Lib\site-packages\a 阅读全文

posted @ 2019-02-02 17:23 悬剑 阅读(1647) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页

导航