-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to add information from code #30
Comments
What kind of information are you planning to add? |
Information that may change dynamically such as:
and such that can be easily put into conditions and add correctly using parameters in the code or the CI if there'd be something like what ExtentReports has with 'setSystemInfo'. |
You can currently use |
Thank you for that, it helps for some bits. It'd be great to be able to overwrite the report name and the document title as well so if that could be implemented it'd make the library even more complete. Anyhow, thank you for quickly responding to my issue and let you know that your library is great. I look forward to upcoming updates. |
@grasshopper7 Suppose extent.properties has "extent.reporter.spark.out=output/Report.html". Can I set it dynamically from my code, as I have two runner class and I need report in two different location. Does extentreports-cucumber7-adapter support this? |
Dynamic properties are not supported. Two runners in same execution will use the same values. You will need to run them separately |
@grasshopper7 Thank you! ..Suppose I have two runner A.java and B.java...Can A.java read from extent.properties and B.java can read from extentNew.properties. I will first run A.java and once it is completed, I will run B.java. If possible, any reference will be helpful. Thank you!. |
It will not work, this is fixed in the core ExtentReport code over which I do not have any control. |
From what I can see, the report can only be configured by hardcoding the information into the .properties and .xml files. I wanted to know if there's a way to add information via the Java code as that'd allow for dynamic property setting.
The text was updated successfully, but these errors were encountered: