Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.ArgumentException: Could not find a prereq test case named {0} (Parameter 'SupportsCoauthPrereq') #122

Open
tbswork1 opened this issue Aug 12, 2024 · 8 comments

Comments

@tbswork1
Copy link

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

@cyndilopez
Copy link

+1 Seeing this as well

@EislerDavid
Copy link

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

@qq312888991
Copy link

+1 Seeing this as well

@mvksaran
Copy link

+1 same issue

@naima-hossain
Copy link

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```

@EislerDavid
Copy link

@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.

@naima-hossain
Copy link

@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?

@EislerDavid
Copy link

@naima-hossain Just create any file and change extension to .wopitest. Then open it in office online and you will see UI with all test cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants