- 博客(13)
- 资源 (3)
- 收藏
- 关注
转载 postman测试实例--断言
postman测试实例--断言让我们来看看postman测试的一些例子。 其中大部分是作为内部postman片段。 大多数测试是为单行的JavaScript语句一样简单。 只要你想一个请求,你可以有很多的测试。注意:一个响应已从服务器接收后测试脚本运行。测试实例1.设置环境变量 postman.setEnvironmentVariable("key", "value"); 例子: p...
2018-10-26 09:25:39 600
原创 mysql使用总结
mysql单表查询1. 查找某个字段有哪些类型,可以用group by, 分组查询可以列出所有的类型SELECT * FROM t_dispatch_log GROUP BY failure_reason;2. 查找最新时间段的数据sELECT * FROM t_dispatch_log where create_time > '2018-10-11 14:00:00' OR............
2018-10-13 09:45:03 669
转载 python egg,pip,setuptools
python egg文件解压unzip 就可以了。 由于项目需要将某些版本的库打包,然后 sys.path.insert方式引用(避免升级包导致某些旧的系统崩掉)。在将egg文件打包时,发现不可用。但相关模块的__path__属性显示, 这些内容在egg里面,于是想到可能这只是个压缩包。谷歌了一番,找到了解压的方法:https://mail.python.org/piperma...
2018-09-12 09:44:19 686
原创 appium与nodejs版本兼容
Appium是使用nodejs实现的,所以node是解释器,首先需要确认安装好下载了node-v8.11.3,appium server1.8.1, 执行报错,SyntaxError: Unexpected token import查了很多说是nodejs还不支持SE6,有两种解决方法,照着做可能不太懂一直没有解决,后来直接安装了1.6.3的Appium-desktop, Appium-d...
2018-09-11 11:35:33 7805
转载 Python中self用法详解
python也是面向对象的一种弱类型,有类型,属性,方法python 创建实例对象有个初始化方法用到Python当中的一个内置方法__init__方法,类似java的构造函数1.__init__方法的第一参数永远是self,表示创建的类实例本身,在__init__方法内部,就可以把各种属性绑定到self,因为self就指向创建的实例本身2.有了__init__方法,在创建实例的时候,就...
2018-09-10 18:10:45 814
原创 pagefactory 类初始化
PageFactory是为了支持页面设计模式而开发出来的,把元素定位分离出来Web端@FindBy(id = "foobar")WebElement foobar;移动端@AndroidFindBy(xpath = "//android.widget.Button[@content-desc=\"Add Contact\"]")private MobileElement B...
2018-09-01 11:03:45 1529 2
原创 You can implement missing steps with the snippets below:
运行runner一直报You can implement missing steps with the snippets below:后来发现是glue里写的不对feature写feature文件的路径,比如src/main/java/com/example/featuresglue写step的包路径,比如com.example.step我之前一直把glue写成src/main/j...
2018-08-31 09:10:22 1124
原创 java.lang.NoClassDefFoundError: gherkin/lexer/Encoding
Download the latest version of the Gherkin jar (among others) fromhttp://repo1.maven.org/maven2/info/cukes/gherkin/Below is the listing, where, on the webpage, each one is a directory-link contain...
2018-08-30 10:11:02 565
原创 linux常用简单命令学习
1. pws 查看当前目录2. cd 切换目录3. ls 查看当前目录下的文件4. mkdir xx 创建目录xx5. cp file f1 dir d1 复制文件f1 到目录 d16. mv filef1 dir d1 移动文件f1 到目录 d17. rm file1 删除file18. cat9. find...
2018-06-25 15:39:52 472 1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人