Ask a Question

Does Testcomplete support System.Windows.Documents Namespace

IRISQATeam
Contributor

Does Testcomplete support System.Windows.Documents Namespace

I am testing an application which is developed using .Net Framework 4.0 and it is using System.Windows.Documents Namespace. Does Testcomplete 10 support this System.Windows.Documents Namespace?
5 REPLIES 5
TanyaYatskovska
SmartBear Alumni (Retired)

Hi Zeeshan,

 


You need to add a reference to the .NET assembly where this namespace is defined in the CLR Bridge settings. The "Calling Functions From .NET Assemblies" article contains the step-by-step instruction.


 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



IRISQATeam
Contributor

Hi Tanya,

Thanks very much for your reply. Is there any way to know which classes are supported by Testcomplete? For examaple this article http://support.smartbear.com/viewarticle/55825/#ID0EYE provides a list of all supported WPF classses. Does Testcomplete support all the classes as mentioned in this article http://msdn.microsoft.com/en-us/library/system.windows.documents%28v=vs.110%29.aspx?





Thanks.

Philip_Baird
Community Expert

Hi Zeeshan, are you wanting to actually write Script code using Classes and functions from the System.Windows.Documents Namespace or just wanting to test an application that happens to use the System.Windows.Documents Namespace?

 


Regards,


Phil Baird

IRISQATeam
Contributor

Hi Phil,

I am trying to automate an application which is developed using different classes e.g.FlowDocument,InlineUIContainer,Table etc from System.Windows.Documents Namespace. Whenever I am trying to use  an object either by NameMapping or from Object Browser, everytime name of object is changing e.g. WPFObject("_tagf33739345b734215ac51aaca57fca145"), WPFObject("_tag86cdb0505e1347fb9b378fbbf0c1a662") etc . which is restricting me to use these objects. Just wondering do Testcomplete support all classses from System.Windows.Documents Namespace?  Any solution to cater this problem?



Thanks.
TanyaYatskovska
SmartBear Alumni (Retired)

Hi Zeeshan,

 


Changing the object names isn't related to the classes and namespaces used in your app. They have dynamic names. From the developers' side, this is not a good approach, and it can make the tester's life more difficult, but it's still possible to test them in TestComplete. Watch the following screencast, demonstrating TestComplete features that can help you create reliable tests for dynamic objects: http://support.smartbear.com/screencasts/testcomplete/reliable-tests-for-dynamic-objects/

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



cancel
Showing results for 
Search instead for 
Did you mean: