Execute web test from Gradle task & Allure report
Given that we authored and executed GoogleSearchTest
, let us see how to execute the same test via Gradle task & view the Allure report of it.
Executing test via Gradle task
From the terminal, navigate to the root folder of the project and execute the below Gradle task
./gradlew runWebTests
**NOTE:**
- All the tests which are tagged as “web” would get executed. Please see the task
runWebTests
to know more - Please create additional Gradle tasks per your need
Viewing Allure reports
From the terminal, navigate to the root folder of the project and execute the below Gradle task
./gradlew allureServe
This would open up allure report like below:
Please refer Allure documentation to understand details on reporting structure.
Congratulations!! you have successfully kick-started Web automation with Ekam.
Next steps
These are the bare minimum steps required to build and run web tests on Ekam. But below are some additional steps to dive a bit deeper into Ekam features.
- Execute tests on different browsers - Firefox, MS Edge
- Execute the same test in responsive mode
- Execute tests in different environment
- Execute tests in public cloud - BrowserStack, PCloudy and more !!