Open tbswork1 opened 3 months ago
+1 Seeing this as well
Same issue here.
Command:
dotnet Microsoft.Office.WopiValidator.dll --token XXXX --token_ttl 1724418272 --wopisrc https://XXXX/api/wopi/files/XXXX--testcategory OfficeOnline --ignore-skipped
StackTrace:
System.ArgumentException: Could not find a prereq test case named {0} (Parameter 'SupportsCoauthPrereq')
at Microsoft.Office.WopiValidator.Core.Factories.TestCaseFactory.GetPrereqTests(XElement definition, Dictionary`2 prereqsDictionary)+MoveNext() in C:\Users\XXXX\Source\Repos\wopi-validator-core\src\WopiValidator.Core\Factories\TestCaseFactory.cs:line 43
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Microsoft.Office.WopiValidator.Core.ConfigParser.GetTestExecutionDataForGroup(XElement definition, Dictionary`2 prereqCasesDictionary, ITestCaseFactory testCaseFactory, IResourceManager resourceManager, TestCategory targetTestCategory) in C:\Users\XXXX\Source\Repos\wopi-validator-core\src\WopiValidator.Core\ConfigParser.cs:line 52
at Microsoft.Office.WopiValidator.Core.ConfigParser.<>c__DisplayClass1_0.<ParseExecutionData>b__1(XElement x) in C:\Users\XXXX\Source\Repos\wopi-validator-core\src\WopiValidator.Core\ConfigParser.cs:line 38
at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
at System.Linq.Lookup`2.Create(IEnumerable`1 source, Func`2 keySelector, IEqualityComparer`1 comparer)
at System.Linq.GroupedEnumerable`2.GetEnumerator()
at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
at Microsoft.Office.WopiValidator.Program.Execute(Options options) in C:\Users\XXX\Source\Repos\wopi-validator-core\src\WopiValidator\Program.cs:line 98
at Microsoft.Office.WopiValidator.Program.<>c.<Main>b__1_0(Options options) in C:\Users\XXXX\Source\Repos\wopi-validator-core\src\WopiValidator\Program.cs:line 46
at CommandLine.ParserResultExtensions.MapResult[TSource,TResult](ParserResult`1 result, Func`2 parsedFunc, Func`2 notParsedFunc)
at Microsoft.Office.WopiValidator.Program.Main(String[] args) in C:\Users\XXXX\Source\Repos\wopi-validator-core\src\WopiValidator\Program.cs:line 44
+1 Seeing this as well
+1 same issue
Seeing the same issue here. Anyone able to by pass this? Or used a different wopi validator?
I am using the following command:
dotnet src/WopiValidator/bin/Release/net6.0/osx-x64/publish/Microsoft.Office.WopiValidator.dll --token xxxxxxxxxxxx-xxxxxxx-x --token_ttl 0 --wopisrc https://wopi.cengage.com/services/v1/spreadsheet/wopi/files/<file-id> --testcategory OfficeOnline --ignore-skipped --config TestCases.xml
Stacktrace:
at Microsoft.Office.WopiValidator.Core.Factories.TestCaseFactory.GetPrereqTests(XElement definition, Dictionary`2 prereqsDictionary)+MoveNext() in /Users/****/Projects/wopi-validator-core/src/WopiValidator.Core/Factories/TestCaseFactory.cs:line 43
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Microsoft.Office.WopiValidator.Core.ConfigParser.GetTestExecutionDataForGroup(XElement definition, Dictionary`2 prereqCasesDictionary, ITestCaseFactory testCaseFactory, IResourceManager resourceManager, TestCategory targetTestCategory) in /Users/****/Projects/wopi-validator-core/src/WopiValidator.Core/ConfigParser.cs:line 52
at Microsoft.Office.WopiValidator.Core.ConfigParser.<>c__DisplayClass1_0.<ParseExecutionData>b__1(XElement x) in /Users/****/Projects/wopi-validator-core/src/WopiValidator.Core/ConfigParser.cs:line 38
at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
at System.Linq.Lookup`2.Create(IEnumerable`1 source, Func`2 keySelector, IEqualityComparer`1 comparer)
at System.Linq.GroupedEnumerable`2.GetEnumerator()
at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
at Microsoft.Office.WopiValidator.Program.Execute(Options options) in /Users/*****/Projects/wopi-validator-core/src/WopiValidator/Program.cs:line 98
at Microsoft.Office.WopiValidator.Program.<>c.<Main>b__1_0(Options options) in /Users/*****/Projects/wopi-validator-core/src/WopiValidator/Program.cs:line 46
at CommandLine.ParserResultExtensions.MapResult[TSource,TResult](ParserResult`1 result, Func`2 parsedFunc, Func`2 notParsedFunc)
at Microsoft.Office.WopiValidator.Program.Main(String[] args) in /Users/*****/Projects/wopi-validator-core/src/WopiValidator/Program.cs:line 44```
@naima-hossain I have deleted this test case (SupportsCoauthPrereq) locally in code. Then, there is another invalid test case (deleted too). But if you can have your solution on public IP (domain) the best solution is to upload file with .wopitest extension into your solution and open (wopi doscovery flow). There is UI with all the test cases functional.
@EislerDavid thanks for replying. Can you please explain a bit on
"But if you can have your solution on public IP (domain) the best solution is to upload file with .wopitest extension into your solution and open (wopi doscovery flow). There is UI with all the test cases functional." My wopi src is in a public url. When you are saying solution, do you mean the wopi source? Is there any document for the case that you are talking about?
Getting the above error running the following command:
dotnet src\WopiValidator\bin\Release\net6.0\win-x64\Microsoft.Office.WopiValidator.dll --token "xxxxxxxxxxxxxxxxxxxxx" --token_ttl 0 --wopisrc http://localhost:2080/wopi/files/xxxxxxxxxxxxxxxx --testcategory OfficeOnline --ignore-skipped