This contains a command line tool, "WopiValidatorExecutor" that uses OfficeOnline's WopiTest application to execute tests which verify the target host's WOPI implementation.
Перейти к файлу
microsoft-github-policy-service[bot] f4cced1e3f
Auto merge mandatory file pr
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days.
2023-06-27 13:07:16 +00:00
WopiValidatorExecutor Use new discovery URL 2019-05-24 08:16:15 -07:00
.gitattributes Add gitignore and gitattributes. 2016-06-08 13:36:44 -07:00
.gitignore Add gitignore and gitattributes. 2016-06-08 13:36:44 -07:00
LICENSE.txt Move LICENSE and README to root. 2016-06-08 13:34:44 -07:00
README.md Update link to pip and setuptools installation 2016-09-24 00:46:10 -04:00
SECURITY.md Microsoft mandatory file 2023-06-12 18:31:12 +00:00
WopiValidatorExecutor.pyproj Flatten folder hierarchy 2016-06-08 15:14:43 -07:00
WopiValidatorExecutor.sln Flatten folder hierarchy 2016-06-08 15:14:43 -07:00
setup.py Basic PEP8 reformatting. 2016-06-08 15:23:25 -07:00

README.md

WopiValidatorExecutor

WopiValidatorExecutor is a command line application which executes the WopiValidator tests to verify the hosts WOPI Implementation.

For more details, please refer the documentation at Wopi Validator Application

Pre-requisite

Ensure that you have Python Version >= 2.7 installed.

Installation Guide

If you have Python 2 >= 2.7.9 or Python 3 >= 3.4 installed from python.org, you will already have pip and setuptools, but will need to upgrade to the latest version using the instructions below, (more details at - https://python-packaging-user-guide.readthedocs.io/installing/#install-pip-setuptools-and-wheel)

On Linux or OS X

pip install -U pip setuptools

On Windows

python -m pip install -U pip setuptools

Installation Steps

Installation from the source tree :

$ python setup.py install
  • On systems similar to Unix, the installation places a WopiValidatorExecutor-script into a centralized bin directory, which should be in your PATH.
  • On Windows, WopiValidatorExecutor.exe will be placed into a centralized Scripts directory which should also be in your PATH.

Usage

Run the WopiValidatorExecutor by passing the WopiSrc of the .wopitest file and a valid WOPI AccessToken enclosed in quotes. :

$ WopiValidatorExecutor "wopisrc" "accesstoken"

Optional Arguments

-s: If you need to provide a specific Wopi Discovery Service Url, you can pass that Url using 
    this argument.

-c: If you need to run the WopiValidator in a specific mode, you can pass the intended 
    VALIDATOR_TEST_CATEGORY using this argument. For more details, please refer the documentation 
    at https://wopi.readthedocs.io/en/latest/discovery.html#term-validator-test-category

-v: Using this argument will turn on verbose logging.

Logs

A log file named wopivalidatorexecutor.log will be placed in the installation directory.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.