Hi @ryanta,
Firstly while this is not related to your issue you should be aware of Deprecation of Force Tags and Default Tags
Regarding the error:
[ ERROR ] Suite ‘Suite1’ contains no tests matching tag ‘test1 AND test2’.
The error you received is correct, In those tests you gave, none of them have both a test1 and a test2 tag, actually none of them have more than one tag.
Refering to Tag patterns:
–include fooANDbar # Matches tests containing tags ‘foo’ and ‘bar’.
If you run with --include ‘test1ORtest2’ then you will get the result you were expecting.
Likewise if you add a 5th test:
Test 5
[Tags] test1 test2 test3 test4 test5
Log To Console Running ${TEST NAME}, Tags=@{TEST TAGS}
This will match when you use --include ‘test1ANDtest2’
as it has both those tags
Dave.