- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
The response to the ticket is obvious: "It isn't returning data because you are asking it to return no data. Working as intended. Closed. Not A Bug."
Admin
TRWTF here is allowing QA to write the automated tests. QA is where people who don't like writing code go. Automated tests, or at least this kind of back-room utility to be used in e.g. a JBehave test, should be written by engineering.
Admin
The real WTF is someone actually using the Java Calendar API. Most people quickly figured out that this was one of those rare cases where writing your own framework was a better idea than using the native one...
Admin
Looking at those if statements, seems the date range should be "from" this many "days" before today.
I know it's scruffy code, but hasn't she just forgotten to deduct days from start and then raised a ticket rather than done a sanity check?
Oh, and talking of sanity checks, I was trying to work out what those Assert checks were doing, other than checking reality wasn't out of whack, and discovered Remy's reality may will be wobbling a bit ... https://thedailywtf.com/articles/the-same-date
Admin
Heh. Well, unless the same person at that company submitted the same piece of code twice, I'm left to believe that two different people submitted the same piece of code two years apart.
I'm not sure which is worse.
Admin
I'm pleased that the comments to the daily WTF are moderated. I'm more pleased that the previous comment was allowed through.
Admin
I would have to agree.
Do developers never write WTF code? Of course they do. We wouldn't have this website otherwise. Hopefully though, you'll have at least a few members in the team who are smart and know what they're doing, and if you work with them, or even at least end up reading their code, you learn from them. Never the case with automation testers.
Not once have I seen automation test code that made me go, "hmm, I like what they've done here", be it good code organisation, encapsulating external library code to make its usage easier*, decent naming, elegant use of language features, etc. Automation testers seem to just chuck some code at the problem, and if it works, that's good enough. Don't bother refactoring, don't bother making things easier to comprehend, don't bother improving performance. Just keep churning out test code.
Admin
Well, the fact that in one answer it was supposedly QA picking up on shoddy coding from Prod (which implies the company has JUnit in its Prod code), and this time round it's Prod getting to sneer at QA.
I went googling because I did wonder if it was some example code on some awful coding forum somewhere ... I still think it might be.
Admin
One thing I started doing was test for composition:
API request is the flow of input to format to request
Format returns valid dates Request responds
Admin
One thing I started doing was test for composition:
API request is the flow of input to format to request
Format returns valid dates Request responds
Admin
My first technical job was writing test code and building test fixtures for circuit boards. Those boards went into computers which were again tested. Those computers went into memory-test systems which tested memory chips on the production line. Some of those chips went into the boards that I helped test.
Admin
It's rare, but there are some QA guys who can write damn good code - and the reason for that is they're real engineers doing real interesting engineering work to QA a specific type of product.
For instance, if you've got a human only multiplayer game you probably still want bots for testing, and writing those bots is some of the most fun in the world (IMO). From simple bots that just fan out across the terrain and look for places they get stuck or fall through to really meaty machine learning bots looking for exploits. So some place like Psyonix (Rocket League) may (koff) have real engineers in QA writing these bots.
I totally get that most QA doing scripting are just doing it as a hobby or tool so never developed any discipline (and should probably not be writing the API tests), but in some places QA transcends the hamster wheel.
Admin
Haha good find... maybe the COVID-19 stay at home order is getting to Remy.
Admin
Good read, and well said.
It's a crying shame QA/Testing/BA are used as dumping grounds for failed devs, and a travesty Project Management is used as a promotion out of harms way.
I won't deny some of the people whom I know who have shifted roles have proved to be great, but there's still something fundamentally dysfunctional. I do wonder how the ones who actually take those roles seriously feel about what seems to be SNAFU. I have worked with people in those professions who are truly great, but (sadly) they're the exception.
Fun, fun, fun.
Admin
I am having to write a drag and drop tool for QA to write tests with, which is on that level 2 of Code That Doesn't Do Any Real Work. Anyway apparently there's a legendary test file that runs hundreds of pages. Why is our counting unit pages and not lines? Well, because until this tool is developed QA have been writing tests in Microsoft Word.
Admin
I've known a couple of programmers who went to QA because they were interested in writing automated tests for their code and they were told they couldn't because it was QA's job to test things. Thus, logically, the place for them to have the kind of job they wanted was QA.
I'd guess the only reason why there aren't droves of people busting out laughing from my post already, despite the fact that I haven't posted it quite yet, is because I'm coming to this party really late.
Yeah, it was more or less like you'd expect. They went from not being allowed to write automated tests to not being allowed to write any code, because they were supposed to be busy testing things. Never mind the fact that they managed to test more things and find more bugs their first week on the job than the senior QA people were finding in a month... collectively... by writing scripts to do their testing for them.
I think it was somebody noticed that this one person had the ability to eventually code all of the rest of the department out of a job.
They were not, unfortunately, at the same company, so not able to work together on this stuff. One of them at least managed to keep writing his automated tests, he just disguised this effort by taking longer to report the failed quality checks. "Sorry it took a week to get to these problems, we're just really backed up here." lol.