Se você estiver usando objetos de Interface do Usuário no teste, considere usar o atributo UITestMethod em vez do TestMethod ...