Skip to main content

Basic Tool for automated testing if libraries exists

Project description

pipeline status coverage report

<gitlab-url>/-/settings/ci_cd

Install

pip install webpagetester

Test

webpagetester -f tests/files/working_urls.txt -f tests/files/special_urls.txt -f tests/files/wrong_urls.txt -o report.txt

Usage

enter:

webpagetester --help

to see all current options.

Test single URLs

webpagetester -p http://google.de -p https://google.de -p http://this.does.not.exit

Returns:

http://google.de Web site exists
https://google.de Web site exists
http://this.does.not.exit Web site does not exist
Press Enter to close...

From File

Create a file with an unknown url in each line.

pages.txt:

http://google.de
https://google.de
http://this.does.not.exit

Then use the following command:

webpagetester -f pages.txt -o report.txt

Returns:

http://google.de Web site exists
https://google.de Web site exists
http://this.does.not.exit Web site does not exist
Press Enter to close...

and in report.txt:

FOUND:
======
http://google.de
https://google.de


NOT FOUND:
==========
http://this.does.not.exit

Saving a "Screenshot"

Create a file with an unknown url in each line.

Then use the following command:

webpagetester -p https://google.de -s True

Returns:

http://google.de Web site exists
Press Enter to close...

and a https#$$google_de.html-file Be aware that links still work so to be safe only look at the files without internet!

Comparing Links

links -t tests/files/target.txt -c tests/files/compare3.txt -c tests/files/compare2.txt -o result.txt

Testing

python setup.py test

Publishing

python setup.py sdist bdist_wheel
twine upload dist/*

TODO

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

webpagetester-0.1.5.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

webpagetester-0.1.5-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file webpagetester-0.1.5.tar.gz.

File metadata

  • Download URL: webpagetester-0.1.5.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for webpagetester-0.1.5.tar.gz
Algorithm Hash digest
SHA256 d99e793daf44197a049581032e9c5a6828d7ec120772574f8563ac0bf141c555
MD5 a65f91a231ef2baa6eafcef33a9ad34e
BLAKE2b-256 d2829010c678aad9892e308757ca988aa215f20cb788fbb47ccecd7b7dd44d8a

See more details on using hashes here.

File details

Details for the file webpagetester-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: webpagetester-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for webpagetester-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 40d057c54895e39c048c039f957c3faa405a58e8be89eabd890dcd1bec1a9c97
MD5 089e16c28a5c41a0d05f30038d728e18
BLAKE2b-256 2e00268f67275d680db4f9668e3dd97d19b2122d45c87ac57338cdd6b2da0bce

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page