WindowTester allows you to easily create and run unit tests for every GUI they build. It can also be used to generate system level tests.

Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund


Postby hoshang.varshney » Tue Mar 01, 2011 12:10 am

I am getting MultipleWidgetsFoundException for the following xml file

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<typeLibraryType xmlns:ns2="" libraryNamespace="" category="COMMON" version="2.0.0" libraryName="TestTypeLibrary">
<ns2:type version="1.0.0" java-type-name="com.abcd.marketplace.affiliates.v2.types.GetVersionResponse" xml-type-name="GetVersionResponse"/>
<ns2:type version="1.0.0" java-type-name="com.abcd.marketplace.affiliates.v2.types.GetVersionRequest" xml-type-name="GetVersionRequest"/>

I am trying to assert the text in <typeLibraryType><ns2:type xml-type-name="GetVersionResponse"> and <typeLibraryType><ns2:type xml-type-name="GetVersionRequest">. I getting the above mentioned exception because there are two items with the name <ns2:type xml-type-name>

How do i solve this situation.
Posts: 10
Joined: Tue Feb 15, 2011 4:56 am

Re: MultipleWidgetsFoundException

Postby keertip » Thu Mar 31, 2011 10:42 am

Since you know that there might be more than one instance, maybe you could do a findall and then compare the results one by one with the expected?
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am

Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest