http://wopi.readthedocs.io/en/latest/build_test_ship/validator.html
根据本文档,我们需要构建一些 HTML 主机页面。
在这个文档中,他们提到了一个我没有完全理解的点
The simplest way to use the validation application is to use the view action. To use the view action hosts should treat .wopitest files the same way other Office documents are treated. In other words, hosts should do the following:
Launch a host page pointed at the .wopitest file. Ideally, this should be the same host page used to host regular Office Online sessions. This will allow the validation application to test things like PostMessage and do some validation on the way the Office Online iframe was loaded.
什么是 .wopitest 文件以及我需要做什么,任何人都可以指导我吗?请逐步解释
最佳答案
它们意味着您必须以与调用任何其他操作相同的方式调用该操作(在发现中查找操作 url 等)。
例如,当您想打开一个.docx 进行查看时,您查看discovery.xml 并发现您必须调用https://word-view.officeapps-df.live.com/wv/wordviewerframe.aspx ?”,当然,您必须为该操作准备好 Rest 服务(checkFileInfo 等),并且 WOPISrc 指向一个实际上是 .docx 的文件。好吧,验证应用程序完全相同,但是您应该调用 WopiTest 应用程序而不是 Word 应用程序(在发现中)并且您生成的 WOPISrc 应该指向一个名为“xxxx.wopitest”而不是“xxxx.docx”的文件。就是这样!;)
关于validation - 如何构建WOPI验证应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38148006/