we have an activity for that, you can see more detail in this documentation Activities - Get Test Data Queue Item