Skip to content

SoftwareTestingLLMs/WebtestingWithLLMs

Repository files navigation

WebtestingWithLLMs

This repository contains scripts for testing web applications using Selenium WebDriver.

ChromeDriver Installation Guide

This guide provides steps to install ChromeDriver, which is a necessary component for running automated tests with Selenium WebDriver on the Google Chrome browser.

Prerequisites

Ensure that you have the Google Chrome browser installed on your system. You can check your Google Chrome version by typing google-chrome --version in the terminal or navigating to chrome://version in the Chrome browser.

Installation

Windows

  1. Visit the ChromeDriver download page.
  2. Download the version that matches your installed Google Chrome version.
  3. Unzip the downloaded file to retrieve chromedriver.exe.
  4. Place chromedriver.exe in a directory of your choice and add that directory to your system's PATH environment variable.

MacOS

  1. If you have Homebrew installed, simply run: brew install chromedriver.
  2. Check if the correct version of ChromeDriver is installed by running chromedriver --version in the terminal.

Ubuntu (and other Debian-based systems)

  1. Use the following command to install ChromeDriver: sudo apt-get install chromium-chromedriver.
  2. Depending on your system's configuration, you may need to add the directory /usr/lib/chromium-browser/ to the PATH environment variable: export PATH=$PATH:/usr/lib/chromium-browser/.
  3. Verify the installation by running chromedriver --version in the terminal.

Remember to always match your ChromeDriver version with your Google Chrome browser version to avoid compatibility issues. Keep both your browser and ChromeDriver updated to the latest versions for the best results.

For more details, refer to the official ChromeDriver documentation.

Using the Monkey Tester Script

The monkey_tester.py script is a simple monkey testing utility that interacts with a specified web application.

Prerequisites

Ensure that you have Python and the necessary packages installed. You can install the packages using pip:

pip install selenium click

Running the script

You can run the script using the following command:

python monkey_tester.py --url <url_of_web_application> --delay <delay_between_actions> --interactions <number_of_interactions> --load-wait-time <time_to_wait_for_page_load>

The script accepts the following parameters:

  • --url: The URL of the web application to test. The default is https://sea-lion-app-q6nwz.ondigitalocean.app/sample1.
  • --delay: The time delay (in seconds) between actions on the web application. The default is 0.5 seconds.
  • --interactions: The number of interactions to perform on the web application. The default is 100.
  • --load-wait-time: The maximum time to wait (in seconds) for the page to load. The default is 10 seconds.

Remember to replace <url_of_web_application>, <delay_between_actions>, <number_of_interactions>, and <time_to_wait_for_page_load> with your desired values.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages