随笔分类 -  Test Automation

摘要:Refer to this website: https://www.guru99.com/what-everybody-ought-to-know-about-test-planing.html#:~:text=How%20to%20write%20a%20Test%20Plan%201%20An 阅读全文
posted @ 2023-04-17 08:57 tzmok 阅读(130) 评论(0) 推荐(0)
摘要:AAA - Structure Arrange Act Assert https://www.codeproject.com/Articles/1182279/Unit-Testing-BDD-AAA-Structure-And-Object-Mocking 阅读全文
posted @ 2023-04-17 08:56 tzmok 阅读(21) 评论(0) 推荐(0)
摘要:With new-age project development methodologies like Agile and DevOps slowly replacing the old-age waterfall model, the demand for testing is increasin 阅读全文
posted @ 2023-04-17 08:55 tzmok 阅读(54) 评论(0) 推荐(0)
摘要:assertEquals 函数原型1: assertEquals([String message],expected,actual) 参数说明: message是个可选的消息,假如提供,将会在发生错误时报告这个消息。 expected 是期望值,通常都是用户指定的内容。 actual 是被测试的代码 阅读全文
posted @ 2021-05-24 13:59 tzmok 阅读(1179) 评论(0) 推荐(0)
摘要:RestAssured REST Assured是一个可以简化HTTP Builder顶层 基于REST服务的测试过程的Java DSL(针对某一领域,具有受限表达性的一种计算机程序设计语言)。它支持发起POST,GET,PUT,DELETE,OPTIONS,PATCH和HEAD请求,并且可以用来验 阅读全文
posted @ 2021-05-22 16:57 tzmok 阅读(58) 评论(0) 推荐(0)
摘要:TDD 的理解开始 错了了 TDD(测试驱动开发)-Test-Driven Development。 先写测试用例在开发。 先用 junit 写测试,然后再写代码; 写完代码,运行测试,如果测试失败,修改代码,运行测试……直到测试成功。 如果以后对程序进行修改,重构 ( refactoring ), 阅读全文
posted @ 2020-10-20 20:43 tzmok 阅读(200) 评论(0) 推荐(0)
摘要:1.什么是setUp()和tearDown()函数? 2.为什么我们要用setUp()和tearDown()函数? 3.我们该怎样用setUp()和tearDown()? 1.什么是setUp()和tearDown()函数? setUp()函数是在众多函数或者说是在一个类类里面最先被调用的函数,而且 阅读全文
posted @ 2020-07-01 13:14 tzmok 阅读(1004) 评论(0) 推荐(0)