﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Jason commented on Integration Issue</title><description>WaitForPageToLoad() was my first option but it did not help. It was as if the page had loaded but certain data (such as the title) were still from the old page. I would have loved to dig through the source and understand why but I didn't have the time. One day...
</description><link>http://ayende.com/2073/integration-issue#comment3</link><guid>http://ayende.com/2073/integration-issue#comment3</guid><pubDate>Tue, 06 Feb 2007 00:06:25 GMT</pubDate></item><item><title>Ayende Rahien commented on Integration Issue</title><description>What do you mean high timeout value??
  
About Thread.Sleep(), selenium has a WaitForPageToLoad() method :-)
  
  
The problem with building the DB is that I may need to handle 3 - 5 different databases with different semantics for each (create schema , create schema &amp; data, do not touch, warn if not match schema, etc).
  
  
I fully agree about letting the app create the data, although I have not given it though previously.
</description><link>http://ayende.com/2073/integration-issue#comment2</link><guid>http://ayende.com/2073/integration-issue#comment2</guid><pubDate>Mon, 05 Feb 2007 23:36:51 GMT</pubDate></item><item><title>Jason commented on Integration Issue</title><description>I ran into the same issue with Selenium requiring desktop access which is irritating. I also encountered some intermittent problems during a build that were not reproducible with a subsequent manual build . Not sure if it's the same as what you're seeing but setting a ridiculously high timeout value was the answer (only invoked if an action does not complete so will not slow down good tests). I do sometimes have another problem with page navigation when the target page does not appear to have fully loaded when I start making asserts. I ended up using an ugly Thread.Sleep() hack here (your idea of a timebomb would be good as it would force me to look at a proper fix).
  
  
Regarding the database I simply use SQL Server DMO to dump the schema and then have a build database script that takes the database name as a parameter. Obviously you need to store test data for each environment. I have another script that dumps the current database content as a script that can be executed after a create. Experience has taught me that it's important to use the app to build test data (when you get that far) as direct SQL entry might not result in the same data as the app generates!
</description><link>http://ayende.com/2073/integration-issue#comment1</link><guid>http://ayende.com/2073/integration-issue#comment1</guid><pubDate>Mon, 05 Feb 2007 23:24:59 GMT</pubDate></item></channel></rss>