Cypress Copilot is a Visual Studio Code extension that accelerates BDD (Behavior Driven Development) testing with AI-generated code suggestions.
It allows users to input or copy-paste BDD scenarios, select an OpenAI model, and instantly generate code for step definitions and POM (Page Object Model) implementations.
Cypress Copilot utilizes the novel "Few-shot chain" prompt technique introduced by us in our research paper - https://ieeexplore.ieee.org/abstract/document/10812696.
By leveraging our unique and novel prompt technique, Cypress Copilot exhibits superior code generation capabilities compare to gpt 3.5, gpt 4, github co-pilot, with minimal syntax issues and enhanced code maintainability.
Author(s): Suresh Babu Nettur.
1. Chatgpt, openai can make mistakes, please check imoortant information of these before proceeding.
2. This tool currently supports only BDD format scenarios.
3. Please check privacy policy and Terms of use.
4. Risk of API Misuse: Be aware of potential risks associated with API hacks. Protect your API key and avoid sharing it publicly or exposing it in unsecured environments.
5. Ethical Use Only: Users are strictly advised not to use this tool for any unethical, illegal, or harmful activities on the internet.
The developers do not condone or support misuse of this application.
6. No Sensitive Information: Do not input any Personally Identifiable Information (PII) or Protected Health Information (PHI) into this tool.
The developers are not responsible for any breach of privacy or misuse resulting from user-provided inputs.
7. Limitations: This tool leverages on the GPT-4, GPT-3.5 OpenAI API,
and all inherent issues, limitations, or inaccuracies of the model will be reflected in the application's behavior.
Please use the tool with caution and verify critical outputs independently.
This extension does not collect, store, or share any personal data. If you have questions, please contact us.
By using this extension, you agree to the following terms:
1. This extension is provided "as is" without any warranties.
2. The authors are not liable for any damages resulting from its use.
3. You must comply with applicable laws while using this extension.
Before using Cypress Copilot, ensure you have the following installed:
Ctrl+Shift+P or Cmd+Shift+P on macOS) and select Cypress Copilot.Alternatively, install via the command line using vsce: vsce install cypress-copilot
Set OpenAI API Key:
You can set the API key directly from VS Code.
Press Ctrl+Shift+P, type Set API Key, and select the 'Set API Key' command to enter your OpenAI API key.
Model Selection:
Select the OpenAI model from the drop-down in the extension UI to choose the desired complexity and style of generated code.
Enter a scenario like:
Scenario: User logs into the system
Given the user is on the login page
When the user enters valid credentials
Then the user should be redirected to the dashboard
Select an OpenAI model.
Click Generate Code to receive step definition and POM suggestions.
API Key Not Persisting: In some cases, the OpenAI API key may not persist after restarting VS Code. If this happens, use Ctrl+Shift+P to open the command palette and re-enter your API key using the 'Set API Key' command.
Inconsistent Model Outputs: Different OpenAI models may generate inconsistent results for step definitions and POM implementations, especially for non-standard scenarios. If you encounter unexpected output, try switching models to see if it improves the result.
This project is licensed under the Apache License 2.0
See the LICENSE file for details.
You are free to: - Share: Copy and redistribute the material in any medium or format. - Adapt: Remix, transform, and build upon the material.
Under the following terms: - Attribution: You must give appropriate credit, provide a link to the license, and indicate if changes were made.
For issues or questions, visit the GitHub repository or contact us via the Visual Studio Code Marketplace.
$ claude mcp add Cypress-Copilot \
-- python -m otcore.mcp_server <graph>