Testing requires data, how do you automatically prepare data when testing? This data is really effective when the test begins?
How to prepare data in the database when testing automatically? If the project is using a solution such as Ant Junit, if you cannot automatically prepare the data, you will feel that this automatic test is not practical. When the xper in the project group is integrated and tested every two hours, you will tell them that you need to be available for two hours.
Use the SQL script command! At least everyone is doing this, and uses Ant's
The task is also very easy to automate it. But you can't guarantee that your database is in the state that you think should be. At least I think this is a problem. I didn't have a big fault before, it is not enough for our test intensity. When you write TestCase, you always deliberately avoid this problem. Invalid test!
But there may be other methods to see this article: "Control the test environment with DBUnit and Anthill" (GO->).
Use dbunit? Hey! Honestly, I haven't had time to look at:
"Many projects use relational data fix data, so all test strategies need to consider things happening in the database during each test: If the test makes the test database in inconsistent state, then all the tests will fail! Avoid this method is to set the database status as a known correlation before each test. "
"... DBUnit extends JUnit, which makes the database in a known state between tests, helping to avoid the failure of the latter test or give an error result, if the test will fail to destroy the database. These problems will occur."
It seems that you can try to introduce DBUnit into our automated test.
Take a look at Anthill. ANTHILL makes it easier to build and publish a process more efficient. (Original: Anthill Makes The Buildient.) Anthill is more than a build tool, according to the introduction of its official website, Anthill is a tool that can guarantee the remote sharing and build process of knowledge within the organization. . (Origi IS A TOOL THAT ENSURES A Controlled Build Process And Promotes The Sharing Of Knowledge With IN Organization.) Take a look at this picture:
very good! Unfortunately, it is commercial software.
In addition:
Ant should have a good position in the industry, Ant this Ant has a lot. The unit test is also deeply rooted, and Unit has a pile of Unit.
Ant:
Nant: .NET's ANT
Antenna: J2ME development subset of Ant
ANTHILL:
Ask friends to add ^ _ ^
JUnit:
DBUnit: Data Environment Test
NUnit: .NET JUnit
CPPUnit: unit test tool for C developers
HTTPUNIT: Test tools you can use by web developers
Please also ask your friends to add ^ _ ^
-End-