Hi,

I'm trying to solve the following problem.

In the normal workflow of my application, when the user ask for a new
entity to be created, a modal dialog is created to let the user insert
a name for this entity.
When the corresponding OK button is pressed, a minimal amount of input
verification is done before accepting the data provided by the user
(typically the name must be comprised of valid characters).

I'd like to simulate this with a test environment, in order to test the
bunch of code which verifies the input, but I'm facing the following
problems.

1) If I let a single threaded test environment to instantiate the modal
window by simulating the newEntity button click, it gets stuck on the
emit call (which will end up showing the modal window, but no one is
gonna press the ok button).

2) If I prepare a double threaded environment and let one thread emit
the OK click signal belonging to the modal window, the other thread
stuck on the NewEntityButton->clicked->emit(), stays there even after
the other thread issued the DialogModalOkButton->clicked()->emit().

Since I'm almost new to Wt, I could have missed something in here.
What's the standard way to address such an issue?
-- 
Antonio

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to