Skip to main content

TestCraft Extension

Overviewโ€‹

TestCraft is a Chrome extension that leverages Large Language Models (LLMs) to generate test ideas and scenarios based on selected UI elements. It streamlines the test creation process by automatically generating test scripts for popular testing frameworks.

Key Featuresโ€‹

๐ŸŽฏ AI-Powered Test Generationโ€‹

  • Automatically generates test ideas and scenarios based on selected UI elements
  • Provides intelligent suggestions for edge cases and test coverage

๐Ÿ› ๏ธ Multi-Framework Supportโ€‹

TestCraft generates test scripts for:

  • Playwright
  • Cypress
  • Selenium

๐Ÿ’ป Multiple Programming Languagesโ€‹

Generate test scripts in various programming languages to match your project's tech stack.

๐Ÿ“‹ Easy Copy & Pasteโ€‹

All generated scripts can be easily copied and integrated into your test suite.

Important Considerationsโ€‹

API Key Required

TestCraft is not completely free as it requires using your own API key for LLM services.

Code Structure Limitations

The generated scripts may not perfectly match your existing code structure, as TestCraft doesn't have access to your test codebase. For refactoring existing tests, GitHub Copilot is still the recommended tool.

Best Practicesโ€‹

Ideal Use Casesโ€‹

โœ… Rapid Ideation - Quickly generate initial test ideas and scenarios
โœ… Exploratory Testing - Discover edge cases and test scenarios you might have missed
โœ… Test Planning - Create a foundation for your test suite
โœ… Learning - Understand different testing approaches and patterns

  1. Start with TestCraft - Generate initial test ideas and scripts
  2. Review & Edit - Customize the generated tests to match your needs
  3. Refine with Copilot - Use GitHub Copilot for refactoring and integration
  4. Execute & Iterate - Run tests and refine based on results

Getting Startedโ€‹

  1. Install the TestCraft Chrome extension from the Chrome Web Store
  2. Configure your LLM API key in the extension settings
  3. Navigate to the web application you want to test
  4. Select UI elements and let TestCraft generate test scenarios
  5. Copy and integrate the generated scripts into your test suite

Summaryโ€‹

TestCraft excels at rapid test ideation and exploratory testing. Use it as a starting point to:

  • Generate comprehensive test scenarios quickly
  • Discover edge cases and testing opportunities
  • Accelerate your testing workflow

Remember to review and adapt the generated scripts to match your specific codebase structure and testing requirements.