我们如何在本地开发服务器中托管taskpane.html?据我所知,office.js不允许它在office应用程序之外加载
我确实希望我可以在 Office 应用程序之外加载 taskpane.html,这实际上是用于 powerpoint 加载项的。因为我需要运行自动化测试。据我所知,office.js不允许用户在office应用程序之外使用它。我应该怎么办?请。
I do hope I can load the taskpane.html outside the office app, which is for powerpoint add-ins actually. Because I need to run automation test. As I know, the office.js does not allow users to use it outside the office app. What should I do? Please.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
taskpane.html 可以在普通浏览器中加载,但您会收到一条错误消息,指出 Office.js 无法初始化。您可以单击任务窗格中的按钮和其他 UI,但需要 Office.js 的任何操作都不起作用。如果您想要自动化单元测试,则可以使用模拟框架来实现。请参阅 Office 加载项单元测试。
The taskpane.html can load in an ordinary browser, but you will get an error saying that Office.js cannot initialize. You can click buttons and other UI in the taskpane, but nothing that requires Office.js will work. If it is unit tests that you want to automate, you can do that with the mocking framework. See Office Add-ins Unit Testing.
您是否尝试过使用 PowerPoint 网页版 (Office 365) 运行自动化测试?
Have you try to run the automation test using PowerPoint on the Web (Office 365)?