Methods
-
<static> allure.addDescription(desc, type)
-
Adds test description if test is started.
Parameters:
Name Type Description descstring Description.
typestring Mime type.
-
<static> allure.addEnvironment(name, value)
-
Adds test environment value if test is started.
Parameters:
Name Type Description namestring Environment name.
valuestring Environment value.
-
<static> allure.attach(name, content, type)
-
Attach content to test if test is started.
Parameters:
Name Type Description namestring Content name.
contentstring Content body.
typestring Mime type.
-
<static> allure.attachHtml(name, html)
-
Attach HTML to test if test is started.
Parameters:
Name Type Description namestring HTML name.
htmlstring HTML content.
-
<static> allure.attachImage(name, imgPath)
-
Attach image to test if test is started.
Parameters:
Name Type Description namestring Image name.
imgPathstring Image path.
-
<static> allure.attachJson(name, obj)
-
Attach JSON to test if test is started.
Parameters:
Name Type Description namestring JSON name.
objstring Object to convert to JSON.
-
<static> allure.attachText(name, txt)
-
Attach text to test if test is started.
Parameters:
Name Type Description namestring Text name.
txtstring Text content.
-
<static> allure.attachVideo(name, videoPath)
-
Attach video to test if test is started.
Parameters:
Name Type Description namestring Video name.
videoPathstring Video path.
-
<static> allure.feature(name)
-
Adds test feature if test is started.
Parameters:
Name Type Description namestring Feature name.
-
<static> allure.hasSteps()
-
Defines if allure helper has steps or no.
Returns:
trueif it has steps,falseotherwise.- Type
- boolean
-
<static> allure.isTestStarted()
-
Defines if test is started or no.
Returns:
trueif test is started,falseotherwise.- 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 namestring Step name.
-
<static> allure.story(name)
-
Adds test story if test is started.
Parameters:
Name Type Description namestring Story name.