This guide helps you quickly get started with the comprehensive test plan.
- Node.js 18+ installed
- npm installed
- Git repository cloned
- Gemini API key (for testing content generation)
cd Notebook_Studio
npm installcp .env.example .env.local
# Edit .env.local and add your GEMINI_API_KEY# Check that test folders exist
ls -la "Test Inputs"
ls -la "Test Outputs"
ls -la "Test Reports"All directories should be present with README files.
npm run test:unitnpm run test:coveragenpm run test -- src/services/llmService.test.tsnpx playwright testnpm run devApplication will be available at http://localhost:3000
Open TEST_CASE_TEMPLATE.md and copy it to create a new test case:
cp TEST_CASE_TEMPLATE.md "test_cases/FUNC-REPORT-001.md"Example: Testing Report Generation
-
Load test data
- Copy sample file:
Test Inputs/sample_files/text_samples/technology_trends.txt - Click "+" button in sidebar
- Select "Upload File"
- Choose the sample file
- Copy sample file:
-
Configure settings
- Click "Style" button
- Select "Simple" complexity
- Click "Apply Settings"
-
Generate content
- Click "REPORT" in navigation
- Click "Execute Single View"
- Wait for generation to complete
-
Save output
- Copy generated report
- Save to:
Test Outputs/reports/report_simple_FUNC-REPORT-001.md
-
Take screenshot
- Capture the report view
- Save to:
Test Outputs/Screenshots/views/report_simple_FUNC-REPORT-001.png
-
Document results
- Update test case file with actual outcomes
- Mark status as Passed/Failed
- Add any notes or observations
Edit Test Inputs/test_log.json and add entry:
{
"testRuns": [
{
"testId": "FUNC-REPORT-001",
"timestamp": "2024-12-26T10:30:00Z",
"tester": "Your Name",
"status": "Passed",
"duration": "120s",
"inputs": {
"prompts": ["Generate a report about AI trends"],
"sources": ["technology_trends.txt"],
"settings": {
"complexity": "Simple"
}
},
"outputs": {
"file": "Test Outputs/reports/report_simple_FUNC-REPORT-001.md",
"screenshots": [
"Test Outputs/Screenshots/views/report_simple_FUNC-REPORT-001.png"
]
},
"notes": "Generation successful"
}
]
}For comprehensive testing, test each feature at all complexity levels:
# For Report generation:
# 1. Simple level → Save as report_simple_TESTID.md
# 2. Standard level → Save as report_standard_TESTID.md
# 3. Detailed level → Save as report_detailed_TESTID.md
# 4. Comprehensive level → Save as report_comprehensive_TESTID.mdCompare outputs to verify appropriate progression in depth and detail.
After completing a test run:
- Copy the template from
TEST_PLAN.mdSection 11.1 - Create new report file:
# Format: test_run_YYYYMMDD_###.md touch "Test Reports/test_run_20241226_001.md"
- Fill in all sections:
- Purpose and scope
- Test execution results
- Defects found
- Compliance assessment
- Recommendations
- Submit for review
Time: 10 minutes
- Start app
- Create new notebook
- Add text source
- Generate report (Standard level)
- Verify output quality
- Export notebook
Time: 15 minutes
- Upload text file
- Upload image file
- Generate infographic
- Verify image context is used
- Save output and screenshot
Time: 20 minutes
- Click "DB Connect"
- Enter server: "localhost"
- Enter database: "TestDB"
- Paste schema from
Test Inputs/sql_schemas/ecommerce_schema.sql - Click "Establish Bridge"
- Go to Chat
- Ask: "What tables are available?"
- Generate table view
- Export transform log
- Verify log structure
Time: 10 minutes
- Click "CANVAS"
- Click "Mermaid" mode
- Click "Load Example"
- Click "Preview"
- Verify diagram renders
- Click "Export SVG"
- Verify SVG downloads
Solution:
- Check that
GEMINI_API_KEYis set in.env.local - Verify API key is valid
- Check internet connection
Solution:
# Recreate folders if needed
mkdir -p "Test Inputs/prompts"
mkdir -p "Test Outputs/reports"
mkdir -p "Test Reports"Solution:
# Clean install
rm -rf node_modules package-lock.json
npm install
npm run buildSolution:
# Install Playwright browsers
npx playwright install
npx playwright test- Core functionality tests (notebook, source management)
- Content generation for each view type
- File upload and processing
- Basic UI navigation
- Output level testing (all 4 levels)
- SQL Bridge functionality
- Settings and configuration
- Export functionality
- Advanced features (Deep Research, Canvas)
- Multi-provider API testing
- Responsive design testing
- Integration scenarios
- Performance testing
- Edge cases
- Browser compatibility
- Accessibility testing
| Activity | Time |
|---|---|
| Initial setup | 5 min |
| Single automated test run | 2 min |
| Single manual test case | 10-30 min |
| Output level testing (4 levels) | 15-20 min |
| Complete test run (20 tests) | 4-6 hours |
| Test report creation | 30-60 min |
| Full test cycle | 1-2 days |
- ✅ Review
TEST_PLAN.mdin detail - ✅ Set up your test environment
- ✅ Run existing automated tests
- ✅ Execute your first manual test case
- ✅ Document results thoroughly
- ✅ Create your first test report
- ✅ Identify and log any defects
- ✅ Provide compliance recommendations
- Main Test Plan:
TEST_PLAN.md - Test Case Template:
TEST_CASE_TEMPLATE.md - Existing Testing Guide:
TESTING.md - Test Deficiency Report:
TEST_DEFICIENCY_REPORT.md - Test Inputs:
Test Inputs/directory - Test Outputs:
Test Outputs/directory - Test Reports:
Test Reports/directory
For questions or issues:
- Review the comprehensive
TEST_PLAN.md - Check existing test documentation
- Consult with QA lead or development team
Good luck with testing! 🚀
Last Updated: 2024-12-26