e2eTest
Primary entrypoint for executing a Parikshan end-to-end (E2E) test scenario.
This function orchestrates the complete test lifecycle—connecting to the application process, executing intent-based UI commands within E2ETestScope, managing automatic retries and video/screenshot artifacts, and closing communication channels upon completion.
Example Usage
@Test
fun testLoginFlow() = e2eTest {
// Write intent-based test actions inside E2ETestScope
input("Username", "john.doe")
input("Password", "SecretPass123!")
click("Sign In")
assertVisible("dashboard_header")
}Parameters
Optional E2ETestConfig to customize timeouts, screenshot behavior, and command delays.
The suspendable test scenario logic executed within E2ETestScope.
See also
Extension entrypoint for test classes implementing E2ETestLifecycle.
Automatically invokes E2ETestLifecycle.beforeEach before executing the test scenario block, and guarantees invocation of E2ETestLifecycle.afterEach upon completion (success or failure).
Example Usage
class StorefrontTest : E2ETestLifecycle {
override suspend fun E2ETestScope.beforeEach() {
navigateToSection("storefront")
}
@Test
fun testCheckout() = e2eTest {
click("Add to Cart")
assertVisible("cart_badge")
}
}Parameters
Optional E2ETestConfig to customize timeouts, screenshot behavior, and command delays.
The suspendable test scenario logic executed within E2ETestScope.
See also
Primary entrypoint for executing a Parikshan end-to-end (E2E) test scenario.
This function orchestrates the complete test lifecycle—connecting to the application process, executing intent-based UI commands within E2ETestScope, managing automatic retries and video/screenshot artifacts, and closing communication channels upon completion.
Example Usage
@Test
fun testLoginFlow() = e2eTest {
// Write intent-based test actions inside E2ETestScope
input("Username", "john.doe")
input("Password", "SecretPass123!")
click("Sign In")
assertVisible("dashboard_header")
}Parameters
Optional E2ETestConfig to customize timeouts, screenshot behavior, and command delays.
The suspendable test scenario logic executed within E2ETestScope.
See also
Primary entrypoint for executing a Parikshan end-to-end (E2E) test scenario.
This function orchestrates the complete test lifecycle—connecting to the application process, executing intent-based UI commands within E2ETestScope, managing automatic retries and video/screenshot artifacts, and closing communication channels upon completion.
Example Usage
@Test
fun testLoginFlow() = e2eTest {
// Write intent-based test actions inside E2ETestScope
input("Username", "john.doe")
input("Password", "SecretPass123!")
click("Sign In")
assertVisible("dashboard_header")
}Parameters
Optional E2ETestConfig to customize timeouts, screenshot behavior, and command delays.
The suspendable test scenario logic executed within E2ETestScope.
See also
Primary entrypoint for executing a Parikshan end-to-end (E2E) test scenario.
This function orchestrates the complete test lifecycle—connecting to the application process, executing intent-based UI commands within E2ETestScope, managing automatic retries and video/screenshot artifacts, and closing communication channels upon completion.
Example Usage
@Test
fun testLoginFlow() = e2eTest {
// Write intent-based test actions inside E2ETestScope
input("Username", "john.doe")
input("Password", "SecretPass123!")
click("Sign In")
assertVisible("dashboard_header")
}Parameters
Optional E2ETestConfig to customize timeouts, screenshot behavior, and command delays.
The suspendable test scenario logic executed within E2ETestScope.
See also
Primary entrypoint for executing a Parikshan end-to-end (E2E) test scenario.
This function orchestrates the complete test lifecycle—connecting to the application process, executing intent-based UI commands within E2ETestScope, managing automatic retries and video/screenshot artifacts, and closing communication channels upon completion.
Example Usage
@Test
fun testLoginFlow() = e2eTest {
// Write intent-based test actions inside E2ETestScope
input("Username", "john.doe")
input("Password", "SecretPass123!")
click("Sign In")
assertVisible("dashboard_header")
}Parameters
Optional E2ETestConfig to customize timeouts, screenshot behavior, and command delays.
The suspendable test scenario logic executed within E2ETestScope.