Hi there!
In my project when test fails we save the executionPath to be able to reproduce fails.
But I haven't found any specific ways to reproduce execution of specific path (let's say sequence of elements' names).
Is there any in build mechanism to run my tests using execution path?
class SomeTest() : BaseTest() {
private val startModelPath: Path = Paths.get("./src/test/resources/graphwalker/com/astraeus/models/StartModel.json")
private val profileModelPath: Path = Paths.get("./src/test/resources/graphwalker/com/astraeus/models/ProfileModel.json")
@Test
@TestRailCase("123123")
fun test() {
val elements: MutableList<String> = mutableListOf(
"v_AppIsOff",
"e_RunApp",
"v_MainPage",
"e_GoToProfile",
"v_ProfilePage",
"v_ProfilePage",
"e_GoToNotifications"
)
val startModel = StartModelImplementation(application)
val profileModel = ProfileModelImplementation(application)
TestBuilder()
.addContext(startModel, startModelPath, DebugGenerator(DebugCondition(elements)))
.addContext(profileModel, profileModelPath, DebugGenerator(DebugCondition(elements)))
.execute()
}
}