I would like to write some automated tests for an application and would like to use QTestlib but I am confused on how I actually should go about doing it.
From what I read I will have a separate application for each test. What I am confused about is how does the test application know anything about my GUI application? Do I have to instantiate the GUI within the test application and then reference the GUI instance in my test app? This would be unfortunate as every test I run would launch my application.
What if I only want to test a specific dialog that appears in my GUI? I was hoping that I could just launch my GUI application, bring up the dialog and then kick off the test application. However the test application would have no way of accessing the dialog since they are 2 separate executables.
All the examples I see create a widget in the test application and then runs the test off the created widget. It seems like it would be very difficult to use with a multi-dialog application as some of the dialog information may not be accessible as it is private/protected. It seems QTestLib is more geared towards testing individual widgets and not an entire application.
Bookmarks