Environment

Solution structure

❌ Don't: Have page objects and test cases in the same folder

This confuses new readers and slows experienced programmers down by constantly having to remember where things are located.

✔️ Do: Separate page objects and test cases

It's fine if you need a more complicated solution structure, but ensure that page objects and test cases cannot possibly be confused at a glance.

Remember to separate Visual Equivalence and Functional Equivalence in different projects.

Timeouts

❌ Don't: Set up test timeouts with MSTest or other methods outside QualityMate

QualityMate has a timeout and retry system which relies on code execution. Tampering with timeout parameters other than the ones offered by QualityMate is discouraged, since they terminate execution and have unintended side effects.

<!--.runsettings file-->
<MSTest>
    <!--Do not set timeouts like these while using QualityMate-->
    <TestTimeout>12000</TestTimeout>
<MSTest>

✔️ Do: Use the QualityMate timeout parameters

QualityMate has built in timeout mechanisms for steps (StepTimeout) and tests (ExecutionTimeout). For more information about how to handle these timeouts, visit Parameters.

Last updated

Was this helpful?