Comments (2)
The code in answer not work in latest versions
If you mean Allure v2 the answer is yes, some method signatures was changed. Allure the repository is changed as well.
https://github.com/allure-framework/allure2 - report generator
https://github.com/allure-framework/allure-java - java integrations
PS the correct code is
public void log(String message, Status status) {
String uuid = UUID.randomUUID().toString();
StepResult result = new StepResult().withName(message).withStatus(status);
Allure.getLifecycle().startStep(uuid, result);
Allure.getLifecycle().stopStep(uuid);
}
from allure1.
thx, I already found this in the core of Allure
Just as idea maybe it will be good to have short ability write your text in allure report from code?
static method like above in for example Allure space
Allure.writeStep("Some step")
public static void writeStep(String message) {
String uuid = UUID.randomUUID().toString();
StepResult result = new StepResult().withName(message).withStatus(Pass);
Allure.getLifecycle().startStep(uuid, result);
Allure.getLifecycle().stopStep(uuid);
}
from allure1.
Related Issues (20)
- Wrong test execution time in graph
- Demo report is down HOT 1
- Add new kind of parameter to exclude some parameters from historyId calculation
- Allure - result folder not cleaned HOT 6
- Duration time axis shown with repetitive time values HOT 12
- Exception in thread "main" javax.xml.bind.DataBindingException: javax.xml.bind.UnmarshalException
- Install problem
- [ERROR] Input directory should be not absolute for aggregate goal - TestNg,Maven,IDEA HOT 4
- How to add Stories when using nodejs project?. HOT 2
- How to show Red icon in Allure report, say when some test cases steps are failing HOT 2
- Allure-results for one test not for all suite
- invalid report using @Step, for multi-threaded execution of tests
- java.lang.NoClassDefFoundError: io/airlift/command/Cli HOT 2
- Wiki about "Allure+Commandline" not available HOT 1
- Allure Cucumber-jvm cannot generate html result, only json HOT 4
- Exception in thread "main" java.lang.StackOverflowError HOT 6
- Why allure2 did not have TestCaseId ? HOT 1
- https://dl.bintray.com/qameta/generic/io/qameta/allure/allure/2.7.0/allure-2.7.0.zip is forbidden. Please fix this ASAP. HOT 1
- Failed to download https://dl.bintray.com/qameta/generic/io/qameta/allure/allure/2.3/allure-2.3.zip HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from allure1.