代码改变世界

随笔档案-2016年06月

selenium python bindings 写测试用例

2016-06-17 14:22 by chercher, 519 阅读, 收藏,
摘要: 这章总结selenium在UI测试方面的用法 首先创建一个类 PythonOrgSearch ,其中 test_search_in_python_org 方法中写的是一个测试用例,像JUnit中@before@after一样的作用,可以用setUp和tearDown函数。这两个函数分别表示在每个测试 阅读全文

selenium python bindings 初步用法及简单参考例子

2016-06-17 11:42 by chercher, 1010 阅读, 收藏,
摘要: 掌握selenium最简单的方法就是参考例子进行学习,下面给出之前项目的测试例子及分析 # -*- coding: utf-8 -*- import time from selenium import webdriver # 使用firefox浏览器来展示效果,创建了selenium WebDriver的实例 driver = webdriver.Firefox() #driver.get方法打... 阅读全文

Git从fork分支开始的过程整理

2016-06-15 16:29 by chercher, 28444 阅读, 收藏,
摘要: 文章适用于团队合作的时候多个人向一个repo贡献,整理了Git从fork分支开始的过程。 1. Fork 在github上你要贡献的repo(eg.http://github/remote/test.git)之后称上游仓库。点击fork,将上游仓库fork到你的github,之后称为远程库(eg.h 阅读全文