Bernhard 74fece2f29 Add 90 seconds waiting time after users are creates, so that the E-Mail-Addresses get unblocked by Stats-Script. | 5 years ago | |
---|---|---|
.idea | 5 years ago | |
dist | 5 years ago | |
old | 5 years ago | |
.gitignore | 5 years ago | |
1 | 5 years ago | |
API_Calls.py | 5 years ago | |
__init__.py | 5 years ago | |
api_calls.exe.spec | 5 years ago | |
copy_from_pretest.cmd | 5 years ago | |
copy_from_server.cmd | 5 years ago | |
copy_from_sshrouter.cmd | 5 years ago | |
init.ini | 5 years ago | |
init_nginx.ini | 5 years ago | |
init_test.ini | 5 years ago | |
local_large.sh | 5 years ago | |
local_small.sh | 5 years ago | |
log_reporter.py | 5 years ago | |
make.cmd | 5 years ago | |
pp_all_big.sh | 5 years ago | |
pp_complete_run.sh | 5 years ago | |
pp_init.ini | 5 years ago | |
pp_mysql.sh | 5 years ago | |
pp_mysql_recycle.sh | 5 years ago | |
pp_mysql_short.sh | 5 years ago | |
pp_mysql_short_recycle.sh | 5 years ago | |
pp_nginx_big.sh | 5 years ago | |
pp_re_big.sh | 5 years ago | |
readme.md | 5 years ago | |
scanapp_delete_transaction_data.sql | 5 years ago | |
scanapp_master_data.sql | 5 years ago | |
test.db | 5 years ago | |
test.jpg | 5 years ago | |
test2.jpg | 5 years ago | |
test_all_big.sh | 5 years ago | |
test_all_med.sh | 5 years ago | |
test_complete_faster.sh | 5 years ago | |
test_complete_run.sh | 5 years ago | |
test_med.sh | 5 years ago | |
test_nginx_0kb.sh | 5 years ago | |
test_nginx_100kb.sh | 5 years ago | |
test_nginx_10kb.sh | 5 years ago | |
test_nginx_big.sh | 5 years ago | |
test_re_big.sh | 5 years ago | |
test_re_med.sh | 5 years ago | |
test_re_small.sh | 5 years ago | |
test_short.sh | 5 years ago | |
test_short_eu.sh | 5 years ago |
General functions:
In the ini-file (if none is given, system looks for init.ini) all parameters can be preset. If a specific ini-file shall be used use command line parameter --ini_file=.
All other command line parameters overwrite the settings in the INI-file. Let's assume you have users=10000 in the ini_file and you start the program using command line parameter --users=10, then the 10 from the command line will overwrite the 10000 from the INI-File. Same goes for all other parameters.
Most important parameters (server, users, products) are also defaulted in the program, so you could theoretically also run it with an emtpy init.ini (not sure why you would do that, but it should be possible)
Command line parameters are printed on every start of the program. If you want to just see the available parameters, call the program with an invalid option e.g. --invalid
A log is written for each start of the program. The log also shows while running, which API-Calls take how long (Average, min, max, last). The statistics is printed at the end of the written Log aswell. LogLevel 1, 2, 4 can be used to influence contents of logs written. Log on Stdout is always 2.
Timestamp of the first call of the program is used to randomly create a base-number, that will be used for all usernames and EAN-Codes. The base-number is then concatenated with range(1000../) to form each individual EAN-Code and User-ID. (e.g. 2341231000...2341231999 for usernames and EAN-Codes).
api_users.create_users()
f_full_recycle()
Prerequisit: Download result of select email from auth_users
as CSV-File into the path.
Mode for this call: --mode=recycling
or mode=recycling
in the INI-File
CSV-File + path (if not current dir) must be given as commandline parameter --csv
, otherwise it won't work.
Will behave like a regular user of the App, flow as follows:
The random products are found by brute-forcing /products/{id}
with random numbers until the count of --products=
from command line was found. In case there are too many 404-messages, the system assumes an endless loop and quits. (better use smaller numbers of --products
, e.g. 10 or so on a smaller database).
Requesting files from Server given by --server
(or ini_file) and writing statistics about duration.
test.jpg
(3.2 MB) and test2.jpg
(80kB)api_calls.exe
instead of python API_calls.py
in the *.SH-Files)