ADucci
15 years agoOccasional Contributor
Data Driven Testing - Repeating Complex Elements
HI,
I Am looking to create a data driven test, where each test step record contains a repeating complex element ( ie a person having contact details)
please can you note the high level steps i would take to complete this, i dont mind reading up, its just that i have no idea where to start.
Attached, a sample message, having repeating nodes.
I Am looking to create a data driven test, where each test step record contains a repeating complex element ( ie a person having contact details)
please can you note the high level steps i would take to complete this, i dont mind reading up, its just that i have no idea where to start.
Attached, a sample message, having repeating nodes.
[color=#8000FF]<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="Person">
<xs:annotation>
<xs:documentation>Comment describing your root element</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Name" type="xs:string"/>
<xs:element name="Surname" type="xs:string"/>
<xs:element name="Contacts" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="ContactText" type="xs:string"/>
<xs:element name="Code" type="xs:string" minOccurs="0"/>
<xs:element name="ContactType" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>[/color]