Skip to content

Latest commit

 

History

History

ws-impls

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Different Implementations of Web Service Test Cases

This contains the various implementations of the web service test cases intended for load testing.

Validation

To confirm that an implementation is returning valid responses, use the validate.py script.

Successful Example:

$ ./validate.py http://localhost:8888/ws-java-servlet-blocking
Validating WsPerfLab Implementation at URL: http://localhost:8888/ws-java-servlet-blocking/testA?id=24169

Successful Validation

Failed Examples:

$ ./validate.py http://localhost:8888/ws-java-servlet-blocking
Validating WsPerfLab Implementation at URL: http://localhost:8888/ws-java-servlet-blocking/testA?id=34565

Error => Validation Failed! => Missing 'items' key


$ ./validate.py http://localhost:8888/ws-java-servlet-blocking
Validating WsPerfLab Implementation at URL: http://localhost:8888/ws-java-servlet-blocking/testA?id=71576

Error => Validation Failed! => ResponseKey Invalid.

Implementation Requirements

Test Case A

An HTTP GET will request /testA?id={uuid} which is expected to perform the following:

The conditional flow of requests is demonstrated in this diagram:

The JSON response will include a 'responseKey' value which is generated via:

c.responseKey + d.responseKey + e.responseKey

The expected response will look like this (without pretty print):

{
  "responseKey":6502981934456555896, 
  "delay": [ { "a": 50 },{ "b": 90 },{ "c": 1 },{ "d": 1 },{ "e": 150 } ],
  "itemSize": [ { "a": 50 },{ "b": 30 },{ "c": 5000 },{ "d": 1000 },{ "e": 30 } ],
  "numItems": [ { "a": 2 },{ "b": 25 },{ "c": 1 },{ "d": 1 },{ "e": 100 } ],
  "items": [
    "Lorem ipsum dolor sit amet, consectetur adipisicin",
    "Lorem ipsum dolor sit amet, consectetur adipisicin",
    "Lorem ipsum dolor sit amet, co",
    "Lorem ipsum dolor sit amet, co",
    "... aggregate items from each of the 5 backend requests ...",
    "Lorem ipsum dolor sit amet, co"
  ]
}

Test Case B

Less network, add ThreadLocal, ConcurrentHashMap, volatile, AtomicReference type behavior.

Not completed yet.