Take a look at data driven testing:
http://doc.trolltech.com/latest/qtestlib-tutorial2.html
You can generate test vectors from a file, provided that the methods you want to test are callable through QMetaObject::invokeMethod(). If they are not, I suggest you write a small application that will take your input files and generate C++ code that uses QTestLib to perform the tests. Then you can include and compile such code into the final testing executable.





Reply With Quote
Bookmarks