How to merge multiple cucumber results into a single report? - html

I have a strong test suit built using Cucumber - WATIR. Also I am using pretty face reports to generate test execution report which gives a crispy dashboard. Along with that I also do create HTML and json reports too.
I set up all the reports to be generated in a folder with the day, and browser name. so today it would be like 11-15/IE9/ and 11-15/FIREFOX/ etc. So I need a way to prepare a report where I should get a report which should be a merge of all the reports. Any suggestion how to achieve will be highly appreciated.
How can I do this with generated json or html reports?
Also a thought in my mind is , any how I am having pretty face report, where I am getting a dashboard with name index.html inside 11-15/IE9/ and 11-15/FIREFOX/, I want to create a dynamic HTML page where it reads all the datefiles/browser creates links to the index.html on it.
Awaiting any new idea or any enhancement to my existing idea.

Related

Is there a way to publish main and sub SSRS reports using report builder?

Dears,
I am quite new with Report Builder, and also with SSRS so sorry in advance if I raise irrelevant questions. My goal, essentially, is to deploy a sort of SQL Monitoring dashboard (I just uploaded a demo picture of it, here the link 1 ), that is composed by a main report with some charts and toggled sub reports. All these sub reports are filtered by the SQL instance name, and other parameters like number of monitoring days, months etc...
Plus I make use only of shared datasets.
Now, if I deploy the whole solution with Visual Studio against my report server, it works perfectly and all the report parts are uploaded without any issue against the report site.
If I try to deploy the report using the report website manager (by trying to upload the whole solution file by file), it does not upload anything, even if I create first the data source and then trying to add the existing datasets.
If I try to deploy the solution with Report Builder (after having giving to it the target report server URL and an existing folder that starts with slash), the only option I have is to open the solution as file, and save it against the target report server configured. But then the annoying error appears even if I the path has less than 260 char and even if the path starts with the slash:
"Error: The path of the dataset "" is not valid. The full path must be
less than 260 characters long; other restrictions apply. If the report
server is in native mode, the path must start with slash.
(rsInvalidItemPath)"
What am I doing wrong? I thought that a tool like that, used also for publishing, would make the life easier, but apparently I may not know exactly how to use it.

T-SQL Notification - Use HTML to create Chart/Graph

Is it possible to use xml and html to create a chart or graph to include in an email notification from MSSQL Server?
Has anyone done this before? Any suggestions?
For example: A chart visually representing the amount of receiving hours required in the warehouse for the next couple weeks.
It can be tedious but this method works:
Export the data from T-SQL (probably as a JSON) or directly use the database from .Net application.
Now create a word template with some graphs (Line/Bar/Pie Chart or whatever) and bookmark it with some name 'my_chart'
Now include Microsoft.Office.Interop.Word & Microsoft.Office.Interop.Excel references in your C# project. (Google it & see this also)
Now in your C# project access those Graphs in word file using bookmark name & populate it with Data from database. (See this)
It may take some time but if your requirement is worth it you can do this.
Also you don't need to study C#(it's very similar to Java) for this, just see interop C# syntax as you keep going BUT if you want see C# documentation for any reference.
Refer this tutorial also.

Capture build parameters as html report in Jenkins

As part of release management process, there can exist parallel releases targeting to overlap on environments.
Whats the best way to capture build parameters in Jenkins and add to a custom HTML report.
Like i want to see the following in the report ...
1. Build parameters used in build#XXX of build_job_releaseYYY
2. Sort the tabular report of build parameters to see how many releases have gone through Test1 environment etc
The approach i was thinking ...
Create an xml node for every set of build parameter ..
Some how keep adding these nodes to an xml - buildReport.xml
Generate an html report BuildReport.xml from the buildReport.xml to display a table of the node
The html report should be sortable.
There is the simple parameterized build report which may do what you want as it list the build parameters used in individual builds
This report is available of the job page as a link

Can we write a function in SSRS globally

Im currently using SSRS-2008R2. I've an scenario where i have to maintain the External image as a logo for each reports we have. Not, only that, we have our custom date formats that what we should change according to the Date Type users define in an asp.net application.
There are lot of things we have to do on every report. Thats my problem.
Following is the one of them Im currently sharing as example :
Currently i maintain the following function for each reports i've:
Public Function GetLogoImage() As String
Dim ImageLogoURL As String
if Globals!ReportServerUrl is nothing then
ImageLogoURL = "http://localhost/ReportServer" + "?%2fImages%2fLogo"
else
ImageLogoURL = Globals!ReportServerUrl + "?%2fImages%2fLogo"
Return ImageLogoURL
End Function
I hope, i asked question clearly. Im newbie in SO.
Thank you in advance.
If you have a list of functions that you wish to apply to multiple reports and you're not willing to copy them to every single one of them, you can create an external library and then add it as a reference to every report.
This is quite simple to do and there's lot of documentation around the web.You can start here. You will, however, have to maintain this external library but if you have a lot of code, I personally think this is a much better solution.
If you want to have a predefined layout, you may want to consider having a master report and then include other reports as sub-report objects, but you'll lose some flexibility design wise.
Since the accepted answer is more of a comment and the link provided is broken, i'll provide my answer for people who might need a quick guide on how to use custom code in ssrs:
In Design view, right-click the design surface outside the border of the report and click Report Properties.
Click Code.
In Custom code, type the code. Errors in the code produce warnings when the report runs.
Once you press ok, to call the function that you saved you just need to right click on a cell, select "Expression" and paste in the following string: Code.GetLogoImage
More detailed source here.

How to run sql query to return data from different joomla components

I am trying to customize the source files of a Joomla component.
Before the Joomla MVC model introduced, I was able to run SQL queries in a component, Kunena 1.0 to select data from another component. e.g Sobi2.
However, after Kunena 1.5 [MVC model] was introduced, I do not know how / where to add the SQL query to select data from Sobi2.
I believe I need to add some codes in the files of the /models/ or /func/ folder. But can someone provide more detailed assistance on how I can achieve this?
The data interaction is done by the model, you will find Kunena models in the model folder.
Querying the SOBI2 databse is the same as before, MVC wouldn't actually affect how you do this.
To get your head around MVC, have a look at:
http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_1
For examples of how to query the database in your model, look at:
http://docs.joomla.org/How_to_use_the_database_classes_in_your_script
In simple terms, the Controller directs to the appropriate view (view.html.php), this view then interacts with the model, and then directs to a template file (normally located in the view/tmpl folder.
Hope this helps.