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

Test category option is not working #117

Open
hagasper opened this issue Aug 16, 2023 · 1 comment
Open

Test category option is not working #117

hagasper opened this issue Aug 16, 2023 · 1 comment

Comments

@hagasper
Copy link

Hello.

There seems to be a problem with providing test category option (-e) as an argument when running the WOPI Validator. It returns bellow error, when trying to specify category other than "All" (that is: "WopiCore" or "OfficeOnline"). So, if I don't provide test category or if I provide test category "All", the WOPI Validator runs normally, otherwise it fails. Seems like an issue in your source code.

System.ArgumentException: Could not find a prereq test case named {0} (Parameter 'SupportsCoauthPrereq') at Microsoft.Office.WopiValidator.Core.Factories.TestCaseFactory.GetPrereqTests(XElement definition, Dictionary2 prereqsDictionary)+MoveNext() in C:\Dev\wopi-validator-core\src\WopiValidator.Core\Factories\TestCaseFactory.cs:line 43
at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at Microsoft.Office.WopiValidator.Core.ConfigParser.GetTestExecutionDataForGroup(XElement definition, Dictionary2 prereqCasesDictionary, ITestCaseFactory testCaseFactory, IResourceManager resourceManager, TestCategory targetTestCategory) in C:\Dev\wopi-validator-core\src\WopiValidator.Core\ConfigParser.cs:line 52
at Microsoft.Office.WopiValidator.Core.ConfigParser.<>c__DisplayClass1_0.b__1(XElement x) in C:\Dev\wopi-validator-core\src\WopiValidator.Core\ConfigParser.cs:line 38
at System.Linq.Enumerable.SelectManySingleSelectorIterator2.MoveNext() at System.Linq.Lookup2.Create(IEnumerable1 source, Func2 keySelector, IEqualityComparer1 comparer) at System.Linq.GroupedEnumerable2.GetEnumerator()
at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext() at Microsoft.Office.WopiValidator.Program.Execute(Options options) in C:\Dev\wopi-validator-core\src\WopiValidator\Program.cs:line 98 at Microsoft.Office.WopiValidator.Program.<>c.<Main>b__1_0(Options options) in C:\Dev\wopi-validator-core\src\WopiValidator\Program.cs:line 46 at CommandLine.ParserResultExtensions.MapResult[TSource,TResult](ParserResult1 result, Func2 parsedFunc, Func2 notParsedFunc)
at Microsoft.Office.WopiValidator.Program.Main(String[] args) in C:\Dev\wopi-validator-core\src\WopiValidator\Program.cs:line 44`

I have the latest version of WOPI Validator available on Git.

Thanks.

@mvksaran
Copy link

I'm running into the same issue and when run with All, I see all the test cases skipped

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

2 participants