cost 292 ms
赛普拉斯 Typescript:如何存储可在每次拆解后使用的变量? - Cypress Typescript: how to store a variable that can be used in the afterEach teardown?

我有一些测试用例,这些用例在开始时将数据存储在一个变量中,以便在整个测试过程中使用它。 它在测试期间工作正常,可以在拆解之前一直调用到测试的最后一步,但是当我尝试在每次测试结束时运行的@afterEach拆解中使用它来执行任何全局清理命令时,该变量显示为空并且不再存储任何内容。 变量似乎意外重置。 ...

TestCaseA 拆解在 TestCaseB 启动后运行 4 秒,这是一个错误吗? - TestCaseA teardown runs 4 seconds after TestCaseB starts is this a bug?

我们正在使用 ReadyAPI 3.6.0,我们使用 Jenkins 和 testrunner 来执行我们的测试套件。 我试图了解我是否在 ReadyAPI 中发现了一个错误,或者它是否是用户错误。 我的场景是我有一个带有 TestCase A 和 TestCase B 的 TestSuite。对 ...

selenium.UnsupportedCommandException:找不到请求的资源,或者请求 - selenium.UnsupportedCommandException: the requested resource could not be found, or a request

获取异常失败配置:@AfterClass 拆解“org.openqa.selenium.UnsupportedCommandException:找不到请求的资源,或者使用映射资源不支持的 HTTP 方法接收到请求” enter code here //org.openqa.selenium.Uns ...

@After(@AfterEach, @AfterClass) 在 Junit 中有什么作用? - What does @After(@AfterEach, @AfterClass) does in Junit?

我是 Junit 的新手。 我正在学习我们必须使用 @BeforeEach 或 @Before 来设置一个新实例。 我还了解到,当我们使用 @AfterEach 或 @Afterclass 时,是一种拆卸方法,它会在所有测试后释放它们。 但是,我很好奇当我们不使用 @AfterEach 或 @Af ...

pytest:在测试用例不可见的夹具中分配属性 - pytest: Assigning attribute in a fixture not visible to test cases

为什么我无法在 pytest 夹具中设置 self.param 值? 这导致 我想在设置期间设置此属性,因为我最终将使用该参数执行方法级拆卸(不是类级拆卸,所以我没有使用产量)。 在这个例子中,我的测试看不到 self.param 值,我的拆卸函数也看不到。 将 self.param = 2 ...

笑话:如何在(仅)一个单独的测试后拆解 - jest: How to teardown after (just) an individual test

jest提供afterEach 、 beforeEach 、 afterAll和beforeAll来完成设置和拆卸逻辑。 我想做的是在一项特定测试后进行清理。 考虑以下: 上面的问题... 如果上面的测试由于某种原因失败,那么delete global.foo永远不会运行。 这意味着它之后的所有测 ...

是否调用 pytest_runtest_teardown 来跳过测试,而 pytest_runtest_setup 不是? - Is pytest_runtest_teardown called for skipped tests while pytest_runtest_setup is not?

我有一个实现以下钩子的插件: 一切正常,直到一些测试开始抛出AttributeError: 'NoneType' object has no attribute 'do_bla'并且确实item.config.bla是None 这发生在我标记为的测试中 我尝试ipdb - 设置挂钩 - 但它没有被 ...

laravel dusk tearDown() 必须与 Illuminate\\Foundation\\Testing\\TestCase::tearDown() 兼容 - laravel dusk tearDown() must be compatible with Illuminate\Foundation\Testing\TestCase::tearDown()

当我将 tearDown() 方法应用于我的测试类时,我收到一条错误消息,告诉我the tearDown() must be compatible with Illuminate\\Foundation\\Testing\\TestCase::tearDown()我做错了什么? 每次我运行测试 ...

有没有办法在运行所有测试后执行拆卸功能? - Is there a way to execute a teardown function after all tests have been run?

在 Rust 中,有没有办法在使用标准测试库运行所有测试后(即在cargo test结束时)执行拆卸功能? 我不打算在每次测试后运行拆卸功能,因为它们已在这些相关帖子中讨论过: 如何在 Rust 中运行任何测试之前运行设置代码? 如何为集成测试初始化​​记录器? )) 这些讨论 ...

机器人框架在失败中停止拆卸执行 - robot framework stop teardown execution in failure

我正在使用机器人框架来测试我的应用程序我在测试中使用了拆卸。 它按预期工作,如果我的测试结束或失败,则拆卸开始执行。 当拆卸执行失败时,我的问题就开始了,然后我希望它停止。 场景是“在过滤器中插入名称”失败时,我希望它停止运行,但它执行“删除用户”关键字。 可以预防吗? ...

如果当前测试失败,如何检查 mocha (tdd) 的拆卸方法? - How to check in the teardown method of mocha (tdd) if the current test failed?

我知道如何在 mocha 的afterEach()方法中检查测试是否失败:这在这里解释: 从 Mocha 的 afterEach 钩子中检测测试失败但是那些使用suite和test (tdd)而不是describe和it的人呢? 如何检查当前测试是否在此处失败? 相同的代码将不起作用,因为stat ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM