Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It will help if you could give some example of tests failures.</p> <p>Do the tests fail because they can't find some elements on the page ? If that's the case, if you are using WebDriver, I suggest you enable implicits waits. This will make your test suite run slower but you will gain stability.</p> <pre><code>WebDriver driver = new FirefoxDriver(); driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(10)); </code></pre> <p>Testing throught the browser, is something that can cause random failures specially if your tests are not designed to wait for elements to appear on the page. Things can get really tricky also with ajax calls.</p> <p>On a side note I'll recomend that you avoid running a new browser and start IIS before each tests. The reason is that your test suite will take a really long time to run. Instead I'd suggest that: - You run IIS just once in the begining of your test suite. (you can use the tag [BeforeTestRun]) - Open a browser session just once at the begining of your test suite. ([BeforeTestRun]) - At the end of each tests, just log out the user so that all cookies get cleaned. ([AfterScenario])</p> <p>This will speed up your test suite a lots.</p> <p>Regarding shared state, I'd suggest that you reset all the data your tests use by using the attribute [BeforeScenario]. So for example, if your tests setup data in a database, you will clean the database before each test run.</p> <p>Finaly, make sure your tests are self contained: The should not use data used by other tests. The tests will need to always run from a clean initial state and create the data they need.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload