This project is read-only.

Waiting for Assert

Mar 7, 2010 at 12:52 AM

Is there some way in White to delay assertion?
I'm testing UI that communicates with service. So I need some delay before assertion to deal with async UI update. Like this one:

Label label = _window.Get<Label>("lblStatus");
Assert.That(delegate() { return label.Text; }, Is.EqualTo("Connected").After(2500, 100));

Is there more convenient way, than NUnit DelayedConstraints and delegates?

Mar 8, 2010 at 8:01 AM


on White Apllication and Window are some waitfunctions, if the application is busy during change

But if this don't work you should implement a wait for text change on the label element.


Mar 26, 2010 at 5:27 PM

Throndorin, thanx for your reply

Waiting based on hour glass was not appropriate decision for my app because async operation should be completed in background, without frightening user before operations is done. Also BusyTimeout was out of issue - as I understood, it works only with sync processing. So, I have not found something useful in White and stayed with syntax described above.

Apr 10, 2010 at 12:01 PM

I have a question for you which how do you make the user wait when you make asynchronous in the background? In other words how does s/he gets the same feedback.