Waiting for Assert

Mar 6, 2010 at 11:52 PM

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 7: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 4: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 11:01 AM

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.