Yes, there are plenty of devices. Here are some that I use here to do exactly what you're looking to do; test USB cables:
I own and use each of these devices, and each of them have their own nuances and features, with a little overlap. I can recommend the first 3 very highly. You won't be disappointed with any of them.