Skip to content

mikewangmax/WofInspectSystem

Repository files navigation

##WofInspectSystem

1, Project Structure

project_structure

2, Test Structure (Workflow)

Note: These test suit class support a quick way to cover all tests or special test requirements, developer can build flexible test combination.

test structure

3, How to run this project

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, How to test

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

5, Document

  1. Wof Inspect System: Story and Task
  2. WOF Inspect System: Story_and_Estimation

6, FAQ

  1. If you found some strange problems, please restart the Intellj IDE

  2. 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

About

This is a Cucumber Test Project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published