Docs · API reference · Motus.Testing.MSTest
MotusTestClassAttribute Class#
A test class whose tests survive the browser going away, in place of [TestClass].
public class MotusTestClassAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute
Inheritance System.Object → System.Attribute → Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute → MotusTestClassAttribute
Remarks#
Every [TestMethod] in the class is run again if the browser it was driving disconnects,
which is what MotusTestMethodAttribute describes. Marking the class rather than
each method means a suite gets that for nothing, which is the point: the failure this guards
against belongs to the machine the tests ran on, not to any one test.
Properties#
Retries Property#
How many further attempts a lost browser is worth, for every test in the class. Zero runs each test once, whatever happens.
public int Retries { get; set; }