![]() embed ( mime_type = "video/webm", data = "/path/to/video.webm", caption = "Video" ) Image and Video examples:ĭefined MIME types and corresponding accepted data embed ( mime_type = "image/png", data = "/path/to/image.png", caption = "Screenshot" ) Embed video context. # You would than use: '' instead of 'context.embed' Embed image context. embed # Not required if you already have the Basic setup. Embedding data to the report Basic embedding setup - save embedding function to context for formatter in context. Result can be seen in the image examples. """ * Left click " About " " radio button " The text will get printed and will be seen, as you can see, haha. * Start application " zenity " via command " zenity -about " * Commentary """ This field is generated from decorator 'Commentary' Where you insert text and override step to not print its decorator. commentary_override = Trueįeature file example usage: Scenario: Example of commentary usage. current_step # Override the step, this will prevent the decorator to be generated and only the text will show. ( 'Commentary' ) def commentary_step ( context ): # Get the correct step to override. You will need to define your own step where you will set flag for commentary step. Used as an information panel to describe or provide infomation about the page contents. This is configurable also from the behave.ini file _string = Test Suite Reporter. ![]() set_title ( title = "Test Suite Reporter" ) set_icon ( icon = icon_data )Įxample use case - an indicator if the test is running under X11 or Wayland: html-pretty = behave_html_pretty_formatter:PrettyHTMLFormatter # Optional configuration of PrettyHTMLFormatter # also possible to use "behave. (or in home) with the following content: # - FILE: behave.ini # Define ALIAS for PrettyHTMLFormatter. To use it with Behave create a behave.ini file in your project folder Installation python3 -m pip install behave-html-pretty-formatter Using project dominate to generate the page.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |