功能qa测试框架

lemoncheesecake的Python项目详细描述


Lemoncheesecake在提供诸如 固定装置和火柴。

下面是一个测试示例:

importjsonimportrequestsimportlemoncheesecake.apiaslccfromlemoncheesecake.matchingimport*URL="https://api.github.com/orgs/lemoncheesecake"@lcc.suite("Github tests")classgithub:@lcc.test("Test Organization end-point")deforganization(self):lcc.set_step("Get lemoncheesecake organization information")lcc.log_info("GET %s"%URL)resp=requests.get(URL)require_that("HTTP code",resp.status_code,is_(200))data=resp.json()lcc.log_info("Response\n%s"%json.dumps(data,indent=4))lcc.set_step("Check API response")check_that_in(data,"type",is_("Organization"),"id",is_integer(),"description",is_not_none(),"login",is_(present()),"created_at",match_pattern("^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$"),"has_organization_projects",is_true(),"followers",is_(greater_than_or_equal_to(0)),"following",is_(greater_than_or_equal_to(0)),"repos_url",ends_with("/repos"),"issues_url",ends_with("/issues"),"events_url",ends_with("/events"),"hooks_url",ends_with("/hooks"),"members_url",ends_with("/members{/member}"),"public_members_url",ends_with("/public_members{/member}"))

下面是相应的测试结果:

test results

新闻

2019年8月11日,LemoncheeseCake 1.0.0发布。这个主要版本带来了(除其他外):

  • 各种API改进
  • 为大多数api键入注释
  • 改进的文档
  • 新的API参考文档

查看完整的changelog 更多信息。

此版本与以前的0.22.x版本不兼容。迁移过程记录在 Migrating from to 0.22.x to 1.x

功能

  • 使用套件、测试和嵌套套件的高级测试层次结构
  • 测试描述和元数据:标记、属性(键=值关联)和链接
  • 支持测试筛选
  • 内置多种报告风格:html、json、xml、junit、reportportal、slack通知
  • 测试并行化
  • rich cli工具箱

lemoncheesecake与python 2.7、3.4-3.7兼容。

安装

Lemoncheesecake可以通过pip安装:

$ pip install lemoncheesecake

有关使用非默认报告后端安装lemoncheesecake的详细信息,请参见 here

文档

文档可在http://docs.lemoncheesecake.io上找到。

联系人

错误和改进的想法在门票中受到欢迎。谷歌集团论坛也可用于讨论 柠檬蛋糕:https://groups.google.com/forum/#!forum/lemoncheesecake

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
netbeans根据命名约定返回布尔类的getter的Java名称   java如何在MessageFormat中使用单引号   java如何在整数数组中只对奇数排序,而将偶数保留在其原始位置?   自定义ArrayAdapter中未定义java构造函数   java joda时间格式化程序解析yyyyymmdd(额外一小时)   java Spring引导控制器测试始终返回404   java如何提取类文件以获取该类文件中的类?   JTable java列不会显示   java Selenium Web驱动程序输出错误的Web表行数   当应用程序在mac上打开时,java SWT选项卡项会从页面上消失   java如何将html文件映射到过滤器   swing Java计算一段时间内两点之间的转换   javawebsphere和javax。xml。ws。spi。提供者:提供者组织。阿帕奇。axis2。jaxws。spi。提供者不是子类型   For循环在Java中没有按预期继续?   java如何配置gson以排除0个整数值   java读取一个由tab分隔的文件,并将单词放入ArrayList中   java我需要做什么才能让LiveConnect重新工作?   sqlservermerge2xml&使用java提取这些数据并将其存储在db表中   java如何在模型中添加新对象时通知网格