Guidelines for DemoQA
Project Structure
The DemoQA project follows a specific structure to ensure clarity and maintainability. Below is an overview of the key directories and their purposes:
Directory |
Purpose |
local/repo |
|
Contains test data files. These files can be used to store test data in a structured format, such as JSON or CSV. |
repo |
|
Contains documentation files. These files can include project documentation, user guides, and other relevant information. |
repo |
|
Contains the history of the project. This directory can include previous versions of files, changelogs, and other historical information. |
local |
|
Contains local documentation files created when testing asciidoc. |
local |
|
Contains all the dependencies and packages required for the project. This directory is automatically generated when you install the project dependencies using |
local |
|
Contains Page Object Model (POM) files. Each POM file represents a page in the application and contains methods to interact with that page. |
repo |
|
Contains Playwright test reports. These reports provide detailed information about the test runs, including screenshots and logs. |
local |
|
Contains all test files. Each test file corresponds to a specific feature or functionality of the application. |
repo |
|
Contains utility functions and helpers that can be used across different test files. |
repo |
|
Contains configuration files. These files can include environment variables, test configurations, and other settings that are used throughout the project. |
|
Contains screenshots taken during test execution. These screenshots can be used for debugging and verification purposes. |
|
Contains log files generated during test execution. These logs can provide detailed information about the test runs and help in identifying issues. |
Naming Conventions
The following table outlines the basic naming conventions used in the DemoQA project. These conventions help maintain consistency and readability across the codebase.
| Topic | Description | Example |
|---|---|---|
Files and folders |
Use kebab-case names. |
|
Types, classes, and interfaces |
Use PascalCase names. |
|
Variables and functions |
Use camelCase names. |
|