diff --git a/README.md b/README.md index ece8751d5..5ba04bc61 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,8 @@ With Kaspresso, some UI Automator commands run **10 times faster**! * Ability to call ADB commands. * UI tests writing philosophy, implemented with DSL. * Features screenshotting. +* Robolectric support. +* Allure support. And many more! @@ -204,6 +206,17 @@ With Kaspresso, translators can automatically take a screenshot of any screen. I You can tune any part of Kaspresso (read [more](/wiki/03_Kaspresso_configurator.md)) +### Robolectric support + +You can run your UI-tests on the JVM environment. Additionally, almost all interceptors improving stability, readability and other will work. +Read [more](/wiki/08_Kaspresso-Robolectric.md). + +### Allure support + +Kaspresso can generate very detailed Allure-reports for each test: +![](https://habrastorage.org/webt/tq/t7/ch/tqt7chcdczrgduhoukqhx1ertfc.png) +More information is available [here](/wiki/09_Kaspresso-Allure.md). + ## Philosophy The tool itself, even the perfect one, can not solve all the problems in writing UI tests. It’s important to know how to write tests and how to organize the entire process. Our team has great experience in introducing autotests in different companies. We shared our knowledge on [writing autotests](/wiki/04_How_to_write_autotests.md). diff --git a/wiki/09_Kaspresso-Allure.md b/wiki/09_Kaspresso-Allure.md index ebce5feee..ec7e2a87f 100644 --- a/wiki/09_Kaspresso-Allure.md +++ b/wiki/09_Kaspresso-Allure.md @@ -12,9 +12,20 @@ Also, the following interceptors were added: In the package [**com.kaspersky.components.alluresupport.interceptors**](../allure-support/src/main/kotlin/com/kaspersky/components/alluresupport/interceptors), there are special Kaspresso interceptors helping to link and process files for Allure-report. ## _How to use_ -First of all, add the following Gradle dependency to include **allure-support** Kaspresso module: -``` -androidTestImplementation "com.kaspersky.android-components:allure-support:1.3.0" +First of all, add the following Gradle dependency and Allure runner to your project's gradle file to include **allure-support** Kaspresso module: +```groovy +android { + defaultConfig { + //... + testInstrumentationRunner "io.qameta.allure.android.runners.AllureAndroidJUnitRunner" + } + //... +} + +dependencies { + //... + androidTestImplementation "com.kaspersky.android-components:kaspresso-allure-support:1.3.0" +} ``` Next, use special [**withAllureSupport**](../allure-support/src/main/kotlin/com/kaspersky/components/alluresupport/AllureSupportKaspressoBuilder.kt) function in your TestCase constructor or in your TestCaseRule to turn on all available Allure-supporting interceptors: ```kotlin @@ -119,3 +130,7 @@ Details for succeeded test: Details for failed test: ![](https://habrastorage.org/webt/z_/ml/bj/z_mlbjspdd8uvkw4t3cafh6-g6k.png) + +## _Details that you need to know_ +By default, Kaspresso-Allure introduces additional timeouts to assure the correctness of a Video recording as much as possible. To summarize, these timeouts increase a test execution time by 5 seconds. +You are free to change these values by customizing `videoParams` in `Kaspresso.Builder`. See the example above.