Hey
TheEnd,
Just asking a couple of queries that may help in your config/setup and may help other lads understand if/when they look at this.
Q1. The GET API youre hitting which retrieves the eventtype data. Currently what would be the content of response? What i mean is, does the response contain every event polling instance since the beginning of time or does it just list all polling events since the process was restarted? Reason i ask is that for an event that polls every 10 seconds would have 8640 records in your response....and thats for a single event. If the polling interval is less say 3 seconds, youd have 28800 records in your response in 1 day
Q2. Your requirements for testing the interval.....is the requirement that the interval is configurable or is it that Event x has an interval of y seconds? Reason i ask is that if it's just the polling interval is configurable then you can simplify your testing somewhat.
Q3. Where is the response actually sourced from? Is it sourcing database records or is it sourcing from a flat file? If its a flat file when is a new file created....is it when the underlying process is restarted, or perhaps is it just a certain file size? What i'm thinking about here is to minimise the number of records (as well as different event types) in your response so handling the response is easier...especially if you can have thousands of records in your response.
If the data is sourced from a database, would you be able to truncate the tables (via either an HTTP delete method if your endpoint includes a delete API, OR more likely via a JDBC SQL step).? If the data is sourced via a DB, if you truncate the source tables immediately before the process starts, this means you'd only have a small number of records (perhaps only a single event type to deal with) to have to parse and validate.
Q4. The GET API. Is it just a select * query or can you add a query filter to your GET clause (perhaps a uri/query or even header parameters) that allows you to restrict the type and number of records in your resultset? I know my queries keep circling this point, but it's gonna be hard work to validate a response with thousands of records in it..
Ok...i'll stay out of this now,
Nice one,
Rich