在testcafe文档中,我发现了count和exists "execute immediately regardless of the selector timeout"的断言。然而,在wait-mechanism-for-assertions段落文档中指出,"TestCafe不断重新计算实际值,直到它与期望值匹配或断言超时“。那么,使用exists的断言是立即执行还是使用默认的“断言
我有多个测试用例,如果逻辑不同,所有测试用例的输出必须相等。所以我在想如何对它们进行泛化,并且只将Assert方法放置一次。static public class Tests() {
private String actual = null;
public static void setUpBeforeClass() throws Exception {
expected = new String("My