Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About user's register and userRecord's imports #32

Closed
lxy-quantum opened this issue Dec 15, 2023 · 6 comments
Closed

About user's register and userRecord's imports #32

lxy-quantum opened this issue Dec 15, 2023 · 6 comments
Labels
status:answered Answered officially type:question Further information is requested

Comments

@lxy-quantum
Copy link

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?

@WhatWEat
Copy link
Collaborator

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.

@dequeueing
Copy link

@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!

@WhatWEat
Copy link
Collaborator

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

@Gin5567
Copy link

Gin5567 commented Dec 17, 2023

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.

@sses7757
Copy link
Collaborator

@Gin5567 Maybe you can follow issue #43 for the dataSource problem.

@Gin5567
Copy link

Gin5567 commented Dec 17, 2023

@Gin5567 Maybe you can follow issue #43 for the dataSource problem.

Thanks! Problem solved.

@hezean hezean added type:question Further information is requested status:answered Answered officially labels Dec 17, 2023
@hezean hezean closed this as completed Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:answered Answered officially type:question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants