Skip to content

Commit eee685b

Browse files
committed
Add learning-path.md and update docs for Playwright test categories and automation
1 parent a08f51d commit eee685b

File tree

3 files changed

+97
-8
lines changed

3 files changed

+97
-8
lines changed

README-ai.md

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,28 @@
1+
2+
# Playwright Basic to Advanced Learning (with K11softwaresolutions.com Demos)
3+
4+
Before leveraging AI-powered test generation, this framework provides a comprehensive suite of Playwright demo tests—ranging from basic to advanced—using real-world scenarios on [K11softwaresolutions.com](https://k11softwaresolutions.com).
5+
6+
**What you'll learn:**
7+
- Playwright setup and configuration
8+
- Writing your first E2E test
9+
- Advanced selectors and assertions
10+
- Component and API testing
11+
- Context-aware flows with XState
12+
- Data-driven and parameterized testing
13+
- Robust error handling and reporting
14+
15+
Explore the `tests/` directory for hands-on examples and best practices. These demos serve as a foundation for mastering Playwright before moving to AI-augmented automation.
16+
117
# AI Test Generator (OpenAI-powered)
218

319
This module enables AI-driven Playwright test generation using OpenAI's API and prompt templates.
420

521
## Features
6-
- Generates Playwright tests from prompt templates and config data
7-
- Supports CSV-driven test data, API endpoints, and DB config
8-
- Uses OpenAI API for intelligent test creation
22+
- Playwright demo tests (basic to advanced) for K11softwaresolutions.com
23+
- Context-aware flows using XState
24+
- AI-powered Playwright test generation from prompt templates and config data
25+
- CSV-driven test data, API endpoints, and DB config support
926
- Secure API key management via `.env`
1027

1128
## Usage
@@ -31,8 +48,9 @@ This module enables AI-driven Playwright test generation using OpenAI's API and
3148
- The generated test will be saved to `tests/mab/AI_GeneratedTest.spec.js`.
3249
3350
## Customization
34-
- Add new prompt templates for different test scenarios.
35-
- Update `ai/generate_generic_tests_ai.js` to use your desired prompt file.
51+
- Add new prompt templates for different test scenarios
52+
- Update `ai/generate_generic_tests_ai.js` to use your desired prompt file
53+
- Extend demo tests in `tests/` for new learning modules
3654
3755
## Security
3856
- `.env` is gitignored by default.
@@ -50,10 +68,11 @@ See `prompts/playwright_login_test_generation.txt` for a sample login test promp
5068
MIT
5169
5270
**Experimental Stage:**
53-
This AI test generator is currently in an experimental phase. Features and workflows may change, and reliability is not guaranteed for production use. Feedback and contributions are welcome!
71+
This framework is currently in an experimental phase. Features and workflows may change, and reliability is not guaranteed for production use. Feedback and contributions are welcome!
5472
5573
## Future Enhancements Planned
5674
75+
- More advanced Playwright demo modules
5776
- Support for Playwright API and DB test generation
5877
- Multi-prompt scenario chaining
5978
- Improved error handling and reporting

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,25 @@
44
<img src="artifacts/assets/javascript-logo.svg" alt="JavaScript Logo" height="60" style="margin-right:20px;vertical-align:middle;"/>
55
</p>
66

7-
# K11TechLab Playwright Automation – K11 Software Solutions
87

9-
A robust, real-world Playwright automation framework for **K11 Software Solutions**. This project demonstrates best practices in UI automation, advanced reporting, and artifact management for a modern SaaS web application.
8+
# K11TechLab Playwright Automation
9+
10+
A robust, real-world Playwright automation framework for **K11 Software Solutions**. This project demonstrates best practices in UI automation, advanced reporting, artifact management, and introduces cutting-edge AI-powered test generation for modern web applications.
11+
12+
13+
## 🚀 Capabilities & Innovations
14+
15+
- **Playwright basic to advanced learning path:** Step-by-step demo tests and documentation guide you from Playwright fundamentals to advanced automation. Explore real-world scenarios on K11softwaresolutions.com, with code in the `tests/` directory and detailed articles in `/doc`.
16+
- **AI-powered test generation:** Leverage OpenAI to automatically generate Playwright tests from prompt templates and config data, accelerating test authoring and coverage.
17+
- **Context-aware flows:** Integrate XState for stateful, dynamic test scenarios and advanced automation logic.
18+
- **Data-driven testing:** Use CSV, API, and DB config for parameterized, scalable test cases.
19+
- **Secure config management:** `.env` and `.env.example` for safe API key handling and sharing.
20+
- **Comprehensive demo suite:** Basic to advanced Playwright tests on real-world K11softwaresolutions.com scenarios.
21+
- **Component, E2E, and API testing:** Unified structure for UI, API, and component-level validation.
22+
- **Advanced reporting:** Allure, HTML, and video artifacts for rich evidence and debugging.
23+
- **CI/CD ready:** Scalable, maintainable structure for enterprise automation.
24+
25+
Explore the `README-ai.md` for details on AI test generation and advanced features.
1026

1127

1228

learning-path.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Playwright Learning Path & Test Categories
2+
3+
This document guides you through the learning path for mastering Playwright automation in the K11TechLab framework, with references to demo tests and advanced categories including MCP (Model Context Protocol).
4+
5+
---
6+
7+
## 1. Getting Started: Playwright Basics
8+
- **Simple navigation and assertions**
9+
- Example: `tests/smoke/HomeTest.spec.js`
10+
- **Selectors and element actions**
11+
- Example: `utils/ElementAction.js`
12+
- **Waits and synchronization**
13+
- Example: `utils/WaitIUtils.js`
14+
15+
## 2. Intermediate: Data-Driven & Parameterized Testing
16+
- **CSV-driven test data**
17+
- Example: `testdata/login_data.csv`, `utils/DataProvider.js`
18+
- **Parameterized test flows**
19+
- Example: `tests/smoke/LoginTest.spec.js`
20+
21+
## 3. Advanced: Component, API, and Visual Testing
22+
- **Component-level tests (React, UI)**
23+
- Example: `components/QuickActions.js`, `tests/component/HeroCarousel.spec.js`
24+
- **API testing and network mocking**
25+
- Example: `tests/api/AlApiTest.spec.js`
26+
- **Visual regression and screenshot validation**
27+
- Example: `artifacts/`, custom fixtures
28+
29+
## 4. Context-Aware & State Management
30+
- **XState integration for context-aware flows**
31+
- Example: `hooks/hook.js`, `doc/xstate-overview.md`
32+
33+
## 5. MCP (Model Context Protocol) Automation
34+
- **MCP login and scenario tests**
35+
- Example: `tests/mcp/MCPLoginTest.spec.js`
36+
- **MCP reports and artifacts**
37+
- Example: `reports/mcp/`
38+
39+
## 6. AI-Augmented Test Generation
40+
- **AI-powered Playwright test generation**
41+
- Example: `ai/generate_generic_tests_ai.js`, `prompts/playwright_login_test_generation.txt`
42+
- See: `README-ai.md`
43+
44+
---
45+
46+
## 📚 Documentation & Further Reading
47+
- Component testing: `doc/component-testing.md`
48+
- Playwright JS/TS/Python comparison: `doc/cypress-vs-playwright.md`
49+
- XState overview: `doc/xstate-overview.md`
50+
- MCP and AI integration: `README-ai.md`
51+
52+
---
53+
54+
**Follow this path to build foundational skills, then explore advanced automation and AI-driven workflows for real-world web applications.**

0 commit comments

Comments
 (0)