Thermite is an automation testing library for mobile. It leverages Appium and Selenide.
dependencies {
testImplementation("de.thermondo:thermite:0.1.1")
}You can create a test by extending TestProvider and providing your device specifications:
class ExampleTest : AndroidTestProvider() {
override val capabilities: MutableCapabilities
get() = MutableCapabilities().apply {
setCapability("automationName", AutomationName.ANDROID_UIAUTOMATOR2)
setCapability("platformName", MobileBrowserType.ANDROID)
}
@Test
fun testLogin() {
// your test code here
}
}You can use torch to easily find elements:
torch
.findTextEqualTo("Button")
.shouldBe(visible)