##WofInspectSystem
Note: These test suit class support a quick way to cover all tests or special test requirements, developer can build flexible test combination.
3-1 Use Intellj IDEA to open this project, every config will auto loaded if this project does not work, please check the module config, make sure all related libs has imported. eg, check cucumber and sqlite-jdbc-3.21.0.1.jar
4-1 Cucumber test
- All cucumber test
Run ~/WofInspectSystem/src/test/java/cucumber/WofAllCucumberTest.java - Owner subscription cucumber test
Run ~/WofInspectSystem/src/test/java/cucumber/unit/UserCucumberTest.java - Vehicle subscription cucumber test
Note: before you run this test, you must make sure this user has registered in the system
Run ~/WofInspectSystem/src/test/java/cucumber/unit/VehicleCucumberTest.java
4-2 Junit test
- All unit tests
Run ~/WofInspectSystem/src/test/java/junit/WofAllUnitTest.java - Owner subscription related unit tests
Run ~/WofInspectSystem/src/test/java/junit/suit/UserUnitTestSuit.java - Vehicle subscription related unit tests
Run ~/WofInspectSystem/src/test/java/junit/suit/VehicleUnitTestSuit.java - Single unit test
Run the classes in path: ~/WofInspectSystem/src/test/java/com/wof/*.java
4-3 All Wof test (cover all cucumber tests and all unit tests)
Run ~/WofInspectSystem/src/test/java/WofAllTest.java-
If you found some strange problems, please restart the Intellj IDE
-
If there are any problems make sqlite db does not work, please use these methods to reset data
- cd to project root path, eg ~/WofInspectSystem
- create sqlite file by "sqlite3 vtnz.sqlite", and then you are in command line mode
- in command line mode, create table user by sql sentence stored in ~/WofInspectSystem/sql/user.sql
- in command line mode, create table vehicle by sql sentence stored in ~/WofInspectSystem/sql/vehicle.sql

