The Daily WTF
Good idea: having QA developers who can build tooling to automate tests. Testing is tedious, testing needs to be executed repeatedly, and we’re not just talking simple unit tests, but in an ideal world key functionality gets benchmarked against acceptance tests. API endpoints get routinely checked.
There’s costs and benefits to this though. Each piece of automation is another piece of code that needs to be maintained. It needs to be modified as requirements change. It can have bugs.
And, like any block of code, it can have WTFs.
Nanette got a ticket from QA, which complained that one of the web API endpoints wasn’t returning data. “Please confirm why this API isn’t returning data.”
It didn’t take long before Nanette suspected the problem wasn’t in the API, but may be in how QA was figuring out its date ranges:
private void setRange(int days){ DateFormat df = new SimpleDateFormat(“yyyy-MM-dd”) Date
To read the full article click on the 'post' link at the top.