GithubHelp home page GithubHelp logo

simding / webtestingwithllms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from softwaretestingllms/webtestingwithllms

0.0 0.0 0.0 74 KB

Fork to work with a different code base

License: MIT License

Python 100.00%

webtestingwithllms's Introduction

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.

webtestingwithllms's People

Contributors

simding avatar danielzim avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.