testing framework selection
Greetings,
I am looking for a testing framework.
Currently we have a home grown Perl script that loops through the input files, calling an AWK script which in turn connects to a server, then collects the output and compares it to a saved output file. This is done on Linux. Currently there are just over 100 tests. We are planning a major refactoring and I want to revamp the test system and tests first.
In thinking about the framework requirements, I want a system that can logically collect tests into test suites, automatically detect test files, and can create test prerequisites / dependencies. I have been looking at QMTest and Google's Robot Framework. I would rather extend an existing system than do heavy lifting of the very small Perl script that now runs the tests. Perl is not a requirement. In fact I would rather use Python, not Perl, but that is a personal opinion.
I have been looking through http://en.wikipedia.org/wiki/L开发者_如何学运维ist_of_unit_testing_frameworks for possible frameworks to use.
Thanks
You said you've looked at "Google's Robot Framework" so I'm not sure if you're talking about the same thing or not, but there is a framework called the robot framework that is not owned by google. It allows you to write your scripts using keywords, and custom keywords can be implemented with Python and Java, and also with any .NET language. Note: you can't directly mix .NET and java keywords since .NET keywords need to run with IronPython and java keywords need Jython. However, there is a way to write keywords in any language and access them via a remote API.
It has some very nice features such as tagging and XML output, and comes with a variety of tools and libraries. I highly recommend it.
http://code.google.com/p/robotframework/
Go for fast and simple.
For example I really like the tests in the Go language https://go.googlecode.com/hg/test/ and their https://go.googlecode.com/hg/test/fixedbugs/ and https://go.googlecode.com/hg/test/bugs/ directories.
Shell is a lot faster than Python and much easier to port.
Selenium might be what you're looking for?
精彩评论