Browse Source

nginx-change

Bernhard 5 years ago
parent
commit
3e6f5161ec
2 changed files with 6 additions and 0 deletions
  1. 2 0
      API_Calls.py
  2. 4 0
      readme.md

+ 2 - 0
API_Calls.py

@@ -901,6 +901,8 @@ def f_nginx():
     l_all_img = args_read("--file_names")
     l_status_codes = {}
 
+    logger.info("Mode: nginx")
+
     if not l_all_img:
         print("Filenames missing from INI-File. Can't continue")
         sys.exit("Missing parameters - can't continue")

+ 4 - 0
readme.md

@@ -3,6 +3,7 @@
 General functions:
 * Create random users and products
 * Simulate daily behaviour of existing users
+* Load-Test nginx-Server
 
 ## Call Parameters and INI-File
 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=.
@@ -42,6 +43,9 @@ 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).
 
+## Load-Test nginx-Server
+Requesting files from Server given by `--server` (or ini_file) and writing statistics about duration.
+
 # Other contents of the Repo
 * Make.cmd --> Create EXE-File for distribution to Windows-PCs without Python installed
 * The images `test.jpg` (3.2 MB) and `test2.jpg` (80kB)