摘要: --from <fluent phthon> This is why modifying the contents of a dict while iterating through it is a bad idea. If you need to scan and add items to a d 阅读全文
posted @ 2019-02-26 05:14 happyran 阅读(194) 评论(0) 推荐(0)
摘要: 1.Download HTMLTestRunner.py ,add it directly into your working directory as a module (if use python3, need some adjustment )2.Create our unit test fi 阅读全文
posted @ 2019-02-23 03:45 happyran 阅读(489) 评论(0) 推荐(0)
摘要: 学习import behave module来实现BDD parameter参数的路径要加入引号 阅读全文
posted @ 2019-02-23 03:45 happyran 阅读(246) 评论(0) 推荐(0)
摘要: 看到一段话,讲的有点道理 并不是每修复一个 bug 都需要写测试。很多公司都流传一个常见的教条,就是认为每修复一个 bug,都需要为它写测试,用于确保这个 bug 不再发生。甚至有人要求你这样修复一个 bug:先写一个测试,重现这个 bug,然后修复它,确保测试通过。这种思维其实是一种生搬硬套的教条 阅读全文
posted @ 2019-02-23 03:44 happyran 阅读(212) 评论(0) 推荐(0)
摘要: from fluent python: Python sequences are often categorized as mutable or immutable, but it is also useful to consider a different axis: flat sequences 阅读全文
posted @ 2019-02-23 03:43 happyran 阅读(287) 评论(0) 推荐(0)
摘要: 使用selenium的chrome driver总是error . check setting 1. path 2.chromedriver.exe location also in the same foldefr as chrome. But error still exists . 暂时直接指 阅读全文
posted @ 2019-02-20 12:10 happyran 阅读(341) 评论(0) 推荐(0)
摘要: selenium 访问一个form的title,总是报错如题: WebElement object has no attribute 'sendKeys' [duplicate] 找了好几个方法都不管用: 1. post_page.form_field(filed_name).send_Keys(c 阅读全文
posted @ 2019-02-20 12:09 happyran 阅读(4146) 评论(0) 推荐(0)