# \[Q\] How do I run the same test on multiple endpoints in multiple environments

**URL:** <https://discuss.elastic.co/t/q-how-do-i-run-the-same-test-on-multiple-endpoints-in-multiple-environments/359422>\
**Category:** Elastic Observability\
**Created:** [May 14, 2024, 4:25am UTC](https://discuss.elastic.co/t/q-how-do-i-run-the-same-test-on-multiple-endpoints-in-multiple-environments/359422 "2024-05-14T04:25:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjessing](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjessing/32/133870_2.png) [@cjessing](https://discuss.elastic.co/u/cjessing)\
**Post date:** [May 14, 2024, 4:25am UTC](https://discuss.elastic.co/t/q-how-do-i-run-the-same-test-on-multiple-endpoints-in-multiple-environments/359422/1 "2024-05-14T04:25:39Z")

</div>

Sorry if this is a n00b question but I'm quite new to both Playwright and Synthetics.

I'm writing this test that'll create a case (url #1), send it to a recipient that'll perform additional steps (url #2) and return the case to the creator for verification (url #1). The delay between the steps can be somewhat substantial (minutes).

I'd like to run this test in multiple environments and I'm struggling to figure out how to structure my journeys. Do I use tags? And how do I avoid hardcoding the urls into my journeys?

Thanks in advance 🙂

---

<div class="post-metadata">

**Author:** ![cjessing](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjessing/32/133870_2.png) [@cjessing](https://discuss.elastic.co/u/cjessing)\
**Post date:** [May 14, 2024, 6:29am UTC](https://discuss.elastic.co/t/q-how-do-i-run-the-same-test-on-multiple-endpoints-in-multiple-environments/359422/2 "2024-05-14T06:29:53Z")

</div>

Think I found the answer myself. Using url1, url2... urln in params definition in synthetics.config.ts combined with the --pattern cli parameter...
