đ Generate Allure Report
Introductionâ
Boyka Framework provides a built-in interfaces which you can use to log test steps with Allure.
Install Allureâ
To install Allure, you can use the following command:
brew install allure
or you can download it from the Allure website.
Implement Boyka Listenerâ
Boyka framework provides a set of interfaces that you can use to log test steps with Allure. You can implement any of the following interfaces to log test steps:
You can click on the listener link to see the full documentation of the interface.
APIâ
Dataâ
Deviceâ
Driverâ
IAlertActionsListener
IContextActionsListener
ICookieActionsListener
IDriverActionsListener
IFrameActionsListener
INavigateActionsListener
IWindowActionsListener
Elementâ
IClickableActionsListener
IDropDownActionsListener
IElementActionsListener
IFingerActionsListener
IFingersActionsListener
ITextBoxActionsListener
Configure the listenerâ
In the boyka-config.json
file, you can add the listener to the listeners
field. For example:
{
"listeners_package": "package.to.your.listeners"
. . .
}
Once you have added the listener to the listeners_package
field, the Boyka framework will automatically load the listener and use it to log test steps with Allure.
Conclusionâ
In this tutorial, you learned how to generate Allure reports with Boyka framework. You can use the built-in interfaces to log test steps with Allure and generate reports. You can also customize the reports by implementing your own listeners.
Rest of the steps for generating Allure reports are the same as the ones mentioned in the Allure documentation.