Yes. Check the QTestLib documentation for that, especially the examples.