功能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第三方库


热门话题
序列化反序列化java。awt。颜色>java。木卫一。InvalidClassException   java禁用多个日期范围jDateChooser   java为什么我的特例apper会被扔进泽西/灰熊?   JavaIntelliJ比较两个覆盖率数据   java什么是servletsdefault。你怎么办?   单击几下libgdx后java按钮没有响应   使用java将字符串转换为JSONArray   文件系统在java中刷新fileSystemViewer   java如何在hibernate中避免脏检查   java奇怪的问题,带有分号和“无法解决…”   java将值从子面板传递到父面板   HTML JTextPane CSS的Java FontSizeAction   java文件代码神秘地变成了一堆(0000)