Methods
-
<static> allure.addDescription(desc, type)
-
Adds test description if test is started.
Parameters:
Name Type Description desc
string Description.
type
string Mime type.
-
<static> allure.addEnvironment(name, value)
-
Adds test environment value if test is started.
Parameters:
Name Type Description name
string Environment name.
value
string Environment value.
-
<static> allure.attach(name, content, type)
-
Attach content to test if test is started.
Parameters:
Name Type Description name
string Content name.
content
string Content body.
type
string Mime type.
-
<static> allure.attachHtml(name, html)
-
Attach HTML to test if test is started.
Parameters:
Name Type Description name
string HTML name.
html
string HTML content.
-
<static> allure.attachImage(name, imgPath)
-
Attach image to test if test is started.
Parameters:
Name Type Description name
string Image name.
imgPath
string Image path.
-
<static> allure.attachJson(name, obj)
-
Attach JSON to test if test is started.
Parameters:
Name Type Description name
string JSON name.
obj
string Object to convert to JSON.
-
<static> allure.attachText(name, txt)
-
Attach text to test if test is started.
Parameters:
Name Type Description name
string Text name.
txt
string Text content.
-
<static> allure.attachVideo(name, videoPath)
-
Attach video to test if test is started.
Parameters:
Name Type Description name
string Video name.
videoPath
string Video path.
-
<static> allure.feature(name)
-
Adds test feature if test is started.
Parameters:
Name Type Description name
string Feature name.
-
<static> allure.hasSteps()
-
Defines if allure helper has steps or no.
Returns:
true
if it has steps,false
otherwise.- Type
- boolean
-
<static> allure.isTestStarted()
-
Defines if test is started or no.
Returns:
true
if test is started,false
otherwise.- Type
- boolean
-
<static> allure.pass()
-
Ends step as passed if test is started.
-
<static> allure.step(name)
-
Starts step if test is started.
Parameters:
Name Type Description name
string Step name.
-
<static> allure.story(name)
-
Adds test story if test is started.
Parameters:
Name Type Description name
string Story name.