# Please help with this simple tag pattern

**URL:** https://forum.robotframework.org/t/please-help-with-this-simple-tag-pattern/5075
**Category:** Robot Framework
**Created:** [15 December 2022 02:41 UTC](https://forum.robotframework.org/t/please-help-with-this-simple-tag-pattern/5075 "2022-12-15T02:41:13Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)
#### Post date: [15 December 2022 08:18 UTC](https://forum.robotframework.org/t/please-help-with-this-simple-tag-pattern/5075/2 "2022-12-15T08:18:25Z")

</div>

Hi @ryanta,

Firstly while this is not related to your issue you should be aware of [Deprecation of Force Tags and Default Tags](https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#toc-entry-272)

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](https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#toc-entry-418):

> –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:

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

---

_[View the full topic](https://forum.robotframework.org/t/please-help-with-this-simple-tag-pattern/5075)._
