Skip to content

Conversation

Nandhini4501
Copy link
Contributor

@Nandhini4501 Nandhini4501 commented Apr 21, 2025

Added new documentation for "SOQL as Test Step", "Query Builder for Salesforce Testing", and "Test Salesforce Connection" as per the ticket: https://testsigma.atlassian.net/browse/IDEA-2302

image

Summary by CodeRabbit

  • New Features

    • Added documentation for the Query Builder tool for Salesforce Testing, enabling users to create and execute SOQL queries without coding.
    • Introduced a guide on using SOQL queries as test steps to fetch Salesforce data and verify results within test cases.
    • Added instructions for testing Salesforce connections before authorization using OAuth 2.0 or Username and Password.
    • Added a new section for "NLP 19" to extract and store Salesforce record IDs during testing.
    • Published comprehensive documentation on using the MySQL Addon in NLPs, including setup, query execution, and validation use cases.
  • Documentation

    • Updated navigation order metadata for several Salesforce Testing documentation pages to improve organization.
    • Enhanced the special NLPs documentation with a new entry and navigation link for "NLP 19."

New Document for "Use MySQL Addon in NLPs"
…Salesforce Testing", and "Test Salesforce Connection"

Added new docs for "SOQL as Test Step", "Query Builder for Salesforce Testing", and "Test Salesforce Connection"
@Nandhini4501 Nandhini4501 requested a review from bharathk08 April 21, 2025 10:14
Copy link
Contributor

coderabbitai bot commented Apr 21, 2025

Walkthrough

This update introduces several new documentation pages and makes minor metadata adjustments to existing Salesforce testing documentation. Three new pages are added: one detailing the use of the Query Builder for Salesforce Testing, another on using SOQL queries as test steps, and a third explaining how to test Salesforce connections before authorization. Additionally, a new troubleshooting guide for using the MySQL Addon in NLPs is included. Existing pages receive updates to their order metadata and, in one case, a new NLP (NLP 19) is documented, along with corresponding navigation and contextual link updates.

Changes

File(s) Change Summary
src/pages/docs/salesforce-testing/element-repos.md
src/pages/docs/salesforce-testing/error-handling.md
src/pages/docs/salesforce-testing/metadata-connections.md
src/pages/docs/salesforce-testing/sf-test-cases.md
src/pages/docs/salesforce-testing/table-nlps.md
src/pages/docs/salesforce-testing/user-connections.md
Incremented the order value in the document front matter for navigation or sorting purposes; no content or logic changes.
src/pages/docs/salesforce-testing/special-nlps.md Incremented order metadata, added a new navigation link and documentation section for NLP 19 (extracting record ID from Salesforce details page), and updated the list of special NLPs to include NLP 19.
src/pages/docs/salesforce-testing/query-builder-for-salesforce-testing.md Added a new documentation page describing the Query Builder tool for Salesforce Testing, including prerequisites, step-by-step usage, and example SOQL queries.
src/pages/docs/salesforce-testing/soql-as-test-step.md Added a new documentation page explaining how to use SOQL queries as test steps in Testsigma, with instructions, prerequisites, and usage examples.
src/pages/docs/salesforce-testing/test-salesforce-connection-before-authorization.md Added a new documentation page describing the process to test Salesforce connections before authorization in Testsigma, with step-by-step instructions and contextual navigation.
src/pages/docs/troubleshooting/NLPs/mysql-db-test-cases.md Added a new troubleshooting guide detailing the use of the MySQL Addon in NLPs, including prerequisites, use cases, SQL examples, screenshots, and instructions for integrating MySQL operations into NLP test automation.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant DocsSite

    User->>DocsSite: Access Salesforce Testing Docs
    alt Query Builder
        User->>DocsSite: Open "Query Builder for Salesforce Testing"
        DocsSite-->>User: Show prerequisites, steps, SOQL example, usage
    end
    alt SOQL as Test Step
        User->>DocsSite: Open "SOQL as Test Step"
        DocsSite-->>User: Show prerequisites, step-by-step guide, result handling
    end
    alt Test Salesforce Connection
        User->>DocsSite: Open "Test Salesforce Connection Before Authorization"
        DocsSite-->>User: Show connection testing steps and troubleshooting
    end
    alt MySQL Addon in NLPs
        User->>DocsSite: Open "Use MySQL Addon in NLPs"
        DocsSite-->>User: Show prerequisites, use cases, SQL examples
    end
    alt NLP 19
        User->>DocsSite: Open "Special NLPs"
        DocsSite-->>User: Show NLP 19 documentation and navigation
    end
Loading

Possibly related PRs

  • #568: Adds instructions about refreshing metadata and links the Refresh Metadata API with the metadata connections documentation, related due to changes in the same file.
  • #622: Adds a section and contextual link about adding multiple metadata connections in the same document, related to changes in the metadata-connections.md file.

Suggested reviewers

  • Santhosh-testsigma
  • divesmehta11

Poem

🐇
New docs have hopped into view,
With guides for SOQL and MySQL too!
Metadata orders now align,
And NLP 19 joins the line.
Test your connections, build a query,
Troubleshooting’s never dreary—
With every page, the docs grow bright,
Helping testers get it right!

Tip

⚡💬 Agentic Chat (Pro Plan, General Availability)
  • We're introducing multi-step agentic chat in review comments and issue comments, within and outside of PR's. This feature enhances review and issue discussions with the CodeRabbit agentic chat by enabling advanced interactions, including the ability to create pull requests directly from comments and add commits to existing pull requests.

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@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: 10

🔭 Outside diff range comments (1)
src/pages/docs/salesforce-testing/query-builder-for-salesforce-testing.md (1)

61-61: ⚠️ Potential issue

Remove stray code fence
There's an unpaired triple backtick (\```) at line 61 that opens an empty code block. Delete it to avoid markdown rendering issues.

- ```
🧹 Nitpick comments (4)
src/pages/docs/troubleshooting/NLPs/mysql-db-test-cases.md (2)

30-33: Improve image alt text for accessibility
Replace the generic ![Addon] alt text with a more descriptive phrase, e.g.:

- ![Addon](.../mysql.png)
+ ![MySQL Addon icon and name in Testsigma UI](.../mysql.png)

8-16: Verify contextual_links match actual headings
After normalizing headings, ensure the contextual_links.url targets (e.g., #prerequisite, #use-cases) correspond exactly to the updated headings.

src/pages/docs/salesforce-testing/query-builder-for-salesforce-testing.md (2)

20-20: Remove extraneous horizontal separators
Unintended --- lines at 20, 24, and 30 render as unwanted horizontal rules. They should be removed to keep the flow of content.

@@ line 20
- ---
@@ line 24
- ---
@@ line 30
- ---

Also applies to: 24-24, 30-30


26-26: Simplify headings by removing bold formatting
Section headings are wrapped in **...**, which is inconsistent with other docs. Use plain markdown headings for clarity and consistency.

- ## **Prerequisites**
+ ## Prerequisites
...
- ## **Steps to Use the SOQL Query Builder Tool**
+ ## Steps to Use the SOQL Query Builder Tool

Also applies to: 32-32

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4b47dfb and 62d0330.

📒 Files selected for processing (11)
  • src/pages/docs/salesforce-testing/element-repos.md (1 hunks)
  • src/pages/docs/salesforce-testing/error-handling.md (1 hunks)
  • src/pages/docs/salesforce-testing/metadata-connections.md (1 hunks)
  • src/pages/docs/salesforce-testing/query-builder-for-salesforce-testing.md (1 hunks)
  • src/pages/docs/salesforce-testing/sf-test-cases.md (1 hunks)
  • src/pages/docs/salesforce-testing/soql-as-test-step.md (1 hunks)
  • src/pages/docs/salesforce-testing/special-nlps.md (4 hunks)
  • src/pages/docs/salesforce-testing/table-nlps.md (1 hunks)
  • src/pages/docs/salesforce-testing/test-salesforce-connection-before-authorization.md (1 hunks)
  • src/pages/docs/salesforce-testing/user-connections.md (1 hunks)
  • src/pages/docs/troubleshooting/NLPs/mysql-db-test-cases.md (1 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
src/pages/docs/salesforce-testing/soql-as-test-step.md

44-44: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)

src/pages/docs/troubleshooting/NLPs/mysql-db-test-cases.md

40-40: Emphasis used instead of a heading
null

(MD036, no-emphasis-as-heading)


46-46: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


54-54: Emphasis used instead of a heading
null

(MD036, no-emphasis-as-heading)


62-62: Emphasis used instead of a heading
null

(MD036, no-emphasis-as-heading)


70-70: Emphasis used instead of a heading
null

(MD036, no-emphasis-as-heading)


82-82: Emphasis used instead of a heading
null

(MD036, no-emphasis-as-heading)


84-84: Emphasis used instead of a heading
null

(MD036, no-emphasis-as-heading)


86-86: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


107-107: Emphasis used instead of a heading
null

(MD036, no-emphasis-as-heading)


117-117: Emphasis used instead of a heading
null

(MD036, no-emphasis-as-heading)


127-127: Emphasis used instead of a heading
null

(MD036, no-emphasis-as-heading)


135-135: Emphasis used instead of a heading
null

(MD036, no-emphasis-as-heading)


145-145: Emphasis used instead of a heading
null

(MD036, no-emphasis-as-heading)


147-147: Emphasis used instead of a heading
null

(MD036, no-emphasis-as-heading)


149-149: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


161-161: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)

src/pages/docs/salesforce-testing/special-nlps.md

380-380: Multiple headings with the same content
null

(MD024, no-duplicate-heading)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: CI
🔇 Additional comments (10)
src/pages/docs/salesforce-testing/table-nlps.md (1)

6-6: Increment order metadata to 28.93
The frontmatter order value has been updated from 28.91 to 28.93 to maintain sequential navigation after newly added pages.

src/pages/docs/salesforce-testing/user-connections.md (1)

6-6: Increment order metadata to 28.6
The order value is incremented from 28.5 to 28.6 to keep the page ordering in line with adjacent Salesforce Testing docs.

src/pages/docs/salesforce-testing/metadata-connections.md (1)

6-6: Increment order metadata to 28.5
Adjusted from 28.4 to 28.5 for consistent sequencing with other Salesforce Testing documentation.

src/pages/docs/salesforce-testing/element-repos.md (1)

6-6: Increment order metadata to 28.8
Updated from 28.7 to 28.8 to align the document within the overall Salesforce Testing docs order.

src/pages/docs/salesforce-testing/sf-test-cases.md (1)

6-6: Increment order metadata to 28.7
The order value has been updated from 28.6 to 28.7 to maintain proper navigation sequence.

src/pages/docs/salesforce-testing/error-handling.md (1)

6-6: Order metadata update
The order: 28.94 adjustment aligns this page within the updated Salesforce testing navigation sequence. No content changes detected.

src/pages/docs/salesforce-testing/soql-as-test-step.md (1)

6-6: Set page order for new SOQL guide
The order: 28.91 places this new SOQL step documentation appropriately between related pages.

src/pages/docs/salesforce-testing/special-nlps.md (3)

6-6: Order metadata update
The order: 28.9 bump maintains the sequence of special NLPs in the Salesforce testing docs.


75-77: New NLP 19 contextual link
A link for NLP 19 (#nlp-19) was added. Ensure the target heading exists and matches exactly.

Please verify that the added section’s heading uses the same anchor nlp-19.


116-118: Table entry for NLP 19
The new table row correctly documents NLP 19 with inputs and link. No issues found.

Comment on lines +26 to +28
## **Prerequisite**

To begin, set up a MySQL database and configure the necessary tables to store and manage your data effectively. Ensure that the database is accessible from Testsigma, enabling smooth integration and execution of queries within your test automation workflow.
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Use proper markdown headings instead of emphasized text
Emphasized headings like ## **Prerequisite** and ## **Use Cases** can break anchor links and lint rules (MD036). Convert to plain headings, e.g.:

## Prerequisite
## Use Cases

Comment on lines +46 to +49
```
CREATE PROCEDURE GetCustomerDetails(IN cust_id INT) BEGIN SELECT name, email, phone FROM customers WHERE id = cust_id; END;
```

Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Add language identifier to SQL code fences
Fenced code blocks should specify a language for highlighting and linting (MD040). For example:

- ```
+ ```sql
CREATE PROCEDURE GetCustomerDetails(IN cust_id INT) BEGIN SELECT name, ...
Apply the same for all other SQL snippets in this file.

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 markdownlint-cli2 (0.17.2)</summary>

46-46: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)

</details>

</details>

<!-- This is an auto-generated comment by CodeRabbit -->

Comment on lines +1 to +25
---
title: "Use MySQL Addon in NLPs"
metadesc: "Users can execute MySQL queries within NLPs using the MySQL Addon in Testsigma, enabling seamless integration and efficient database operations."
noindex: false
order: 23.19
page_id: "Use MySQL Addon in NLPs"
warning: false
contextual_links:
- type: section
name: "Contents"
- type: link
name: "Prerequisite"
url: "#prerequisite"
- type: link
name: "Use Cases"
url: "#use-cases"

---

---

Testsigma enables efficient execution of MySQL queries in NLPs using the MySQL Addon. It supports various query types (SELECT, INSERT, UPDATE, DELETE) while maintaining data integrity through a structured approach.

---

Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Consolidate frontmatter and remove extraneous separators
The document currently has multiple YAML delimiters (---) at lines 1, 19–20, and 24, which can break frontmatter parsing. Keep a single --- block at the top (lines 1–17) and remove the extra separators before the main content.

--- a/src/pages/docs/troubleshooting/NLPs/mysql-db-test-cases.md
@@
@@

Committable suggestion skipped: line range outside the PR's diff.

Comment on lines +26 to +28
## **Prerequisites**

Before you begin, ensure the Salesforce app is connected to Testsigma with a valid metadata connection.
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Normalize headings by removing emphasis
Headings like ## **Prerequisites** and ## **Steps to Create SOQL as a Test Step** should be plain markdown (e.g., ## Prerequisites) to generate clean anchors and satisfy MD036.

Comment on lines +44 to +50
```
SELECT Id, Name, Phone, Industry, BillingCity, BillingState
FROM Account
WHERE Industry = 'Technology' AND BillingState = 'CA'
ORDER BY Name
LIMIT 50
```
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Add language marker to SOQL snippet
The code fence around the SOQL example lacks a language tag. Specify sql for correct syntax highlighting:

- ```
+ ```sql
SELECT Id, Name, Phone, Industry, BillingCity, BillingState
...

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 markdownlint-cli2 (0.17.2)</summary>

44-44: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)

</details>

</details>

<!-- This is an auto-generated comment by CodeRabbit -->

Comment on lines +380 to +386
## **NLP 18:**

"Store the **recordID** from details page into **variable** [variable-name]"

Use this NLP to extract the current record ID and stores it in your specified runtime variable name.

See the GIF below demonstrating how to use this NLP.
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix heading label for the new section
The final section is mis‐labeled as ## **NLP 18:**—it should be ## **NLP 19:** to align with the table and link.

--- a/src/pages/docs/salesforce-testing/special-nlps.md
@@ 380, +380
- ## **NLP 18:**
+ ## **NLP 19:**
📝 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
## **NLP 18:**
"Store the **recordID** from details page into **variable** [variable-name]"
Use this NLP to extract the current record ID and stores it in your specified runtime variable name.
See the GIF below demonstrating how to use this NLP.
## **NLP 19:**
"Store the **recordID** from details page into **variable** [variable-name]"
Use this NLP to extract the current record ID and stores it in your specified runtime variable name.
See the GIF below demonstrating how to use this NLP.
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

380-380: Multiple headings with the same content
null

(MD024, no-duplicate-heading)

Comment on lines +26 to +28
## **Steps to Test the Salesforce Connection**

1. From the left navigation bar, click on **SF Connections**.
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Use plain headings for anchor consistency
Change ## **Steps to Test the Salesforce Connection** to ## Steps to Test the Salesforce Connection so that the contextual link #steps-to-test-the-salesforce-connection works as expected.

Comment on lines +1 to +20
---
title: "Test Salesforce Connection Before Authorization"
page_title: "Test Salesforce Connection Before Authorization"
metadesc: "Test Salesforce connection before authorization in Testsigma"
noindex: false
order: 28.4
page_id: "Test Salesforce Connection Before Authorization"
warning: false
contextual_links:
- type: section
name: "Contents"
- type: link
name: "Steps to Test the Salesforce Connection"
url: "#steps-to-test-the-salesforce-connection"
- type: link
name: "Troubleshoot"
url: "#troubleshoot"
---

---
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Consolidate frontmatter and remove extra delimiters
The file shows multiple --- at lines 1, 19, and 20. Retain a single YAML frontmatter block (lines 1–18) and remove the extra --- before the body.

Comment on lines +2 to +3
title: "Query Builder for Salesforce Testsing"
page_title: "Query Builder for Salesforce Testsing"
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix typo in title, page_title, and page_id
The metadata fields misspell "Testing" as "Testsing", causing rendering and search inconsistencies.

- title: "Query Builder for Salesforce Testsing"
+ title: "Query Builder for Salesforce Testing"
- page_title: "Query Builder for Salesforce Testsing"
+ page_title: "Query Builder for Salesforce Testing"
- page_id: "Query Builder for Salesforce Testsing"
+ page_id: "Query Builder for Salesforce Testing"

Also applies to: 7-7

Comment on lines +15 to +18
- type: link
name: "Steps to use SOQL Query Builder Tool"
url: "#steps-to-use-soql-query-builder-tool"
---
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Align contextual link name and URL with the actual heading
The contextual_links entry omits "the" in the URL anchor and uses inconsistent capitalization in the name, which will break the in-page navigation.

-  - type: link
-    name: "Steps to use SOQL Query Builder Tool"
-    url: "#steps-to-use-soql-query-builder-tool"
+  - type: link
+    name: "Steps to Use the SOQL Query Builder Tool"
+    url: "#steps-to-use-the-soql-query-builder-tool"
📝 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
- type: link
name: "Steps to use SOQL Query Builder Tool"
url: "#steps-to-use-soql-query-builder-tool"
---
- type: link
name: "Steps to Use the SOQL Query Builder Tool"
url: "#steps-to-use-the-soql-query-builder-tool"
---

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.

1 participant