This is a migrated thread and some comments may be shown as answers.

Childwindow trouble

2 Answers 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Justin Weinberg
Top achievements
Rank 1
Justin Weinberg asked on 19 Jun 2010, 12:23 AM
I'm trying to automate the inital logging in for our application tests which is a popup.

I've tried registering the ChildWindow both in its contructor and after it's show method using the new Track() method in both the official and latest build.  When debugging the Silverlight application, I can verify that the popup count is one and that it is indeed being tracked.

But in my test (nunit) it always shows the popup count as zero regardless of when I register it or if I call RefreshVisualTrees() in the test.  We are using Prism and SL4 so it might be Prism related, but in this case we are explicitly newing up the item rather than using Unity.

Any suggestions?

Much thanks!

Edit - I should mention we are using the Telerik silverlight controls which has its own popup tracking method and calling that method rather than adding the popup DLL.  Is this the issue?  If I add the popup dll VS2010 complains that the same code is declared in both DLLs.

2 Answers, 1 is accepted

Sort by
0
Justin Weinberg
Top achievements
Rank 1
answered on 19 Jun 2010, 01:28 AM
I figured it out.

In case anyone else runs into this, it was some sort of compatibility issue with the Telerik.Controls dll's version of Track(). 

To resolve this, I set an alias on the TrackPop dll (the version that comes with WebAii) and then used the "extern" keyword to refer to the Popup window:
extern alias trackpop;

Then to track the popup:
trackpop.Telerik.WebUI.PopupTracker.Track(appLogin);

I hope this helps someone! 

0
Kiran
Top achievements
Rank 2
answered on 24 Jun 2010, 08:57 PM
Tags
General Discussions
Asked by
Justin Weinberg
Top achievements
Rank 1
Answers by
Justin Weinberg
Top achievements
Rank 1
Kiran
Top achievements
Rank 2
Share this question
or