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

Working with other companies custom components in Silverlight

3 Answers 58 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jess
Top achievements
Rank 1
Jess asked on 13 Feb 2012, 05:55 PM
Hello,

While everyone knows Telerik components are the best, sometimes at my company we use a competitor's 3rd party components. Namely ComponentOne. I have a ComponentOne ComboBox - C1.Silverlight.C1ComboBox which I need to work with using the Test Framework. I cannot cast this using the ArtOfTest.WebAii.Silverlight.UI.ComboBox class as it throws an exception. I have to work with these other company's components during automation testing so there is no getting around it. How do I handle these cases? Just working with FrameworkElement is not sufficient for our purposes.

Thanks a bunch!

3 Answers, 1 is accepted

Sort by
0
Accepted
Jacek Drozd
Top achievements
Rank 1
answered on 14 Feb 2012, 09:01 AM
Hi Jess,

There is something that might help You:

http://www.telerik.com/automated-testing-tools/community/forums/test-studio-express/automation-framework/can-i-automate-custom-controls.aspx

Another option is writing wrapper classes following way:

  public class SampleClass
    {
        public SampleClass(SilverlightApp app)
        {
            Initialize(app);
        }
 
        public void Refresh(SilverlightApp app)
        {
            Clean();
            Initialize(app);
        }
}

In Initialize method You extract all necessary elements.
In Clean You have to clean all elements.
0
Jess
Top achievements
Rank 1
answered on 14 Feb 2012, 03:07 PM
Hello,

Thanks for your reply. A co-worker found that thread last night and we were able to get the properties off of the custom control that we wanted. I appreciate your response. 

J
0
Cody
Telerik team
answered on 15 Feb 2012, 04:10 PM
Hello,

@Jacek, thanks for jumping in and assisting. I've granted you some Telerik points for your efforts.

@Jess, I am very glad to hear you found a working solution. Feel free to contact us here if you need any further assistance.

Kind regards,
Cody
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Jess
Top achievements
Rank 1
Answers by
Jacek Drozd
Top achievements
Rank 1
Jess
Top achievements
Rank 1
Cody
Telerik team
Share this question
or