header
header
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Eviware Blog
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome, Guest. Please login or register.
November 22, 2008, 06:45:23 am
Username: Password:
Login with username, password and session length

Forgot your password?
 
Xpath validation of list results problem
Welcome, Guest. Please login or register.
November 22, 2008, 06:45:23 am
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

+  Eviware Forum
|-+  soapUI
| |-+  soapUI
| | |-+  Xpath validation of list results problem
« previous next »
Pages: [1] Print
Author Topic: Xpath validation of list results problem  (Read 430 times)
Christoph Schwarz
Newbie
*
Posts: 17


« on: January 09, 2008, 12:19:56 pm »

I have a resultset with a list of items that i want to validate with XPath in soapui 2.0. when i add the XPath validations for the different list items it always uses the 1st entry.

this is the resultset i get from the service:
 <a:ResultSet>
               <a:CountryDCResponseItem>
                  <Code xmlns="http://schemas.datacontract.org/2004/07/SecondTravel.Global.DataContract.Global.v1_0">JJJ</Code>
                  <Name xmlns="http://schemas.datacontract.org/2004/07/SecondTravel.Global.DataContract.Global.v1_0">JJJ Multilang updated country JJJ only Name</Name>
                  <Languages xmlns="http://schemas.datacontract.org/2004/07/SecondTravel.Global.DataContract.Global.v1_0" xmlns:b="http://schemas.datacontract.org/2004/07/SecondTravel.Library.CommonCode.Shared">
                     <b:LanguageItemDC>
                        <b:LanguageCode>DE</b:LanguageCode>
                        <b:Name>JJJ TestLand 3 zeichen Deutsch</b:Name>
                        <b:Comment>Das ist ein Deutscher eintrag</b:Comment>
                     </b:LanguageItemDC>
                     <b:LanguageItemDC>
                        <b:LanguageCode>RU</b:LanguageCode>
                        <b:Name>JJJ испытайте характеры русского 3 языка</b:Name>
                        <b:Comment>This is a Russian entry</b:Comment>
                     </b:LanguageItemDC>
                     <b:LanguageItemDC>
                        <b:LanguageCode>AR</b:LanguageCode>
                        <b:Name>JJJ اختبرت بلد 3 رموز روسيّة</b:Name>
                        <b:Comment>Das ist ein Arabischer eintrag</b:Comment>
                     </b:LanguageItemDC>

when i do a XPath validation for <b:LanguageItemDC>                         <b:LanguageCode>DE</b:LanguageCode> it validates correctly for DE.

when i do a XPath validation for <b:LanguageItemDC>                         <b:LanguageCode>RU</b:LanguageCode> it validates also for DE and not for RU (if i manually enter RU i get an error that expected is DE).

what do i have to change that this validations are working again as they did in version 1.7.6?

thanks
Christoph
Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,425


« Reply #1 on: January 09, 2008, 12:57:44 pm »

Hi Christoph,

sounds strange.. could you please mail me your soapui project file containing this test-request and its assertions? (ole@eviware.com)

Thanks in advance!

regards,

/Ole
eviware.com
Logged
Christoph Schwarz
Newbie
*
Posts: 17


« Reply #2 on: January 22, 2008, 11:29:14 am »

this has been resolved in version 2.0.1

thanks to Ole
Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,425


« Reply #3 on: January 22, 2008, 11:31:01 am »

thanks to Christoph who reported :-)

/Ole
eviware.com
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
header header
header
header