Table of content in PDF Report
Table of content in PDF Report
Hi ,
I have converted Ranorex html report in , PDF format using Ranorex.PDF dll. The report got generated but table of content in the PDF document appears inappropriately. I executed 4 test cases and was expecting ,test cases name will appear in parallel in Table of content .But first test case is appearing as the main heading and other test cases are appearing inside it. When I go down in the document , I see a heading name "Unknown" on top of the test cases.
I wanted to share the PDF report here , but unable to attach it.
I have used the below code to zip the report and convert into PDF.
TestReport.SaveReport();
Report.Zip(TestReport.ReportEnvironment,ResultFolderPath+"\\ZipReport","BindingAuthority");
Ranorex.PDF.Creator.CreatePDF(ResultFolderPath+"\\ZipReport\\BindingAuthority.rxzlog",ResultFolderPath+"\\PDFReport\\VIBEPDFReport_"+timestamp, "C:\\Users\\ny102895\\Downloads\\style\\style.xml","all");
I have converted Ranorex html report in , PDF format using Ranorex.PDF dll. The report got generated but table of content in the PDF document appears inappropriately. I executed 4 test cases and was expecting ,test cases name will appear in parallel in Table of content .But first test case is appearing as the main heading and other test cases are appearing inside it. When I go down in the document , I see a heading name "Unknown" on top of the test cases.
I wanted to share the PDF report here , but unable to attach it.
I have used the below code to zip the report and convert into PDF.
TestReport.SaveReport();
Report.Zip(TestReport.ReportEnvironment,ResultFolderPath+"\\ZipReport","BindingAuthority");
Ranorex.PDF.Creator.CreatePDF(ResultFolderPath+"\\ZipReport\\BindingAuthority.rxzlog",ResultFolderPath+"\\PDFReport\\VIBEPDFReport_"+timestamp, "C:\\Users\\ny102895\\Downloads\\style\\style.xml","all");
Re: Table of content in PDF Report
Hi,
Please post the source rxzlog file and pdf file, using a file sharing service (like One Drive, Drop Box, etc.). Thanks.
Please post the source rxzlog file and pdf file, using a file sharing service (like One Drive, Drop Box, etc.). Thanks.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Table of content in PDF Report
Hi,
You can find the rxzlog and PDF file on the below one driver link:
https://1drv.ms/f/s!AmTj0-r5Wq3PbJ2njwRK-8sfqI0
Thanks,
Vivek
You can find the rxzlog and PDF file on the below one driver link:
https://1drv.ms/f/s!AmTj0-r5Wq3PbJ2njwRK-8sfqI0
Thanks,
Vivek
Re: Table of content in PDF Report
Hi odklizec,
Did you get a chance to look into the rxzlog and PDF file?
Thanks,
Vivek
Did you get a chance to look into the rxzlog and PDF file?
Thanks,
Vivek
Re: Table of content in PDF Report
Hi,
I had only a brief chance to look at it. I agree that the PDF ToC looks weird. I think this must be a problem of the conversion stylesheet?
I had only a brief chance to look at it. I agree that the PDF ToC looks weird. I think this must be a problem of the conversion stylesheet?
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Table of content in PDF Report
I am using the standard one which have downloaded from Ranorex site. I have uploaded the same on One Drive - https://1drv.ms/f/s!AmTj0-r5Wq3PbDJ7Yq8rnoQpevM
please have a look.
Do you have any other conversion style sheet?
Thanks,
Vivek
please have a look.
Do you have any other conversion style sheet?
Thanks,
Vivek
Re: Table of content in PDF Report
Hi Odklizec
I observed that the problem is not only with Toc but the same issue exist in the content of PDF.
Please see the report here : https://1drv.ms/b/s!AmTj0-r5Wq3PckDwPTTly_RL0h8
Thanks,
Vivek
I observed that the problem is not only with Toc but the same issue exist in the content of PDF.
Please see the report here : https://1drv.ms/b/s!AmTj0-r5Wq3PckDwPTTly_RL0h8
Thanks,
Vivek
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Table of content in PDF Report
Hello Vivek,
It seems like you tried to convert a Ranorex 5.X. report:
Please note, that the PDF conversion is supported since Ranorex 6.x.
Sincerely,
Robert
It seems like you tried to convert a Ranorex 5.X. report:
Please note, that the PDF conversion is supported since Ranorex 6.x.
Sincerely,
Robert
You do not have the required permissions to view the files attached to this post.
Re: Table of content in PDF Report
Hi Robert,
I tried with Ranorex 7.0 but report was generated in the same way. Sharing report n few relevant file which i am using to generate the PDF report. Please have a look.
https://1drv.ms/f/s!AmTj0-r5Wq3Pc16fcYS6ghzf4DI
Thanks,
Vivek
I tried with Ranorex 7.0 but report was generated in the same way. Sharing report n few relevant file which i am using to generate the PDF report. Please have a look.
https://1drv.ms/f/s!AmTj0-r5Wq3Pc16fcYS6ghzf4DI
Thanks,
Vivek
Re: Table of content in PDF Report
Hi Robert,
Did you get a chance to look into ?
Thanks,
Vivek
Did you get a chance to look into ?
Thanks,
Vivek
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Table of content in PDF Report
Hi Vivek,
Thank you for updating Ranorex and uploading the new report. Unfortunately, it seems like the report wasn't finished correctly:
Please ensure that the test finishes (no "Test in progress") and to convert the report afterwards.
I hope this helps.
Sincerely,
Robert
Thank you for updating Ranorex and uploading the new report. Unfortunately, it seems like the report wasn't finished correctly:
Please ensure that the test finishes (no "Test in progress") and to convert the report afterwards.
I hope this helps.
Sincerely,
Robert
You do not have the required permissions to view the files attached to this post.
Re: Table of content in PDF Report
Thanks for your reply Robert.
I checked multiple times and the progress bar is never completed . I waited for an hour to get it completed however it didn't and PDF report didn't get generate. Finally I used the command prompt and give path of .exe ,style.xml path. This way I created the report but the problem is still same.
Report progress always shows report in progress while report was complete. I could see the complete status of test cases executed. As I mentioned above that I waited for an hour but the progress bar was still showing status as In Progress ,and of course PDF report didn't generate .Then what is the way of using this Ranorex feature to generate PDF reports.
Thanks,
Vivek
I checked multiple times and the progress bar is never completed . I waited for an hour to get it completed however it didn't and PDF report didn't get generate. Finally I used the command prompt and give path of .exe ,style.xml path. This way I created the report but the problem is still same.
Report progress always shows report in progress while report was complete. I could see the complete status of test cases executed. As I mentioned above that I waited for an hour but the progress bar was still showing status as In Progress ,and of course PDF report didn't generate .Then what is the way of using this Ranorex feature to generate PDF reports.
Thanks,
Vivek
Re: Table of content in PDF Report
Hi Robert,
I'm experiencing the same problem with "Test In Progress" message in some of my tests. It appears to be caused by SaveReport() method. Here is a piece of code I'm using in Program.cs (just before return error; line)...If I start the test from Studio, the report opened in Studio says "Test In Progress". The one opened by process.start does not display this message.
I'm experiencing the same problem with "Test In Progress" message in some of my tests. It appears to be caused by SaveReport() method. Here is a piece of code I'm using in Program.cs (just before return error; line)...
Code: Select all
Ranorex.Core.Reporting.TestReport.EndTestCaseContainer();
Ranorex.Core.Reporting.TestReport.SaveReport();
string zipFileName = Ranorex.Core.Reporting.TestReport.ReportEnvironment.ReportZipFilePath;
System.Diagnostics.Process.Start(zipFileName);
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Table of content in PDF Report
Hi,
Do you setup your report on your own? Like you're not using the built-in report functionality from Ranorex Studio / test suite? It would be great to get a minimal example of a Ranorex solution producing a "non-finished" test report.
Sincerely,
Robert
Do you setup your report on your own? Like you're not using the built-in report functionality from Ranorex Studio / test suite? It would be great to get a minimal example of a Ranorex solution producing a "non-finished" test report.
Sincerely,
Robert
Re: Table of content in PDF Report
Hi Robert,
Try the attached project. Basically, it's new (nearly empty) solution, the only change is added three lines of code in Program.cs. But I don't think that unfinished report is the cause of Vivek's problem?
Try the attached project. Basically, it's new (nearly empty) solution, the only change is added three lines of code in Program.cs. But I don't think that unfinished report is the cause of Vivek's problem?
You do not have the required permissions to view the files attached to this post.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration