拾月公子
天堂有行 · 共 142 篇文章
Python 概述
Python是一种清晰而强大的面向对象编程语言,可与Perl,Ruby,Scheme或Java相媲美。 Python的一些显着特性: 使用优雅的语法,使您编写的程序更容易阅读。 是一种易于使用的语言,使您的程序运行变得简单。这使得Python非常适合原型开发和其他特殊编程任务,而不会影响可维护性。 附带一个大型标准库,支持许多常见的编程任务,例如连接到Web服务器,使用正则表达式搜索文本,读取和修改文件。 Python的交互模式可以轻松测试代码的短片段。还有一个名为IDLE的捆绑开发环境。 通过添加用C或C ++等编译语言实现的新模块,可以轻松扩展。 也可以嵌入到应用程序中以提供可编程接口。…
2018-08-22 16:52 · Python笔记 · 评论(0)
Pytest运行测试用例
import pytest @pytest.mark.P0 def test_case1(): pass # perform some P0 test for your app def test_case2(): pass def test_case3(): pass class TestClass: def test_case4(self): pass 1.选择运行特定的某个类 你可以按照某个测试用例的的模块,类或函数来选择你要运行的case pytest -v test_pytest_markers.py::TestClass 2.选择运行特定的某个测试用例, 适合一开始在调试单个测试用…
2017-12-05 11:18 · Pytest · 评论(0)
How to design Test Case
Test case definition “A test case has components that describe an input, action or event and an expected response, to determine if a feature of an application is working correctly.” Definition by Glossary. Simply put, a test case is a scenario made up of a sequence of steps and condition or variabl…
2017-10-10 15:57 · 测试用例 · 评论(0)
JavaMail
一个非常详细的JavaMail教程: http://blog.csdn.net/zhoubin_v/article/details/1616044 http://raising.iteye.com/blog/2176060
2016-08-08 16:30 · Java · 评论(0)
数据驱动
相同的测试脚本使用不同的测试数据来执行,测试数据和测试行为进行了完全的分离,这样的测试脚本设计模式称为数据驱动。 1)编写测试脚本,脚本需要支持程序对象,文件或者数据库读入测试数据 2)将测试脚本使用的测试数据存入程序对象,文件,或者数据库等外部介质中 3)运行脚本,循环调用存储在外部介质中的测试数据 4)验证所有的测试结果是否符合期望的结果 1.TestNG dataprovider 2.TestNG和CSV 3.TestNG, Apache POI和Excel 4.Mysel数据库
2016-07-26 11:10 · Selenium 自动化测试 · 评论(0)
Java访问剪贴板
以下共有4个函数分别是: 1.从剪切板获得文字。 2.将字符串复制到剪切板。 3.从剪切板获得图片。 4.复制图片到剪切板。 Java代码 收藏代码 public static String getSysClipboardText() { String ret = ""; Clipboard sysClip = Toolkit.getDefaultToolkit().getSystemClipboard(); // 获取剪切板中的内容 Transferable clipTf = sysClip.getContents(null); if (clipTf != null) { // 检查内容是…
2016-07-19 15:44 · Java · 评论(0)
一、安装
安装Python 去Python官网 https://www.python.org/downloads/下载最新版本 Python 2.7.11 双击默认安装即可,一路next(安装过程中可选择(Add python.exe to Path) 安装wxPython http://www.wxpython.org/download.php 下载Unicode版本的wxPython2.8-win32-unicode-2.8.12.1-py27, 2.8.12.1是RIDE稳定支持的版本,py27是Python2.7 双击默认安装即可,一路next 安装Robot Framework 之前安装的P…
2016-04-22 13:47 · Python+Robot Framework+Selenium2Library · 评论(0)
OWASP: Insecure Direct Object References
OWASP: Insecure Direct Object References
2015-12-23 16:44 · OWASP · 评论(0)
OWASP: Broken Authentication and Session Management
OWASP: Broken Authentication and Session Management
2015-12-23 16:43 · OWASP · 评论(0)
Test
<iframe src="http://citizen-stage.nixle.com/signup/widget/g/799" frameborder="0" scrolling="auto" width="275" height="360" marginwidth="0" marginheight="0"></iframe>
2015-04-09 15:25 · 评论(0)
标点符号
+ plus 加号;正号 - minus 减号;负号 ± plus or minus 正负号 × is multiplied by 乘号 ÷ is divided by 除号 = is equal to 等于号 ≠ is not equal to 不等于号 ≡ is equivalent to 全等于号 ≌ is equal to or approximately equal to 等于或约等于号 ≈ is approximately equal to 约等于号 < is less than 小于号 > is greater than 大于号 ≮ is not less than 不小于号 …
2015-01-24 20:58 · English study · 评论(0)