The XAF team has been using EasyTest for functional testing from 2005 - when XAF was created. Thousands of functional tests are run daily as part of our continuous integration (CI) system. Our product is huge and functional tests with EasyTest help us maintain and improve quality for both design and runtime environments for Windows and the Web (we use TestCafe and Selenium for UI tests).
We believe that any professional team of developers creating complex XAF apps should put EasyTest or any other functional testing framework at the core of their CI systems. To get started, see Functional Testing.
PROBLEM
Every day we create new or edit existing test scripts for new features or bug fixes. Our typical flow with test scripts includes running the TestExecutor tool from the command line. Example: TestExecutor.v19.1.exe D:\MySolution.Tests\ContactTest.ets -d:9. We wanted basic syntax highlighting and a lightweight editor, because test files are opened very often. Visual Studio apparently was too heavy for this task. Our solution was to develop extensions for two popular and lightweight editors used in our team: VS Code and Notepad++.
We want to share these tools with other XAF teams. If there is interest from the XAF community, we can maintain and improve these tools further at https://github.com/DevExpress.
FEATURES
Our extensions for Notepad++ and VSCode provide the following basic functionality:
1. Syntax highlighting for main EasyTest language elements.
Notepad++
VS Code
2. Collapse/expand commands for the #IfDef directive and command parameters (VS Code only).
Notepad++
VS Code
3. Comments support.
Notepad++
VS Code
4. Code snippets for the #IfDef/#Endif directives (VS Code only).
SETUP
Notepad++
- Open Notepad++. In the menu bar, select Language and then Define your language.
- Press Import and select the DevExpress.XAF.EasyTest_NPP-1.0.0.xml file (downloaded earlier).
- Restart Notepad++. Languages menu will show the EasyTest at the bottom after restart.
VS Code
- Open VS Code and press Ctrl+Shift+P to show Command Palette.
- Type Install from VSIX and select it.
- Select the DevExpress.XAF.EasyTest_VSCode-1.0.0.vsix file (downloaded earlier) and click Install. For more information, see the official documentation: Install from a VSIX.
Learn More About Functional & Unit Testing in XAF
Functional Testing | EasyTest Basics | Script Reference
How to write lightweight unit tests for XAF Actions, Controllers and other custom UI logic
EasyTest - How to integrate XAF functional testing with Continuous Integration systems like Azure DevOps
How to use EasyTest and Selenium WebDriver to create functional tests for XAF's Blazor UI with C#, VB.NET or a human-readable scripting language
T is for Testing: XAF & XPO by Manuel Grundner (DevExpress MVP)
Search keywords
tests, functional testing, EasyTest, Script Recorder, usability, team developers, continuous integration, CI, high quality, catch errors
Very cool - thx for sharing Guys!
I love this Man - I do not even need to press Send in my Outlook to ask for early testing:-)
BTW: Would be interesting if you also can share some behind the scene details (via Blog) - about how you use/setup/work with Easytest. how is it integrated to your CI…
lol ;)
Thank you for your idea, Noxe - we will consider it for the future.
I'm just writing test cases and this is awesome, thanks guys!
@Bernd: Cool!
Very welcome addition. This should be in VS Code's marketplace.