Hero Background

Power Your Software Testing with AI Agents and Cloud

The Native AI-Agentic Cloud Platform to Supercharge Quality Engineering. Test Intelligently and Ship Faster.

Kane CLIAutomation

Test two workflow rules firing on one record

A record that matches both rules should trigger both, and the log should say which did what.

Published on:

Workflow rules run invisibly on save. When one fails to fire, the record still saves and looks normal, and the consequence is a lead nobody routes or a deal nobody flags.

This use case saves a record on the Zohoe CRM clone that deliberately matches two rules at once.

The checks that matter

Matching two rules with one record is the point. Rules that work individually can interfere when both apply to the same save.

  • Both rules are active - asserted upfront with their conditions and their effects.
  • The record matches both - a web source over the fifty thousand threshold.
  • Both fired - a confirmation naming two rules rather than reporting a generic success.
  • Both effects landed - a rating of Hot and an owner of Priya Nair on the saved record.

The record log is asserted too, naming which rule set the rating. Without it, a field that happened to default to Hot would be indistinguishable from a rule that fired, and that distinction is the whole test.

Note

Note: Asserting an audit log alongside the field it changed is what separates an automation that ran from a value that happened to be right. Start on TestMu AI. Start for free

The flow as a test file

The rules are asserted with their conditions before the record is created, so the test documents the expected behaviour rather than assuming the reader knows it.

---
mode: testing
url: https://my-testing-repo-main.vercel.app/zoho-clone-app/workflows?reset=true
max_steps: 45
tags: [zoho-crm, crm, automation]
---

# Zohoe CRM 32.2: Workflow rule trigger

Catalog objective: create a record that triggers a field update workflow.
Key assertion: the field is auto-updated according to the rule.

## Verify the rules are active
Verify the "Active rules" card lists "Flag high value leads" (when Deal Amount is 50,000 or more, set Rating to "Hot") and "Route web leads" (when Lead Source is Web, set owner to "Priya Nair").

## Create a record that matches both rules
Leave "First name" as "Dana", "Last name" as "Ellery", "Company" as "Summit Royals", "Lead source" as "Web" and "Deal amount" as "62000".

## Save it
Click "Save the lead" and verify a green banner reads "2 rules fired: Flag high value leads, Route web leads."

## Verify the fields were auto-updated
Verify the saved record shows "Lead id" of "L2", "Deal Amount" of "$62,000.00", "Rating" of "Hot" and "Owner" of "Priya Nair", and the record log contains "Workflow "Flag high value leads" set rating to Hot".

The deal amount is chosen just above the threshold, which is the value most likely to expose an off-by-one in a greater-than-or-equal comparison.

Step by step coverage

The rules, a matching record, the save and the effects.

StepWhat it proves
Verify the rules are activeBoth rules exist with their conditions and effects
Create a record that matches both rulesThe record qualifies under both conditions
Save itThe save reports both rules firing by name
Verify the fields were auto-updatedRating, owner and the log entry naming the rule

A confirmation that says two rules fired, combined with two changed fields, is stronger evidence than either on its own.

Next-generation test execution with TestMu AI

Adding it to a suite

kane-cli testmd run tests/zoho-crm/workflow-rule_test.md

Add a record just below the threshold, since the rule should not fire and a rule that always fires is as broken as one that never does.

Automation built by admins benefits from tests an admin can read. Deriving a suite from written rules covers that, and running flows in CI covers catching a rule that stops firing.

Author

...

Bhawana

Blogs: 75

  • Twitter
  • Linkedin

Bhawana is a Community Evangelist at TestMu AI with over 3 years of experience creating technically accurate, strategy-driven content in software testing. She has authored 50+ blogs on test automation, cross-browser testing, mobile testing, and real device testing. She also serves as Product Marketing Manager for Kane CLI, the command-line tool that runs browser automation from the terminal using natural-language flows in a real Chrome browser. Bhawana is certified in KaneAI, Selenium, Appium, Playwright, and Cypress, reflecting her hands-on knowledge of modern automation practices. On LinkedIn, she is followed by 6000+ QA engineers, testers, AI automation testers, and tech leaders.

Add to Google preferred sources

Summarise with AI

Copied to Clipboard!
...

3000+ Browsers. One Platform.

See exactly how your site performs everywhere.

Try it free
...

Write Tests in Plain English with KaneAI

Create, debug, and evolve tests using natural language.

Try for free

Workflow Rule FAQs

Did you find this page helpful?

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests