小编tri*_*ter的帖子

在 Cypress 中配置屏幕截图文件夹

我使用 Cypress 作为我的用户界面测试自动化框架。
目前我的规范文件(测试文件的逻辑组织)的文件夹结构是:

~/myAccount/header/header.spec.js

~/myAccount/footer/footer.spec.js

~/myAccount/mainTabs/home.spec.js

等等...
现在,当我在 cypress.json 中配置我的截图文件夹来截图并保存失败测试用例的截图时,cypress 内部会在截图文件夹中创建一个文件夹结构。例如,如果footer.spec.js 中的测试失败,它会将屏幕截图保存在

~/screenshots/myAccount/footer/footer.spec.js

我想摆脱这种递归文件夹结构并将所有屏幕截图保存在屏幕截图文件夹中(以便我可以轻松访问这些屏幕截图并将其添加到我的 mochawesome 报告中)。
有什么办法吗?任何帮助将不胜感激,如果我无法正确提出我的问题,请告诉我。我愿意添加更多信息。

cypress mochawesome

2
推荐指数
1
解决办法
3289
查看次数

Breadth first search in LISP

I have a representation of a tree using lists. For example:

(1 ((2 (3)) (3 (2)))) (2 ((1 (3)) (3 (1)))) (3 ((1 (2)) (2 (1)))))`
Run Code Online (Sandbox Code Playgroud)

Now I need to traverse it level by level while maintaining the hierarchy tree. For instance:

  1. Traversing root node (1)
  2. Traversing depth 1 (1 2) (1 3) (2 1) (3 1) (3 1) (3 2)
  3. Traversing depth 2 (1 2 3) (1 3 2) (2 1 3) (2 3 1) (3 1 2) (3 …

lisp common-lisp

-1
推荐指数
1
解决办法
379
查看次数

标签 统计

common-lisp ×1

cypress ×1

lisp ×1

mochawesome ×1