Optimal way to do Cross region Intergration test
Which one do we prefer!
Either Single test with multiple group support. Data provider providing data
@DataProvider(name = "theDataProvider")
fun theDataProvider(): Array = arrayOf(
if (realmValue.equals(US, true)) input["inputForSuccessUS"].toString() // It could be realm or check the current group being executed from context. Also switch instead of if else
else input["inputForSuccessEU"].toString()
)
@Test(groups = [EU, US], dataProvider = "theDataProvider")
fun `theTest`(input:...