Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Provide parameters from test case #8

Closed
just-boris opened this issue Dec 3, 2015 · 4 comments
Closed

Provide parameters from test case #8

just-boris opened this issue Dec 3, 2015 · 4 comments

Comments

@just-boris
Copy link
Contributor

Possible api

it("is a test", function() {
    allure.addArgument("browser", "Chrome")
    allure.addArgument("capabilities", "chrome.latest.mac")
});
@ctapobep
Copy link

ctapobep commented Dec 3, 2015

Is this a new notion? I remember there were labels in Allure. Where will the arguments be shown?

@just-boris
Copy link
Contributor Author

It is already implemented in java for a long time. Now we have a demand to do it in javascript.

If these parameters exist, they will be shown under test case title:
image

Also you will be able to set an environment entity. It is key-value list under the failure message.

allure.addEnvironment("testHost", "http://example.com/")

Links in the environment are clickable.

@just-boris
Copy link
Contributor Author

The new methods are described here:
https://github.com/allure-framework/mocha-allure-reporter/blob/master/README.md#runtime-api

I know, that is kinda weird, but now I don't have any another place to keep it.

@ctapobep
Copy link

ctapobep commented Dec 7, 2015

You could create a page in allure-common and reference it from the concrete reporters pages. I'd add it to jasmine reporter as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants