testing - XML test data for large text element? -
we need build test data complex nested xml schema (xsd). tried xmlspy, have following situation.
here our .xsd piece.--------------------------
<xsd:sequence> <xsd:element name="explanation" type="explanationtype" minoccurs="0"/> </xsd:sequence>
xsd type definition ------------------
<xsd:simpletype name="explanationtype"> <xsd:annotation> <xsd:documentation>a note field allows 9000 characters</xsd:documentation> </xsd:annotation> <xsd:restriction base="texttype"> <xsd:maxlength value="9000"/> </xsd:restriction> </xsd:simpletype>
generated test xml via xmlspy
<explanation>!</explanation>
even though element defined 9000 length, have 1 character (!). how 9000 length string such
**<explanation>xxxxxxxxxxxxxxxxxxx ……………………………(9000 length)</explanation>**
in test data (generated xml message) ?
is there option such thing via xmlspy?
is there other tool provide such data?
split type definition 2 files first ending with: (caret)xsd:documentation(caret) , second beginning with: (caret)/xsd:documentation(caret)
windows:
type preamblefile 9000charfile postfile > testfile
linux:
cat preamblefile 9000charfile postfile > testfile
Comments
Post a Comment