-
Notifications
You must be signed in to change notification settings - Fork 22
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
Report is not being generated #1
Comments
Ah, I see what the issue is.. AventReporter is not available in community version and what you see is only a place holder for users who upgrade/downgrade to/from professional edition. Use the below properties and it will work:
I have also created small example project here which you can use as reference although you won't be needing it. |
Thank you, foursyth. extent.reporter.email.out=test-output/EmailReport/ExtentEmail.html I double checked all dependencies and removed any unnecessary ones. |
Can you share the new propeties file you have? Having output folders is a good thing! We're almost there. |
One more thing. Are you running from command line or an IDE? |
I copied the one in the example project, I tried commenting the config part just in case, but same result. extent.reporter.avent.start=false extent.reporter.avent.config= extent.reporter.avent.out=test-output/AventReport/ |
Hmm, Eclipse works for me. Does the example project create the reports for you? |
The example project works with Cucumber2 Adapter. But if I change it to Cucumber4 Adapter it doesn't. There seems to be some dependencies inconsistencies,
It downloads cucumber v2.3.1 dependencies. If I edit the POM file and bring the cucumber v4 dependencies, it doesn't work either (Leaving aside that cucumber.api.format and others seem to be no longer available) |
Hmm, it should be the same. Let me try with version 4 adapter also. |
ello @adrian-arg Hope you did not have to wait for too long. I got caught up with a few things. Here is an example you can use: https://github.com/foursyth/extentreports-cucumber4-example You can see |
Don't worry about it, I appreciate it, I'm impressed by the response time
so far.
I'm away from my computer, but at first glance I see some changes in the
runner class, I'll check it out as soon as I can. Thank you!
import org.junit.experimental.categories.Category;
@category(Example.class)
…On Wed, Nov 14, 2018, 17:32 foursyth ***@***.*** wrote:
ello @adrian-arg <https://github.com/adrian-arg>
Hope you did not have to wait for too long. I got caught up with a few
things.
Here is an example you can use:
https://github.com/foursyth/extentreports-cucumber4-example
You can see test-output/ for the reports that got generated as per
extent.properties. I hope this will help you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AfJDK883oP0s3NLOPWVWr2E53gaiukF_ks5uvH3ogaJpZM4YcgCD>
.
|
It seems I run into an Eclipse bug, may I ask which version are you running? I'm on Version: Oxygen.3a Release (4.7.3a) - Build id: 20180405-1200 -- Internal compiler error: java.lang.ArrayIndexOutOfBoundsException |
I tried it on another machine. It throws a ClassNotFoundException regarding the Runner |
Well, I went ahead and tried it on my project. If I run Features A and B it generates the report correctly. Could it be that Feature C has a Scenario Outline ? (even if it is not being run as it is filtered by @tags) The funny thing is, it does work with the old report and old version. And to make it even more interesting, if I take out the adapter report from the runner class and use the old HTML reports, they actually work
|
Well, I can confirm that the issue seems to be related to Features containing Scenario Outline / Examples, even If the particular Scenarios are not run. |
Hello again @adrian-arg I do not think Scenario Outline is the culprit. Still, is it possible for you to share one that produces such error which we can use to test? You do not need to provide the Java StepDefs - just the Scenario Outline. We can create dummy step defs and test. In
|
Btw, if Asterisk was the issue, you can upgrade to version Although Scenario Outline was part of my example too, see here. And it works.. |
Oh, I didn't see that.
I could not run that project because of the eclipse Bug I mentioned, I'll
have to sort that out later.
I don't recall having any * in my feature files, but I do have them in my
step definitions. I will check that.
I used one of the features that worked, and added a scenario outline with a
simple:
Then display <errorMsg>
Example:
| errorMsj |
| this is an error |
Once I get home I'll look into it and let you know.
Thanks for the help!
…On Thu, Nov 15, 2018, 18:08 foursyth ***@***.*** wrote:
Btw, if Asterisk was the issue, you can upgrade to version
extentreports-cucumber4-adapter:1.0.2 and it should now be resolved. If
it is something else, it would help if you can share an example with us so
we can test.
Although Scenario Outline was part of my example too, see here
<https://github.com/foursyth/extentreports-cucumber4-example/blob/master/src/test/resources/cucumber/examples/java/calculator/basic_arithmetic.feature#L17>.
And it works..
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AfJDKyxmIVFxymH1gxGMix5i09-tAh2Fks5uvdflgaJpZM4YcgCD>
.
|
I have also noticed issues with Eclipse IDE for EE (Eclipse IDE for Java EE Developers). The toned down IDE (Eclipse IDE for Java Developers) works fine. I am not sure why that is so, but starting version 2 of Cucumber, my code fails to work properly in the EE version. |
Hi @foursyth Here is my code of TestRunner: @CucumberOptions(
} |
Hello @deena-p Would you be kind enough to send a sample with me that I can share with my team and fix asap? |
Hi @foursyth https://github.com/deena-p/cucumber4-sample-deena Thank you very much for your quick response. |
Thanks, @foursyth . I think I got it down! Just to leave everything here in case anyone else runs into the same issue: I'm running Eclipse IDE for Java Developers. If I use an * in the Feature file I get a You were right, there Scenario Outlines weren't the culprits, it just happened to be that all my failing Scenarios had a Scenario Outline. A few hours ago I finished refactoring all of my Step Definitions so I was no longer able to reproduce the Scenario Outline issue. So, I started messing around with the order of the Steps to force a few Exceptions and voilà! If the Exception is thrown in the middle of the Scenario and some Steps are Skipped, then the console doesn't show the Stack-Trace and the Report is not generated. It's like something is happening between the failing step and the skipped steps. The feature file looks something like this: Scenario: Checkout Page Scenario Outline: Checkout Page Examples: __ |
Thank you @adrian-arg and @deena-p. I much appreciate your efforts! |
Hi @foursyth |
Hi @foursyth |
Hello @deena-p Sure, I will have a look today and let you know. |
Also, so its working for you now? Wow! One thing I would like to point out after looking at your project. You must use only 1 type of report from the initalization (enabled the HTML for now, as only HTML and Logger are available in community version):
|
@adrian-arg I just worked on your example with foursyth - this should be fixed. Please try with:
The issue was that the |
@deena-p Do you mind opening a new ticket for the 1st item? As foursyth said, this can be added via config (properties or Java, although I prefer properties). Let me know your thoughts as well. |
@anshooarora @foursyth |
@foursyth
|
Hello @reach2jeyan if your existing method returns a byte array, then you do not need to use the method recommended by @foursyth. |
Hi @reach2jeyan can you please show me in detail your embed method? I've tried yours but got no luck seeing the screenshots attached to report (screenshots is just generated to proper folder instead). Where did you implement the method? I'm using extentreports-cucumber4-adapter: 1.0.7 and extentreports: 4.0.9 Thanks in advance! |
As shared earlier:
|
Hi, @foursyth , @anshooarora .. (1) Can not add system info to the report - please suggest. Here is the link for the sample project. can you please suggest and advice as soon as possible. Thanks in advance.. |
@foursyth @anshooarora I am having same problem as @subha077 above. Screenshots are being generated by not added to the report. |
I have the same bug as @subha077 and @Andyclark97 |
@foursyth @anshooarora I am having same problem as @subha077 above. Screenshots are being generated but not added to the report. |
@Vinoth0194 This is the version4 adapter, not tested with versions 5+. |
@subha077 @Andyclark97 @igorakintev @SamiraKhodami Please let me know if you are still having this issue. |
@anshooarora I am not getting it. |
You have:
with:
Version 4 adapter with Cucumber 6. Not supported. |
okay. I will change the version and check the reports. |
I have changed the version: but now i am getting this error java.lang.NoClassDefFoundError: io/cucumber/core/eventbus/EventBus
Caused by: java.lang.ClassNotFoundException: io.cucumber.core.eventbus.EventBus Updated POM.xml
|
thanks. Its working fine. |
@anshooarora Hey, with all the discussion above it is getting confusing. I'm facing the issue where the reports are getting generated but the images are not found in the report... I figured out that the path is set wrong in the report.html file and it is searching for the reports at http://localhost:63342/home/User/locustapitest/target/cucumber-reports/locustcharts/performanceChart1594459662333.png
|
@SonaliSihra the dependencies you are using seem correct, but I believe these are for version 1 of Cucumber. Is this the version you are using? You can find the correct adapters from this page: https://github.com/extent-framework/extentreports-java/wiki/Plugins |
Report is not generating.But no error.Could u help me? |
Above issue, i am also facing. Please give me a possible solution to resolve this |
Cucumber4-Adapter is not generating the desired report
I had managed to make the previous version work a few weeks ago.
All dependencies have been updated according to the information in the repository.
/* Runner Class */
@RunWith(Cucumber.class)
@CucumberOptions(
// junit = "--step-notifications",
strict = true
, features = { Environment.featuresFolder }
, glue = { Environment.stepDefinitionsFolder }
, tags = { "@regression"}
, monochrome = true
, plugin = {"com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:",
}
)
public class Release_Runner extends AbstractTestNGCucumberTests{
}
/* extent.properties */
extent.reporter.avent.start=true
#extent.reporter.avent.config=avent-config.xml
extent.reporter.avent.out=test-output/AventReport/
The text was updated successfully, but these errors were encountered: