Skip to content

TestYogi is an open-source app that simplifies web testing by allowing you to write automated test scenarios in plain English. It leverages natural language processing to make automated testing more accessible and time efficient.

License

Notifications You must be signed in to change notification settings

mahir22B/testyogi

Repository files navigation

TestYogi

TestYogi is an automated testing application that integrates with Selenium WebDriver and OpenAI's GPT models to interpret natural language instructions for automated web testing scenarios. It allows users to define test scenarios in plain English, which are then executed against specified web applications, making automated testing a breeze.

At its core, the application utilizes OpenAI's GPT models for Natural Language Processing, enabling it to understand and interpret test scenarios described in plain English. This feature is coupled with the robustness of Selenium WebDriver, which takes these interpreted commands and executes them. As a result, users can perform a variety of actions such as clicking buttons, entering text, selecting items from dropdowns, and explicitly waiting for elements—all articulated in simple language. The application is designed with extensibility in mind, promising future enhancements to support a broader spectrum of testing functionalities.

Demo

Here's the link for the demo

https://www.youtube.com/watch?v=IBmZ90OjFtM

Getting Started

This guide will walk you through setting up and running the application. It covers both the backend, built with Flask and leveraging OpenAI's GPT models, and the frontend, created with React.

Prerequisites

OpenAI api key
Python 3 or higher
Node.js and npm (Node Package Manager)

Setup and Execution

  1. Clone the repo

  2. Navigate to the project directory

  3. Install the required Python packages: pip install -r requirements.txt

  4. API Key Configuration*
    To securely manage your OpenAI API key, create a .env file in the root directory and add your API key: OPENAI_API_KEY=your_api_key_here

  5. Run the flask app: python app.py

  6. Navigate to root directory of React app and install npm dependencies: npm install

  7. Start the React App: npm start

*Security Note.

Directly embedding API keys in source code is strongly discouraged as it poses significant security risks. The use of environment variables, as outlined above, is a best practice for managing sensitive information and is crucial in maintaining the security integrity of your application. Always ensure your .env file is included in your .gitignore to prevent accidental exposure.

About

TestYogi is an open-source app that simplifies web testing by allowing you to write automated test scenarios in plain English. It leverages natural language processing to make automated testing more accessible and time efficient.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published