Skip to content

Add documentation for testing Automation with arguments#132

Open
senurah wants to merge 9 commits intowso2:mainfrom
senurah:main
Open

Add documentation for testing Automation with arguments#132
senurah wants to merge 9 commits intowso2:mainfrom
senurah:main

Conversation

@senurah
Copy link

@senurah senurah commented Oct 15, 2025

Purpose

Resolves Add documentation for executing manual task #131

Goals

Describe the solutions that this feature/fix will introduce to resolve the problems described above

Approach

Describe how you are implementing the solutions. Include an animated GIF or screenshot if the change affects the UI (email documentation@wso2.com to review all UI text). Include a link to a Markdown file or Google doc if the feature write-up is too long to paste here.

User stories

Summary of user stories addressed by this change>

Release note

Brief description of the new feature or bug fix as it will appear in the release notes

Documentation

Link(s) to product documentation that addresses the changes of this PR. If no doc impact, enter “N/A” plus brief explanation of why there’s no doc impact

Training

Link to the PR for changes to the training content in https://github.com/wso2/WSO2-Training, if applicable

Certification

Type “Sent” when you have provided new/updated certification questions, plus four answers for each question (correct answer highlighted in bold), based on this change. Certification questions/answers should be sent to certification@wso2.com and NOT pasted in this PR. If there is no impact on certification exams, type “N/A” and explain why.

Marketing

Link to drafts of marketing content that will describe and promote this feature, including product page changes, technical articles, blog posts, videos, etc., if applicable

Automation tests

  • Unit tests

    Code coverage information

  • Integration tests

    Details about the test cases and coverage

Security checks

Samples

Provide high-level details about the samples related to this feature

Related PRs

List any other related PRs

Migrations (if applicable)

Describe migration steps and platforms on which migration has been tested

Test environment

List all JDK versions, operating systems, databases, and browser/versions on which this feature/fix was tested

Learning

Describe the research phase and any blog posts, patterns, libraries, or add-ons you used to solve the problem.

Summary by CodeRabbit

  • Documentation
    • Renamed Step 5 to "Optional: Test the automation manually" and added a prerequisite note.
    • Added a manual testing workflow from the Overview page with "Test with Arguments" and "Execute" actions.
    • New section on injecting runtime arguments and a "Run with Arguments" option for production runs.
    • Added build presets, clarified build status wording to "Completed", and expanded production metrics (99th percentile latency, total executions).

@CLAassistant
Copy link

CLAassistant commented Oct 15, 2025

CLA assistant check
All committers have signed the CLA.

@pcnfernando pcnfernando requested a review from Copilot October 15, 2025 12:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds documentation to guide users on manually testing automations and passing runtime arguments, including samples for WSO2 MI and Ballerina.

  • Introduces a new "Optional: Test the Automation manually" section
  • Documents "Run with Arguments" usage and provides sample links for WSO2 MI and Ballerina
  • Adds an informational note about future user portal feature accessibility

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@coderabbitai
Copy link

coderabbitai bot commented Feb 20, 2026

Walkthrough

Updated the quick-start guide to add a manual testing workflow from the Overview page (including Test with Arguments and Execute), introduce runtime command-line argument injection, clarify scheduling vs. testing flow, add WSO2 MI/BI build presets, change build status wording to "Completed", add a Run/Run with Arguments production step, and expand metrics with 99th Percentile Latency and Total Executions.

Changes

Cohort / File(s) Summary
Quick-Start Documentation
en/docs/quick-start-guides/schedule-your-first-automation.md
Replaced Step 5 heading with "Optional: Test the automation manually" and added a prerequisite note. Added manual testing workflow accessible from the Overview page (Test with Arguments, Execute). Added "Inject Dynamic Values into Your Application as Command-Line Arguments" section. Added WSO2 MI and WSO2 BI build presets and notes. Changed build status label to "Completed". Updated production promotion flow to include "Run" and "Run with Arguments". Expanded production metrics to include 99th Percentile Latency and Total Executions. Adjusted sequencing and references accordingly.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 I hopped through pages, tidy and bright,
Added tests and args to run through the night,
Presets and metrics, now all in sight,
Build says "Completed" — hop to flight! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is largely incomplete with only the Purpose section filled in; most required sections including Goals, Approach, User stories, Release note, and others remain as unfilled template placeholders. Complete all required sections of the PR description template, particularly Goals, Approach, User stories, Release note, Documentation, Training, Certification, and test/security/sample/environment details.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Add documentation for testing Automation with arguments' clearly and concisely describes the main change: documentation additions for testing automation with arguments.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
en/docs/quick-start-guides/schedule-your-first-automation.md (1)

91-94: ⚠️ Potential issue | 🟡 Minor

Build status label inconsistency: "Success" vs "Build completed"

The new note at line 92 states the build status changes to "Success", but line 94 instructs the user to wait until the status shows `Build completed`. Only one of these can match the actual UI label; they should be consistent.

✏️ Proposed fix (align note to match the existing instruction at line 94)
     !!! note
-        The build process may take some time. Once complete, the build status changes to **Success**. You can see the Build History by clicking **Build** in the left navigation.
+        The build process may take some time. Once complete, the build status changes to `Build completed`. You can see the Build History by clicking **Build** in the left navigation.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@en/docs/quick-start-guides/schedule-your-first-automation.md` around lines 91
- 94, Update the inconsistent build status labels in the note: choose the UI
label used later ("Build completed") and replace the "Success" text inside the
note block so both lines reference the same label; specifically update the note
containing "**Success**" to use "`Build completed`" (or vice versa if the UI
uses "Success") so the strings "Success" and "Build completed" are aligned and
consistent with the instruction that checks for the Build Status.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@en/docs/quick-start-guides/schedule-your-first-automation.md`:
- Around line 59-61: The text uses two different names for the same UI element
("environment card" and "**Development** card"); pick one consistent name
(preferably "**Development** card" to match the later usage) and replace the
other occurrence so both references match; update the phrase "the environment
card" to "the **Development** card" in the sentence that currently reads "You
can execute your automation directly from the environment card on the
**Overview** page:" and verify no other occurrences in this document use the old
term.
- Around line 110-111: Replace the incorrect MkDocs admonition marker "!!!info"
with the correct "!!! info" (i.e., add a space after the three exclamation
marks) so the admonition block renders as a styled callout; search for the
literal token "!!!info" in the content around the "Run with Arguments" paragraph
and update it to "!!! info".
- Around line 57-63: The "Optional: Test the Automation manually" section
appears before Step 5's build-completion requirement and will lead users to
click the **Test** button prematurely; update the content for the "Optional:
Test the Automation manually" block (the heading and the bullet instructing to
click **Test** on the Development card / Overview page) to either relocate this
entire section after Step 5 or add a prerequisite sentence stating "Ensure Build
Status: Build completed before testing" (referencing Step 5's requirement) so
users know they must wait for the build to finish before clicking **Test**.
- Around line 71-83: Replace the incorrect product name and inconsistent "manual
task" terminology in the "WSO2 MI" and "WSO2 BI" sections: change the phrase
"deploying a WSO2 MI integration as a manual task in Choreo" to reference Devant
(e.g., "deploying a WSO2 MI integration as an automation in Devant") and update
all occurrences of "manual task" / "manual task with arguments" / "manual task"
to use "automation" or "automation with arguments" as appropriate (target the
"WSO2 MI" and "WSO2 BI" headings and the sample descriptions such as "Weather to
Logs Task" and "Weather to Email Task" text), while keeping links and the
informational notes intact and ensuring any references to "Test with Arguments"
or Ballerina docs remain accurate.

---

Outside diff comments:
In `@en/docs/quick-start-guides/schedule-your-first-automation.md`:
- Around line 91-94: Update the inconsistent build status labels in the note:
choose the UI label used later ("Build completed") and replace the "Success"
text inside the note block so both lines reference the same label; specifically
update the note containing "**Success**" to use "`Build completed`" (or vice
versa if the UI uses "Success") so the strings "Success" and "Build completed"
are aligned and consistent with the instruction that checks for the Build
Status.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@en/docs/quick-start-guides/schedule-your-first-automation.md`:
- Around line 88-89: The `!!! note` block is indented under the ordered list and
renders as part of item "2. Click Test to run…"; remove the 4-space indentation
and move the `!!! note` block so it starts at column 0 (no leading spaces)
directly after the list to make it a top-level callout for the whole section;
target the literal `!!! note` block and the surrounding list in the snippet and
ensure there are a blank line above the outdented note so Markdown treats it as
a separate block.

---

Duplicate comments:
In `@en/docs/quick-start-guides/schedule-your-first-automation.md`:
- Around line 75-84: Replace the remaining occurrences of the phrase "manual
task" in the shown content with "automation": change "run a manual task with
arguments" → "run an automation with arguments", "WSO2 MI-based manual task with
arguments" → "WSO2 MI-based automation with arguments", "as a manual task in
Devant" → "as an automation in Devant", and "Ballerina manual task with
arguments" → "Ballerina automation with arguments" so the terminology
consistently matches the guide title and prior changes.

Comment on lines +88 to +89
!!! note
As user portal features are added, testing and other actions will be accessible directly from the **Overview** page, making it easier to manage and validate your automations.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

!!! note renders nested inside list item 2, not as a standalone section note

In MkDocs/Python-Markdown, any block indented by 4 spaces following a list item is treated as a continuation of that item. The !!! note at 4-space indent will therefore render indented under "2. Click Test to run…" rather than as a top-level callout for the whole section. Since the note is a general forward-looking statement about the portal (not specific to step 2), it should sit outside the list at 0-space indent.

✏️ Proposed fix
-    !!! note
-        As user portal features are added, testing and other actions will be accessible directly from the **Overview** page, making it easier to manage and validate your automations.
+!!! note
+    As user portal features are added, testing and other actions will be accessible directly from the **Overview** page, making it easier to manage and validate your automations.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
!!! note
As user portal features are added, testing and other actions will be accessible directly from the **Overview** page, making it easier to manage and validate your automations.
!!! note
As user portal features are added, testing and other actions will be accessible directly from the **Overview** page, making it easier to manage and validate your automations.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@en/docs/quick-start-guides/schedule-your-first-automation.md` around lines 88
- 89, The `!!! note` block is indented under the ordered list and renders as
part of item "2. Click Test to run…"; remove the 4-space indentation and move
the `!!! note` block so it starts at column 0 (no leading spaces) directly after
the list to make it a top-level callout for the whole section; target the
literal `!!! note` block and the surrounding list in the snippet and ensure
there are a blank line above the outdented note so Markdown treats it as a
separate block.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@en/docs/quick-start-guides/schedule-your-first-automation.md`:
- Around line 59-60: The admonition body under the '!!! note "Prerequisite"'
block is over-indented (9 spaces) which causes it to render as a code block;
locate the admonition in the file and reduce the leading indentation of the body
line "Ensure the build has completed successfully..." to exactly 4 spaces (or
remove all leading spaces so it is flush with the admonition), ensuring
MkDocs/Python‑Markdown will treat it as normal prose rather than an indented
code block.

---

Duplicate comments:
In `@en/docs/quick-start-guides/schedule-your-first-automation.md`:
- Around line 74-83: Replace the residual "manual task" wording in the
Automation guide block: change "run a manual task with arguments" to "run an
automation with arguments", change "a WSO2 MI-based manual task with arguments"
to "a WSO2 MI-based automation with arguments", change "as a manual task in
Devant" to "as an automation in Devant", and change "a Ballerina manual task
with arguments" to "a Ballerina automation with arguments"; these edits occur
inside the quoted block under the "WSO2 MI" and "WSO2 BI" headings so update
those exact strings accordingly to remove the leftover "manual task"
terminology.
- Around line 87-88: The block starting with the literal "!!! note" is indented
4 spaces and therefore treated as a continuation of the preceding ordered list
item ("2. Click **Test** to run your automation immediately."); remove the
4-space indent so the "!!! note" callout starts at column 0 and insert one blank
line between the end of the list item and the "!!! note" line so the note
renders as a standalone MkDocs callout rather than a list continuation.

Comment on lines +59 to +60
!!! note "Prerequisite"
Ensure the build has completed successfully (Build Status: `Completed`) before testing. You can view the Build History by clicking **Build** in the left navigation.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Over-indented admonition body will render as a code block

The content of the !!! note "Prerequisite" admonition (line 60) has 9 leading spaces instead of 4. MkDocs/Python-Markdown strips exactly 4 spaces from admonition body lines; the remaining 5 spaces trigger indented code-block formatting, causing the prerequisite text to render as monospaced <pre> content rather than prose.

✏️ Proposed fix
 !!! note "Prerequisite"
-         Ensure the build has completed successfully (Build Status: `Completed`) before testing. You can view the Build History by clicking **Build** in the left navigation.
+    Ensure the build has completed successfully (Build Status: `Completed`) before testing. You can view the Build History by clicking **Build** in the left navigation.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
!!! note "Prerequisite"
Ensure the build has completed successfully (Build Status: `Completed`) before testing. You can view the Build History by clicking **Build** in the left navigation.
!!! note "Prerequisite"
Ensure the build has completed successfully (Build Status: `Completed`) before testing. You can view the Build History by clicking **Build** in the left navigation.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@en/docs/quick-start-guides/schedule-your-first-automation.md` around lines 59
- 60, The admonition body under the '!!! note "Prerequisite"' block is
over-indented (9 spaces) which causes it to render as a code block; locate the
admonition in the file and reduce the leading indentation of the body line
"Ensure the build has completed successfully..." to exactly 4 spaces (or remove
all leading spaces so it is flush with the admonition), ensuring
MkDocs/Python‑Markdown will treat it as normal prose rather than an indented
code block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants