背景:

创建商品需要单位。
对商品的增删改查停启用,批量操作,模糊查询等等,就涉及 20 个接口。
框架:java+sprintboot+testng+allure
1.对于高频使用的数据,是服务启动预先生成,服务结束全部删除,这个是通过,还是等到需要使用的时候生成,然后用完后接口删除?

2.自动化测试用例的设计
除了创建不依赖外,后续操作基本都依赖创建商品这个操作。
针对这些接口写用例,大家是把这一套流程放在一个 test 方法里面,还是放在一个类下,然后不同 test 方法,通过顺序执行的形式来执行?

3.大家的 case 是怎么存放的呢?
一个接口一个 class,还是一个 Service 一个 class,一个 contorllor 下的所有接口放在一起?

4.使用 allure 每次执行都会遇到这个报错,没找到原因。uuid 确实没找到,但是每次都是重复执行的,每次都会报错,也没改动什么,网上也没找到资料。

18:48:22.359 [main] ERROR io.qameta.allure.AllureLifecycle - Could not update test fixture: test fixture with uuid 1bdad95a-b826-46b3-b8a4-df9ae686f03b not found
18:48:22.366 [main] ERROR io.qameta.allure.AllureLifecycle - Could not stop test fixture: test fixture with uuid 1bdad95a-b826-46b3-b8a4-df9ae686f03b not found
18:48:22.367 [main] ERROR io.qameta.allure.AllureLifecycle - Could not stop test container: container with uuid 3da6516e-8bbf-4bd1-8c47-5b93d3b891b2 not found
18:48:22.367 [main] ERROR io.qameta.allure.AllureLifecycle - Could not write test container: container with uuid 3da6516e-8bbf-4bd1-8c47-5b93d3b891b2 not found


↙↙↙阅读原文可查看相关链接,并与作者交流