Skip to content

Commit

Permalink
Add the list of features test cases to the repo (#30651)
Browse files Browse the repository at this point in the history
### Proposed Changes
* Organize CSV Files:
* Create a README

### Checklist
- [x] Tests Cases
- [x] Readme

### Additional Info
This PR adds CSV files with test cases to the repo to provide developers
with the necessary inputs for conducting their own QA.

---------

Signed-off-by: bryanboza <[email protected]>
  • Loading branch information
bryanboza authored Nov 13, 2024
1 parent b1ba6db commit 3e70003
Show file tree
Hide file tree
Showing 14 changed files with 732 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/test-cases/Advance_Templates.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Name,Suite,Section,Estimated Time,Type,Steps (Instructions),Steps (Expected Result),Preconditions/Validadtion,,,,,,,,,,,,,,,,,,
Add Basic HTML Code to the Template,Templates,Advance,10,Functional,"1. Enter basic HTML code (e.g., <div><h1>Hello World</h1></div>) into the code editor.
2. Click the Save button.","The code is successfully saved without errors, and changes are reflected in the preview or live site.","- User has permission to edit templates.
- The template is open in code mode.",,,,,,,,,,,,,,,,,,
Insert a Container into the Template,Templates,Advance,10,Functional,"1. Click on the Add a Container dropdown.
2. Select a predefined container (e.g., SYSTEM_CONTAINER).
3. Click the Save button.","The container is inserted into the code and saved successfully, with no errors.","- User has access to predefined containers.
- The template is open in code mode.",,,,,,,,,,,,,,,,,,
Modify Existing Template Code,Templates,Advance,10,Functional,"1. Edit the existing code (e.g., change a header tag from <h1> to <h2>).
2. Click the Save button.",Changes are saved and accurately reflected in the template's design.,- The template already contains code.,,,,,,,,,,,,,,,,,,
Cancel Edits Before Saving,Templates,Advance,10,Functional,"1. Make changes to the template code.
2. Click the Cancel button before clicking the Save button.","Changes are discarded, and the template reverts to its previous state.",- The template is open for editing in code mode.,,,,,,,,,,,,,,,,,,
Add Velocity Script to the Template,Templates,Advance,10,Functional,"1. Enter a simple Velocity script (e.g., #set($greeting = ""Hello World!"") $greeting).
2. Click the Save button.","The script is saved, and the template renders the Velocity output correctly.",- The user has knowledge of Velocity scripting.,,,,,,,,,,,,,,,,,,
Enter Invalid HTML Code,Templates,Advance,10,Functional,"1. Enter invalid HTML code (e.g., <div><h1>Hello World</div> -- missing closing </h1>).
2. Click the Save button.",The system displays an error message indicating the invalid HTML.,- The template is open for editing.,,,,,,,,,,,,,,,,,,
Insert Multiple Containers in Different Positions,Templates,Advance,10,Functional,"1. Insert different containers (e.g., SYSTEM_CONTAINER, HEADER_CONTAINER) into various sections of the code.
2. Click the Save button.","Each container is inserted at the correct location, saved successfully, and the changes are reflected in the templateÕs design.","- The template is open in the code editor.
- Multiple containers are available to be inserted.",,,,,,,,,,,,,,,,,,
Attempt to Edit Template Without Permissions,Templates,Advance,10,Functional,"1. Open the template in code mode.
2. Attempt to make changes to the code.
3. Click the Save button.",The system prevents the changes from being saved and displays a permission error.,- User does not have edit permissions.,,,,,,,,,,,,,,,,,,
Long Template Name,Templates,Advance,10,Functional,"1. Enter a template name longer than 200 characters.
2. Click the Save button.",The system either saves the template without truncating the name or displays a validation message if the name exceeds the allowed length.,- The user is logged in with permissions to create templates.,,,,,,,,,,,,,,,,,,
Duplicate Template Name,Templates,Advance,10,Functional,"1. Create a new template with the same name as an existing one.
2. Click the Save button.",The system displays an error message indicating that the template name is already in use and prevents saving.,- A template with the same name already exists in the system.,,,,,,,,,,,,,,,,,,
API Tab Functionality for Large Template,Templates,Advance,10,Functional,"1. Make changes to the template code.
2. Click the Save button.
3. Click on the API tab to retrieve the API information for the template.","The API information should load quickly, and the template should be accurately saved before the API view is accessed.",- The template has a complex structure with many containers and rows.,,,,,,,,,,,,,,,,,,
52 changes: 52 additions & 0 deletions docs/test-cases/Apps_Portlet.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
Name,Section,Type,Steps (Instructions),Steps (Expected Results),Preconditions,,,Assigned to: ,Status,Issue link
Check if Apps portlet is available with enterprise license,Apps,Functional," 1: Open dotCMS with an enterprise license
2: Verify Apps portlet is available",Apps portlet is available with enterprise license,Enterprise license is active,,,,,
Verify clear message for community edition users,Apps,Functional," 1: Open dotCMS in community edition
2: Verify a clear and consistent message is shown for community users",Clear and consistent message is shown for community edition users (this feature should be just for EE users) ,Community edition is active,,,,,
Check if search component filters apps by title or name,Apps,Functional," 1: Open Apps portlet
2: Use the search component to filter apps by title or name",Search component filters apps successfully by title or name,Apps portlet is open,,,,,
"Verify link to ""how to create apps"" redirects to dotCMS docs",Apps,Functional," 1: Locate the link to ""how to create apps""
2: Click the link
3: Verify redirection to dotCMS docs page",Link redirects to the dotCMS documentation page,Apps portlet is open,,,,,
Check ability to import configuration by requesting file and password,Apps,Functional," 1: Open Apps portlet
2: Choose import configuration
3: Upload a file and enter a password",System requests file and password for importing configuration,Configuration file and password are available,,,,,
Verify importing configuration works,Apps,Functional," 1: Upload a configuration file
2: Verify successful import of the configuration",Configuration is imported successfully,Configuration file is available for import,,,,,
Verify bulk export of all configurations,Apps,Functional," 1: Select bulk export option
2: Verify all configurations are exported",All configurations are exported successfully,Configurations are available for bulk export,,,,,
Verify password encryption when exporting configuration,Apps,Functional," 1: Attempt to export a configuration
2: Verify the system asks for a password for encryption",System requests a password for encryption before exporting,Configurations are available for export,,,,,
Ensure listing of all supported apps,Apps,Functional," 1: Open Apps portlet
2: Verify all supported apps are listed",All supported apps are listed,Supported apps are known,,,,,
Verify redirection to configuration page when an app is selected,Apps,Functional," 1: Select an app
2: Verify redirection to the app configuration page",System redirects to configuration page of the selected app,Apps portlet is open,,,,,
Check search filter on configuration page,Apps,Functional," 1: Open the configuration page for an app
2: Use the search filter to filter configurations",Search filter works on the configuration page,App configuration page is open,,,,,
Ensure listing of all available sites when adding new configuration,Apps,Functional," 1: Add a new configuration
2: Verify that all available sites are listed",All available sites are listed when adding new configuration,App configuration page is open,,,,,
Verify ability to add configuration by filling required fields after selecting a site,Apps,Functional," 1: Select a site from the list
2: Add a configuration by filling in required fields",Configuration is added successfully after selecting a site and filling required fields,Sites are available for configuration,,,,,
Ensure configuration can be saved,Apps,Functional," 1: After adding a configuration, click save
2: Verify the configuration is saved successfully",Configuration is saved successfully,Configuration page is open and sites are available,,,,,
Check if every app displays the proper documentation,Apps,Functional," 1: Open the documentation for an app
2: Verify proper documentation is displayed",App documentation is displayed correctly,Apps portlet is open,,,,,
Verify ability to download configuration file after adding it,Apps,Functional," 1: After adding a configuration, click download
2: Verify the configuration file is downloaded",Configuration file is downloaded successfully,Configuration is added successfully,,,,,
Ensure password encryption when downloading configuration,Apps,Functional," 1: Attempt to download a configuration file
2: Verify password encryption is required",Password encryption is required when downloading configuration,Configuration file is available for download,,,,,
Verify ability to edit configuration after adding it,Apps,Functional," 1: Select a configuration
2: Edit the configuration and save changes",Configuration is edited successfully,Configuration is available for editing,,,,,
Ensure specific configuration can be deleted,Apps,Functional," 1: Select a specific configuration
2: Delete the configuration",Configuration is deleted successfully,Configuration is available for deletion,,,,,
Ensure bulk deletion of configurations,Apps,Functional," 1: Select bulk delete option
2: Delete all configurations",All configurations are deleted successfully,Multiple configurations are available,,,,,
Validate confirmation request when deleting configuration,Apps,Functional," 1: Attempt to delete a configuration
2: Verify a confirmation request is displayed",Confirmation request is displayed when attempting to delete configuration,Configuration is available for deletion,,,,,
Verify exporting configuration for a specific app,Apps,Functional," 1: Select a specific app
2: Export its configuration",Configuration for the selected app is exported successfully,Specific app has configuration,,,,,
Validate app key is shown when an app is selected,Apps,Functional," 1: Select a specific app
2: Verify the app key is displayed",App key is displayed when app is selected,Specific app is selected,,,,,
Check if app key can be copied to clipboard by clicking on it,Apps,Functional," 1: Select a specific app
2: Click on the app key
3: Verify the key is copied to clipboard",App key is copied to clipboard when clicked,Specific app is selected,,,,,
39 changes: 39 additions & 0 deletions docs/test-cases/BinaryField.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Name,Section,Type,Steps (Instructions),Steps (Expected Results),Preconditions,Status,Assigned to: ,Status,Issue link
Drag and drop files,Binary Field,Functional,"Step 1: Open the binary field
Step 2: Drag and drop a valid file",File is successfully uploaded via drag and drop,User is on the binary field,,,,
"Select files to upload using the ""choose file"" link",Binary Field,Functional,"Step 1: Open the binary field
Step 2: Select a valid file using the ""choose file"" link",File is successfully selected and uploaded,User is on the binary field,,,,
Import files from URL,Binary Field,Functional,"Step 1: Open the binary field
Step 2: Import a valid file by providing a URL",File is successfully imported from the provided URL,User is on the binary field,,,,
Create a new file from text,Binary Field,Functional,"Step 1: Open the binary field
Step 2: Create a new file using the text editor",New file is created from text,User is on the binary field,,,,
Generate a file from AI (if AI configuration exists),Binary Field,Functional,"Step 1: Open the binary field
Step 2: Attempt to generate a file using AI
Step 3: Check if AI configuration exists and option is enabled/disabled accordingly","File is generated if AI configuration exists, otherwise the option is disabled",AI configuration exists in the system (or not),,,,
File preview generation for supported extensions,Binary Field,Functional,"Step 1: Upload files of various supported extensions
Step 2: Verify the file preview is generated",File preview is generated for all supported extensions,Supported extensions are known,,,,
Validate if field is required,Binary Field,Functional,"Step 1: Open the binary field
Step 2: Leave the field empty
Step 3: Check if validation error appears if the field is required",Validation error appears when the field is required and left empty,Field can be marked as required,,,,
Show clear message if field is required,Binary Field,Functional,"Step 1: Set the field as required
Step 2: Leave it empty
Step 3: Verify a clear error message is shown",A clear error message is shown when the required field is left empty,Field is marked as required,,,,
Validate metadata display on information button,Binary Field,Functional,"Step 1: Open the binary field
Step 2: Click the information button
Step 3: Verify the metadata is displayed properly",Metadata is displayed correctly when information button is clicked,Metadata is available for the file,,,,
Show remove option upon file selection,Binary Field,Functional,"Step 1: Select a file in the binary field
Step 2: Verify that the remove option appears",Remove option appears after selecting a file,File is selected,,,,
Show edit button upon file selection,Binary Field,Functional,"Step 1: Select a file in the binary field
Step 2: Verify that the edit button appears",Edit button appears after selecting a file,File is selected,,,,
Edit file using image editor for images,Binary Field,Functional,"Step 1: Select an image file
Step 2: Open the image editor
Step 3: Edit the file and save changes",File is edited and saved using the image editor,An image file is selected,,,,
Edit file using text editor for other file types,Binary Field,Functional,"Step 1: Select a non-image file
Step 2: Open the text editor
Step 3: Edit the file and save changes",File is edited and saved using the text editor,A non-image file is selected,,,,
Edit text file name and code,Binary Field,Functional,"Step 1: Select a text file
Step 2: Edit the file name and code using the text editor",File name and code are successfully edited,A text file is selected,,,,
"Support syntax highlighting, format, and line numbers in code editor",Binary Field,Functional,"Step 1: Select a code file
Step 2: Verify syntax highlighting, formatting, and line numbers are supported","Code editor supports syntax highlighting, formatting, and line numbers",A code file is selected,,,,
Show cancel and save buttons in code editor,Binary Field,Functional,"Step 1: Open the code editor
Step 2: Verify the cancel and save buttons are present",Cancel and save buttons are present and functional in the code editor,Code editor is open,,,,
38 changes: 38 additions & 0 deletions docs/test-cases/Categories.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
Name,Suite,Section,Estimated Time,Type,Steps (Instructions),Steps (Expected Result),Preconditions/Validadtion,,,,,,,,,,,,,,,,,,
Select a Single Category,Categories,Categories,10,Functional,"1. Open the category selector.
2. Select a category (e.g., Deck Stains & Sealers).
3. Click Apply.",The selected category is successfully applied and displayed in the overview.,The user is logged in and has access to the category selection dialog.,,,,,,,,,,,,,,,,,,
Select Multiple Categories from Different Hierarchies,Categories,Categories,10,Functional,"1. Open the category selector.
2. Select categories from different parent groups (e.g., Cleaning Supplies and Deck Stains & Sealers).
3. Click Apply.",All selected categories are applied and displayed in the summary.,The user is logged in and has access to multiple category hierarchies.,,,,,,,,,,,,,,,,,,
Remove a Selected Category,Categories,Categories,10,Functional,"1. Select multiple categories.
2. Remove one category from the overview using the ÒXÓ icon.
3. Click Apply.","The removed category is no longer applied, and the other selections are preserved.",The user has already selected multiple categories.,,,,,,,,,,,,,,,,,,
Search for a Category,Categories,Categories,10,Functional,"1. Type a keyword (e.g., ""Deck"") in the search bar.
2. Select the matching category.
3. Click Apply.",The category related to the search keyword is found and can be applied.,"Categories exist in the system, and the user has access to the search bar.",,,,,,,,,,,,,,,,,,
Navigate Through the Category Tree,Categories,Categories,10,Functional,"1. Open a category.
2. Drill down through different levels of the hierarchy (e.g., Home Improvement > Painting & Supplies).
3. Select a category.",The user is able to navigate through nested categories and make a selection.,The user has access to a multi-level category hierarchy.,,,,,,,,,,,,,,,,,,
Verify Category Summary Panel,Categories,Categories,10,Functional,"1. Select categories.
2. Add and remove categories",The summary panel updates dynamically with each selection or removal.,The user has access to categories and can select/deselect categories.,,,,,,,,,,,,,,,,,,
Clear All Categories,Categories,Categories,10,Functional,"1. Select multiple categories.
2. Click Clear All.
3. Click Apply.","All selected categories are cleared, and no categories are applied.",Multiple categories have already been selected.,,,,,,,,,,,,,,,,,,
Apply Without Selecting a Category,Categories,Categories,10,Functional,"1. Open the category selector.
2. Do not select any categories.
3. Click Apply.","The system should apply no categories, and no errors should occur.","The category selection dialog is open, but no categories have been selected.",,,,,,,,,,,,,,,,,,
Invalid Search Input,Categories,Categories,10,Functional,"1. Enter an invalid search string (e.g., %%%$$$).", The system returns no results but does not display errors or crash.,"The category selection dialog is open, and the user can access the search bar.",,,,,,,,,,,,,,,,,,
Deselect a Category and Apply,Categories,Categories,10,Functional,"1. Select a category.
2. Deselect the category.
3. Click Apply.",The deselected category should not be applied.,The user has previously selected at least one category.,,,,,,,,,,,,,,,,,,
Cancel Button Functionality,Categories,Categories,10,Functional,"1. Select categories.
2. Click Cancel instead of Apply.
3. Reopen the category selection dialog.","The selections are discarded, and no categories are applied.",Categories have been selected but not applied.,,,,,,,,,,,,,,,,,,
Maximum Category Selection,Categories,Categories,10,Functional,"1. Select every available category.
2. Click Apply.","The system should apply all selected categories without performance issues, or handle any maximum selection limit gracefully.","The system allows multiple categories, and no hard limit is defined for selection.",,,,,,,,,,,,,,,,,,
Long Category Names,Categories,Categories,10,Functional,"1. Select categories with long names.
2. Apply the categories.", Long category names are properly displayed without truncation or overlap.,The user has access to the category selector and can select/deselect quickly.,,,,,,,,,,,,,,,,,,
Rapid Selection and Deselection of Categories,Categories,Categories,10,Functional,"1. Rapidly select and deselect various categories.
2. Click Apply.",The system should handle rapid inputs without freezing or crashing.,"The category selection dialog is open, and the user can access the search bar.",,,,,,,,,,,,,,,,,,
Test Search With Special Characters,Categories,Categories,10,Functional,"1. Enter special characters (e.g., @#$%^&*) in the search bar.","The system should not crash, and it should return no results if no categories match the input.",The user has previously selected at least one category.,,,,,,,,,,,,,,,,,,
Loading

0 comments on commit 3e70003

Please sign in to comment.