Christian
Christian

Reputation: 269

How to implement UI testing for continuous delivery of a Office Add-in (app for Office)

We are developing Office Add-ins (apps for office) and we want to automate the testing for continuous delivery by using VSTS.

Because the Add-ins are web apps I wanted to use tools like Selenium, but that doesn't seem to work because the app is not in a browser (but is using the IE engine from within Word)

I tried using the Coded UI tests from visual studio, but they are not functioning correctly. It seems to handle some basic UI events, but even simple things typing text result in unpredictable behavior. (missing characters, clicking the wrong items).

I hope someone else has some experience on how to do this?

Thank you very much.

Upvotes: 1

Views: 356

Answers (1)

Devin Canterberry
Devin Canterberry

Reputation: 160

What we have done with our add-in, for automated testing of the task pane, is to mock the Office API methods we are using, and inject the mocked Office object into our code (vs importing the real Office API script and referencing the global). This has worked well for us, using Mocha+Chai+Sinon+Enzyme for our React-based add-in.

Upvotes: 2

Related Questions