About user's register and userRecord's imports
Should the register and import of users' information share the same database? Should userRecord be imported only if there exists a user with same information (say, mid) registered?
The entire testing process is divided into two steps:
-
The first step is to use the dbimport method you have completed to import data from the ser file into the database you designed yourself.
-
The second step is to use the API you have completed to perform create, read, update, and delete operations in the database imported in the first step, and to verify their correctness.
@WhatWEat
Hello, reviewer. Could you give a hint on how to test the API? It seems that parameters are needed when typing commands like register. Or we can only test our implementation using Benchmark?
Thank you!
if you want to test register, here is a example(you can find more command in the io/sustc/command):
register 123 123 123 123 MALE 1月1日 123
Please note that your IntelliJ IDEA encoding needs to be set to UTF-8, otherwise the date input will become garbled. To change to UTF-8, here is a CSDN tutorial
While using commands in bootRun, @ShellMethod("user delete") like this, not like @ShellMethod(key = "db groupmember", value = "List group members") with "key = ..." , user delete or the method name cannot be recognized as a command, I'm unable to test my methods.
And, is try (Connection connection = dataSource.getConnection()) unable to use? I make a main method to use this, and everytime it ends with errors.
@Gin5567 Maybe you can follow issue #43 for the dataSource problem.
@Gin5567 Maybe you can follow issue #43 for the
dataSourceproblem.
Thanks! Problem solved.