Skip to content
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

I could not get the report #26

Open
IlkerBekmezci opened this issue Aug 9, 2017 · 14 comments
Open

I could not get the report #26

IlkerBekmezci opened this issue Aug 9, 2017 · 14 comments

Comments

@IlkerBekmezci
Copy link

First of all thank you for your effort and sharing.
But I could not run it properly.
Without pdfngreport, I can run my framework properly.
After adding the conf. mentioned in http://uttesh.com/pdfngreport/, i am getting the following error:

Report Location : C:/Users/Bekmezci/workspace/Test/pdfngreportFile Name : sample_pdf_report.pdf
build system details : Build v2.0.8 - Bekmezci@E7450 - java 1.8.0_131(Oracle Corporation) - Windows 10(amd64)
pdf report file path :C:\Users\Bekmezci\workspace\Test\pdfngreport\sample_pdf_report.pdf
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.206 s
[INFO] Finished at: 2017-08-09T15:03:22+02:00
[INFO] Final Memory: 16M/220M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20:test (default-test) on project Test: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\Bekmezci\workspace\Test\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] There was an error in the forked process
[ERROR] org/apache/fop/apps/FopFactory
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process
[ERROR] org/apache/fop/apps/FopFactory

@uttesh
Copy link
Owner

uttesh commented Aug 9, 2017

Thanks, looks like it's missing the dependent libraries. Check the sample pom file and add the missing dependencies and plugins

@IlkerBekmezci
Copy link
Author

IlkerBekmezci commented Aug 9, 2017 via email

@uttesh
Copy link
Owner

uttesh commented Aug 9, 2017

In build log None of the test cases were executed, check the test case execution before generating the report.

@IlkerBekmezci
Copy link
Author

IlkerBekmezci commented Aug 9, 2017 via email

@uttesh
Copy link
Owner

uttesh commented Aug 9, 2017

Remove the report Plugin and run, are you able to see test cases execution number? I suspect it's nothing to do with the report Plugin. Try to generate simply html report of your tests.

@IlkerBekmezci
Copy link
Author

IlkerBekmezci commented Aug 9, 2017 via email

@IlkerBekmezci
Copy link
Author

IlkerBekmezci commented Aug 9, 2017 via email

@IlkerBekmezci
Copy link
Author

IlkerBekmezci commented Aug 9, 2017 via email

@IlkerBekmezci
Copy link
Author

IlkerBekmezci commented Aug 9, 2017 via email

@uttesh
Copy link
Owner

uttesh commented Aug 9, 2017

Please provide proper description, its not helping me to find what is the root cause. is there error in the build?
attach full build log.

@IlkerBekmezci
Copy link
Author

IlkerBekmezci commented Aug 9, 2017 via email

@uttesh
Copy link
Owner

uttesh commented Aug 9, 2017

Ok its simple just run your mvn command and with save to file i.e. mvn clean install > testbuild.log, possible add the -e flag as well to get full stack trace.

is the sample demo is working for you? just re-tested library its working fine in all test scenarios.

@IlkerBekmezci
Copy link
Author

IlkerBekmezci commented Aug 9, 2017 via email

@uttesh
Copy link
Owner

uttesh commented Aug 10, 2017

@IlkerBekmezci

Its very unfortunate that your unable to configure and library is not having any bug/issue relates to what your mentioning, lot of people are using and its easy to configure.

Unfortunately, I cannot find a way to produce build log from eclipse.
But I am quite sure that your code or your example maven project has bugs.
I have achived to run Testng version (Even if it has also some problems. For example pdfngreport.jar version), but it is correctable.

Please go through the sample of maven/gradle or ant to run out side eclipse. eclipse build will be useful in the development stage and to debug the build issue or anything related to build, its always good practice to build outside the eclipse. In real time finally we will integrate the test cases with build system to build the applications like jenkins etc.

Simple steps to run maven out side eclipse:

  1. Download maven from https://maven.apache.org/ and unzip the download file.
  2. Make sure maven is in the system path i.e. for windows set the environment system path with maven bin folder.
  3. Go to the sample code folder where pom.xml residing, open the command prompt on this location.
  4. Run maven command "mvn clean install" or "mvn clean test" according to that kind of build you need.

However, your jar is not working with maven.
After I run it from Testng. i also try to convert the project into maven from eclipse.
However, after converting, it gave the same error.

No need to do any conversion to maven, To make the development easy we provided a separate samples codes how to use the plugin for ant, maven and eclipse (http://uttesh.com/pdfngreport/).

Although it sounds illogical, this is the case.
I quit, I am out.
Best wishes to you..

Sorry to hear that, i have added this plugin just to make the other development easy to generate pdf report, no harm it will be useful to some one.

Sorry to write such big mail, just to make sure things are taken care properly.

Thanks,

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

No branches or pull requests

2 participants