Skip to content

Automate Business Central page testing with YAML scripts. Generate test variants, execute with bc-replay, and support MFA authentication for SaaS based testing environments

License

Notifications You must be signed in to change notification settings

andywingate/D365BC-vibe-page-scripting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Business Central Page Scripting Project

Automate Business Central page testing using YAML-based scripts executed via Playwright. Record once, generate variants, test multiple combinations.

✨ Key Features

  • 🔄 Variant generation - Automatically create test combinations from data files
  • 🔐 MFA TOTP Support for bc-replay - Use bc-replay on SaaS BC with accounts that require multi-factor authentication
  • 🤖 AI-assisted development - A methodology for AI script generation

🚀 Quick Start

  1. Generation - See page-scripting/PAGE_SCRIPTING_QUICK_START.md for recording scripts in BC
  2. Execution - See bc-replay/BC_REPLAY_QUICK_START.md for running scripts in pipelines
  3. MFA Support - If using MFA accounts, see bc-replay/bc-replay-mfa-solution/
  4. Examples - Study page-scripting/PO Post DirectionsEMEA/ for working patterns
  5. Full Guide - Complete walkthrough in GETTING_STARTED.md

Project Structure

page-scripting/ - Script generation and variant automation

  • PowerShell generators for creating test variants
  • Project folders with BASE recordings and data files
  • PAGE_SCRIPTING_QUICK_START.md - Recording guide

bc-replay/ - Test execution including using accounts with MFA enforced

🔐 MFA TOTP Support for bc-replay

MFA solution available for testing with BC accounts that require MFA:

  • Automatic TOTP code generation during login
  • Seamless integration with bc-replay

See bc-replay/bc-replay-mfa-solution/ for complete setup

🔒 Security

Before using:

  • Replace placeholder credentials in test scripts
  • Update BC URLs with your tenant/environment
  • Never commit actual passwords to the repository

📖 See SECURITY.md for complete security guidelines and TOTP account setup

Documentation

Guide Purpose
GETTING_STARTED.md Complete walkthrough and project overview
SECURITY.md Security guidelines and TOTP account setup
page-scripting/ Recording scripts and variant generation
bc-replay/ Execution and MFA support
.github/copilot-instructions.md AI agent instructions and YAML patterns

🔗 Resources


⚠️ Disclaimer: This project is created for demonstration and research purposes only. Use at your own risk.

About

Automate Business Central page testing with YAML scripts. Generate test variants, execute with bc-replay, and support MFA authentication for SaaS based testing environments

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages