Is automated testing of VBA UserForms possible?

MLDeS

New Member
Joined
May 30, 2008
Messages
7
I have a fairly large Excel add-in that revolves around a GUI composed of a few UserForms, with standard VBA controls (listboxes, text boxes, radio buttons, command buttons etc.). It's a large enough project that testing it by hand is becoming unmanageable, so I am looking to automate parts of the testing process.

The main problem is that most of the automated testing tools I have looked into (Rational Robot, AutomatedQA TestComplete, etc) don't support the VBA controls so their tests are effectively just replaying mouse clicks and key presses, so aren't really maintainable. Network Automation's Automate 6 did a reasonable job of recognising and manipulating the controls but had the odd glitch (it didn't like dealing with radio buttons, for instance).

I also considered building the test automation into the add-in, but most of the user's time is spent interacting with a modal dialog which stops the automation script running in the background, so that's pretty much out of the question.

My question- does anyone here have any experience with an automated testing tool that
a) recognises VBA user form controls and can reliably interact with them
b) has support for test scripting with conditional branches and success/failure logging, rather than just record and playback
?

I've spent a while looking around QA forums but haven't found much there, so any help or leads would be appreciated.

Thanks for your help,

- Martin
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,224,585
Messages
6,179,706
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top