Skip to content

ivshof/HTTP-tester-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

HTTP-tester-tool

Is s simple multi tread tool for creating a flood of HTTP GET requests. Initially was created for testing WordPress installation on Azure VMs

Powered by "concurrent.futures" and "ThreadPoolExecutor" particularly.

How to use

http-test.py testUrl numberOfRequests max_workers getRequestTimeout

Parameters

  • testUrl: host name, like "https://www.google.com/"
  • numberOfRequests: total number of requests
  • max_workers: max parallel tasks (threads)
  • getRequestTimeout: timeout for each request

Note

As script saves received data in "results" directoity, such folder should be created.

Using exe-file in Windows

For simplicity, can be used with the http-test.exe that was created with "pyinstaller": http-test.7z

Usage example is the same as with py-file:

http-test.exe testUrl numberOfRequests max_workers getRequestTimeout

Also can be used with windows bat-files, to create semi auto tests: Check 'run-test.bat' from archive.

http-test.exe https://www.google.com/ 5000 10 10 %*
echo Waiting For Three 3 minutes... 
TIMEOUT /T 180 /NOBREAK

http-test.exe https://www.google.com/ 5000 20 10 %*
echo Waiting For Three 3 minutes... 
TIMEOUT /T 180 /NOBREAK

http-test.exe https://www.google.com/ 5000 30 10 %*
echo Waiting For Three 3 minutes... 
TIMEOUT /T 180 /NOBREAK

Additional resources that were used in code:

#https://www.tutorialspoint.com/python/python_command_line_arguments.htm
#https://creativedata.stream/multi-threading-api-requests-in-python/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages