-
-
Notifications
You must be signed in to change notification settings - Fork 2
set testusers
When working on building a website or extension, you often need some test users to use for your work. This command adds a handful of test user accounts for you. You can add the --howmany
parameter to define how many users you want to create. Otherwise, 100
will be created by default.
This is not meant to be used in production, necessarily. Instead, the intent is for this command to be used to help you prepare demos and test environments more easily. This could be for sales presentations, conference/user group demos, internal demos, etc. It's really up to you.
Command | Description |
---|---|
set-testusers |
When working on building a website or extension, you often need some test users to use for your work. This command adds a handful of test user accounts for you. You can add the --howmany parameter to define how many users you want to create. Otherwise, 100 will be created by default. |
The flags below can help you determine exactly how to use this prompt.
Flag | Type | Default | Description |
---|---|---|---|
--howmany |
Integer | (100) | Enter the number of user accounts you want to create. |
If successful, you should see a message for each test user, stating the result of the creation of the account.
User Created:
Successfully created user: testuser-1 ({testuser-1@example.com}).
User Exists:
User already exists, not created: testuser-1 ({testuser-1@example.com}).
Error Creating User:
Error creating user: testuser-1 ({testuser-1@example.com}).
(if this happens, check the Admin Log to see why, or run set-debug
and then check the Log4NET log file for more details.)
The password for each user account is the same. See the command notes above.
This command has a companion command, delete-testusers
. The delete-testusers
command will remove the users created by the set-testusers
command, here.
Users Created and Deleted
Flag Error
Are you getting any value out of this content and/or the source code here?
Please consider becoming a sponsor. Any amount is appreciated!
This project is donated to the DNN Community and the world by Upendo Ventures.
If you need support or would like to sponsor an enhancement for any of our open-source projects, please contact us.