Latka XML ReferencebyteLengthvalidates the length of an HTTP(S) response <!ELEMENT byteLength EMPTY>
<!ATTLIST byteLength min CDATA "0"
max CDATA #IMPLIED
label CDATA #IMPLIED>
A
cookievalidates the presence of an HTTP(S) cookie in a response <!ELEMENT cookie EMPTY>
<!ATTLIST cookie name CDATA #REQUIRED
value CDATA #IMPLIED
label CDATA #IMPLIED>
A
credentialsusername/password credentials for Basic HTTP authentication. <!ELEMENT credentials EMPTY>
<!ATTLIST credentials userName CDATA #REQUIRED
password CDATA #REQUIRED>
Contains credentials for HTTP Basic Authentication. maxRequestTimevalidates the response time for an HTTP(S) request <!ELEMENT maxRequestTime EMPTY>
<!ATTLIST maxRequestTime millis CDATA "30000"
message CDATA #IMPLIED>
A
paramindicates a request parameter as part of an HTTP(S) request to be executed <!ELEMENT request (paramName, paramValue)> None. A parameter to be submitted as part of a request . paramNamethe name part of a name/value pair parameter <!ELEMENT paramName (#PCDATA)> None. The name part of param to be submitted as part of a request . paramValuethe value part of a name/value pair parameter <!ELEMENT paramValue (#PCDATA)> None. The value part of param to be submitted as part of a request . regexpvalidates the presence or absence of a regular expression within an HTTP(S) response <!ELEMENT regexp EMPTY>
<!ATTLIST regexp pattern CDATA #REQUIRED
cond (true | false) "true"
ignoreCase (true | false) "false"
label CDATA #IMPLIED>
A
requestindicates an HTTP(S) request to be executed <!ELEMENT request (credentials?, param*, validate?)>
<!ATTLIST request path CDATA #REQUIRED
method (post | get) "get"
host CDATA #IMPLIED
port CDATA #IMPLIED
label CDATA #IMPLIED>
An HTTP(S) request to be executed. sessionwrapper for a sequence of request s associated with the same state (session) <!ELEMENT session (request+)>
<!ATTLIST session sessionId CDATA #IMPLIED
label CDATA #IMPLIED>
A
statusCodevalidates an HTTP response code <!ELEMENT statusCode EMPTY>
<!ATTLIST statusCode code CDATA "200"
label CDATA #IMPLIED>
A
suiteroot element for a suite of tests <!ELEMENT suite ( (session | request)+ )>
<!ATTLIST suite defaultHost CDATA #IMPLIED
defaultPort CDATA #IMPLIED
label CDATA #IMPLIED>
None.
A
validateindicates th e suite of validations to apply to the current request (and its response) <!ELEMENT validate (byteLength | cookie | maxRequestTime | regexp | statusCode | xpath )+> None. Contains the set of validations to apply to the current request (and its response). xpathxpath - assuming the HTTP(s) response contains XML, checks if an XPath expression matches <!ELEMENT xpath EMPTY>
<!ATTLIST xpath select CDATA #REQUIRED
cond (true | false) "true"
value CDATA #IMPLIED
label CDATA #IMPLIED>
A xpath validation passes if the HTTP(S) response body contains XML, and the specified XPath expression matches (or not, depending on cond) |