ChristianB
12 years agoContributor
[4.6.4] Boundary tests not working (skipped)
I have used the soapUI tutorial's sample WSDL, modified it slightly to add a constraint to it and then set up a Boundary Scan security test to try the feature. However, the scan gets skipped all the time. (Apologies for the verbose description; I couldn't upload screenshots.)
Here is what I did in detail:
Here is what I did in detail:
- install soapUI 4.6.4
- import SoapUI-Tutorials\sample-soapui-project.xml
- edit (and save) SoapUI-Tutorials\WSDL-WADL\sample-service.wsdl as outlined below
- right-click on "Sample Project", Add WSDL (using default settings)
- click Yes (update interface?)
- Sample Simple TestSuite > Security Tests (right-click) > New Security Test
- OK (default name)
- select Test Request: login (0 scans) > Add securityScan > Boundary Scan > OK
- set test up as explained below
- start mock service, run security test
- tests get skipped
Changes to WSDL
I replaced the following line
<xsd:schema targetNamespace="http://www.example.org/sample/">
by
<!-- CHANGED/ADDED -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/sample/" xmlns:tns="http://www.example.org/sample/" >
<xsd:simpleType name="usernameType">
<xsd:restriction base="xsd:string">
<xsd:length value="9"/>
</xsd:restriction>
</xsd:simpleType>
<!-- END ADDED -->
and
<wsdl:message name="loginRequest">
<wsdl:part name="username" type="xsd:string"/>
by
<wsdl:message name="loginRequest">
<wsdl:part name="username" type="tns:usernameType"/> <!-- CHANGED -->
Boundary Scan Setup
Label: username
Name: request
Enabled: ticked
XPath:
declare namespace sam='http://www.example.org/sample/';
declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
/soapenv:Envelope/soapenv:Body/sam:login/username
Assertions: Sensitive Information Exposure (with default settings)
Strategy: (default settings)
Expected result
I would have expected that soapUI runs the request, replacing the username with one that is longer or shorter than the number of characters specified, and output similar to the following:

Additionally, I am a bit puzzled by the error message in the BoundaryScan window: when selecting the line with the parameter, the followig message is displayed below the list field:
parameter is missing type in schema
Actual result
Tests got skipped.
From what i can tell the WSDL is valid and I don't understand why the restriction (which is one of the ones mentioned in the docs) doesn't get up; it all looks very much like it does in the tutorial (with the difference that I'm trying a boundary scan, of course)...
Any help is appreciated...
Brgrds,
Christian