Description
The share upload rename test mimics a typical end user resource sharing scenario.
The admin user shares a parent folder with each of his colleagues, who in turn create a folder in the received share per iteration and user then uploads a fixed number of files. To finish, the folder in which the files are located is renamed by each user.
Procedure
admincreatesNusers.Ncan be set with the--vusoption.- by default, it set to 1.
admincreates a folderoc-share-upload-rename.adminshares that folder to each of the users.- each
userlogs into the system individually. - each
usercreates a folder$ITERATION-initial-$USERNAMEinside the received share. - each
useruploads10files with a size of1mbeach into this folder. - each
userrenames the folder$ITERATION-initial-$USERNAMEto$ITERATION-final-$USERNAME. admindeletes theoc-share-upload-renamefolder.admindeletes the created users.
the test runs N times for each user, for example if you define --vus 2 and --iterations 5 the testing steps as a whole will run 10 times (5 times per user).
Available options
- Shared options
TEST_FOLDER: test root folder name- default value:
oc-share-upload-rename export TEST_FOLDER=your-share-upload-rename-folder-name
- default value:
ASSET_SIZE: size of the individual asset in kb- default value:
1000 export ASSET_SIZE=2000
- default value:
ASSET_QUANTITY: number of assets to be uploaded- default value:
10 export ASSET_QUANTITY=20
- default value:
How to run the test
please read here how the test can be executed, only the script is different