Cucumber - Report Generation for feature-overview.html - cucumber-junit

Need suggestion on how to create a report using Cucumber-jvm on HTML Advanced report. As of now I can able to generate index.html file which is a basic html report generated while running the runner class for the cucumber.
But I need to generate feature-overview.html file which contains detailed reports about the testing.
Thanks,
Suresh.

Related

How to Programmatically Add .rdl Files in the SSRS Reporting Project?

I have a Visual Studio 2019 project that I made using Report Server Project Wizard. In this project, I import reports (.rdl) files from a different report server project. To add a report, I right click on the project in the solution explorer and do Add > Existing Item and then choose the .rdl file and then it gets included in the project. Is there any way to include the reports (.rdl) files programmatically in the project? For example, can I create a C# console app to copy (.rdl) files from one report server project and then actually add them into a different report server project. Simple copying and pasting .rdl files from one project to another is not working - the file even after it is pasted doesn't show up in the project.
I have tried using EnvDTE to access the solution and project objects, but all the online sources, such as this - https://flylib.com/books/en/3.50.1.50/1/, that provide info on EnvDTE have example code written in VB and it shows you how to create a new solution and project objects and then add a file. What I want is programmatically access the object of the current(existing) report server project and somehow programmatically add .rdl files from another folder into this project. Is that possible?
Thanks
Unless you have hundreds of projects, I can't see the point of building something that is pretty easy to do anyway. You can select multiple files when you do "Add Existing Item".
Having said that, all you need to do is copy the file to the target project folder and then add an entry into the project file in an item group
e.g.
<ItemGroup>
<Report Include="My First Report.rdl" />
<Report Include="My Second Report.rdl" />
<ItemGroup>
You could probably get away with processing this as a simple text file.

How to Create Embedded Data Source in SSRS 2014

I want to create embedded data source in SSRS 2014 using Visual studio 2013. But there is no item for embedded data source. How I can add it?
Thanks
You create an Embedded Data Source in the report itself, not in the project.
Create a new report in your project (or use an existing one). Then, in the Report Data pane Ctrl+Alt+D, create a new Data Source by right-clicking on the Data Sources folder.
Choose Embedded connection, the Type and populate the Connection String with the settings that are appropriate for connecting to your database.
Afterward, add a new dataset by right-clicking on the Datasets folder and choosing Add dataset. Choose Use a dataset embedded in my report, and pick the data source you created above.
The report will use that embedded connection going forward, at least for this dataset.

How do I export an SSRS report to a pdf file in a batch job using X++?

Is it possible to generate an SSRS report in Dynamics AX 2009 and save it as a pdf file using X++ ?
The problem I have is that I need to generate the data for the report and then generate the report. Reporting server subscriptions wont work in this case as there is no way for them to call the x++ to generate the data.
I have also had a look at passing the rendering type to the SSRS report in the URL, but it doesnt seem to accept a filename to save the report as.
The logic that generates the data is not a straightforward query, and takes quite a while to run. I want to be able to turn this into a batch process so that several reports can be generated by a batch server.
Ensure that AX is configured as a batch server and then you will need to create a batch job.
The art of creating a batch class (for the batch job to call) which calls a report and generates a pdf file overnight has already been mastered here.
The following snippet for generating a PDF file is from the class EPSendDocument.makeDocument()
Filename file = "\\\\Server\\SharedFolder\\File.pdf";
printSettings = reportRun.parmReportContract().parmPrintSettings();
printSettings.printMediumType(SRSPrintMediumType::File);
printSettings.fileFormat(SRSReportFileFormat::PDF);
printSettings.fileName(file);
printSettings.overwriteFile(true);
Another link for converting a report to a pdf file.
Finally do check first if the files are generated by executing the class from within your AX client, and then when it is run on the batch server. There may be permission or path issues.

SSRS 2008: How to define Table/Tablix style without using a wizard?

Or how do I change the Table (Tablix) style in an already existing Report Server Project?
(I'm talking about a style which can be set in Report Server Project Wizard)
The style selected as a step in the Report wizard sets many properties on individual items in the report. Once created there is no easy way to switch a report from one style to another.
Two options:
Recreate the report using the wizard and select the new style.
Create two reports using a simple dataset, and then compare the resulting .rdl file (XML) in a file compare utility, such as UltraCompare. This will give you a list of all the different properties.
The file used for the style templates is at
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\Business Intelligence Wizards\Reports\Styles\en\StyleTemplates.xml in my installation of BIDS.
Examining this file can show you the changed properties as well.

Using RDL files in Web ReportViewer

I want to use a rdl file with the query information stored in it. I don't want to have to convert it to a rdlc file. I have an ASP.NET app that I want to show the report. I thought I would use a ReportViewer on my page and then have it use the rdl file. However, I get an error and in researching it appears that I have to convert the file to an rdlc file. I don't want to strip out the data contained in the report. How can I show the report to the user by running the rdl report?
What was the error message and what version of visual studio are you using? I have used the report viewer control with server based (rdl) files before with no problems, you have to make sure that the render mode (or might be report mode) is set to server and not local.