All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.macros.json.embeddings.vm Maven / Gradle / Ivy

Go to download

Provides pretty html reports for Cucumber. It works by generating html from the cucumber json file.

There is a newer version: 5.8.2
Show newest version
#macro(includeEmbeddings $embeddings)

  #if (!$embeddings.isEmpty())
  
#foreach($embedding in $embeddings) #if ($embedding.getMimeType() == "image/png") #includeImageEmbedding($embedding, "png", $foreach.index) #elseif ($embedding.getMimeType() == "image/gif") #includeImageEmbedding($embedding, "gif", $foreach.index) #elseif ($embedding.getMimeType() == "image/bmp") #includeImageEmbedding($embedding, "bmp", $foreach.index) #elseif ($embedding.getMimeType() == "image/jpeg") #includeImageEmbedding($embedding, "jpeg", $foreach.index) #elseif ($embedding.getMimeType() == "image/svg+xml") #includeImageEmbedding($embedding, "svg", $foreach.index) #elseif ($embedding.getMimeType() == "text/xml") #includeTextEmbedding($embedding, "XML text", $foreach.index) #elseif ($embedding.getMimeType() == "text/plain") #includeTextEmbedding($embedding, "Plain text", $foreach.index) #elseif ($embedding.getMimeType() == "text/html") #includeHtmlEmbedding($embedding, "HTML", $foreach.index) #elseif ($embedding.getMimeType() == "application/json") #includeTextEmbedding($embedding, "JSON", $foreach.index) #elseif ($embedding.getMimeType() == "image/url") #includeImageReferenceEmbedding($embedding, $foreach.index) #else #includeUnknownEmbedding($embedding, $foreach.index) #end #end
#end #end #macro(includeHtmlEmbedding $embedding, $format, $index) #set($index = $index + 1)
#set($embeddingId = $counter.next())
#end #macro(includeImageEmbedding $embedding, $image_type, $index) #set($index = $index + 1)
#set($embeddingId = $counter.next())
#end #macro(includeImageReferenceEmbedding $embedding, $index) #set($index = $index + 1)
#set($embeddingId = $counter.next())
#end #macro(includeTextEmbedding $embedding, $format, $index) #set($index = $index + 1)
#set($embeddingId = $counter.next())
$embedding.getDecodedData()
#end #macro(includeUnknownEmbedding $embedding, $index) #set($index = $index + 1)
#set($embeddingId = $counter.next())
This file cannot be displayed. Use download button to get the content as file.
#end




© 2015 - 2024 Weber Informatics LLC | Privacy Policy