Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Test Case Filter to get a union of tests #198

Open
Madanlcs opened this issue Jul 14, 2019 · 0 comments
Open

Test Case Filter to get a union of tests #198

Madanlcs opened this issue Jul 14, 2019 · 0 comments

Comments

@Madanlcs
Copy link

Consider the below scenario:
TestClass1:
TestAA - TestCategory - A, 11
TestAB - TestCategory - A
TestClass2:
TestBB - TestCategory - B, 11
TestBC - TestCategory - B
TestClass3:
TestCC - TestCategory - C, 11
TestCD - TestCategory - C

How to create the TestCaseFilter that will run all the tests that have Categories 11, A, B and C?
In our case, it should run only three tests but it is picking up all the tests with my below filter:

First Approach:
"(TestCategory=11&TestCategory=A)&(TestCategory=11&TestCategory=B)&(TestCategory=11&TestCategory=C)"

Second Approach:
"(TestCategory=11&(TestCategory=A&B&C))"

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

No branches or pull requests

1 participant