Parsing XML results into cc.net - cruisecontrol.net

I have used the parser in thread
Parse Fitnesse RESTFul XML output into TFS Test format
And I get the result in XML as I want.
I want to
1: include the running of this parsing in MSBuild as a Target and I think I am almost there, with a Exec target
2: show the results of the testrunning in cc.net. Anyone who knows how to do that? It inludes parsing the XML into something cc.net can interpret.
Thank You,
Magnus

CruiseControl.net already has an xsl for displaying Fitnesse results. You shouldn't need to parse anything.

In your CCNET project configuration, make sure you merge the XML result file from the Fitneese report.
http://confluence.public.thoughtworks.org/display/CCNET/File+Merge+Task

For me it´s working following the instructions given here: http://gojko.net/FitNesse/book/ch10s03.html

Related

Is it possible to convert a .spec file to a .feature file?

I am using gauge framework for testing. I wish to store the execution results in Jira/Xray. But Jira/Xray only support cucumber for automated testing. I am thinking of converting the .spec file to .feature file and add it to the Xray test scenario. Then after executing the gauge test I am translating the gauge-json report to a cucumber-json myself. I am looking for a tool or a convinient way to translate the .spec file to .feature file.
Gauge does not provide a way to convert specifications(.spec) into Gherkin (.feature). Gauge specifications follow Markdown format, there might be tools which can convert markdown to Gherkin. But Gauge will not be able to execute Gherkin syntax.
For the reporting bit writing a reporting plugin which can generate the report in a format which is accepted by Jira/Xray might be useful.
I'm not aware of a spec=>Gherkin converter but in theory, you could convert the markdown to a Gherkin kind of layout just as means to have visibility of the steps in Xray.
If you aim to have visibility of the spec and detailed results, another option would be to convert the gauge report to Robot Framework XML kind of report that Xray can process. That would give visibility of each step result as seen in this Robot tutorial, on the test run execution screen. Then you would need to submit this transformed report to the respective Robot REST API endpoint.

Can we make change in Seccubus tool to support Retina Scanner

I want to add Support for Retina scanner in Seccubus tool, will it easy? Actually i want to automate the things which Nessus does in Seccubus tool. Can anybody help?
Yes, it is quite easy. You need to convert the output to simple XML format named IVIL and make a script to run and import scans.
You can use the other scanners as a guide to help write a collector for Retina, if anyone is still doing this. do-scan calls seccubus/scanners/[scan name]/scan which then runs the actual scanner with arguments and all. Then the report is saved in /tmp/seccubus.$$ ($$ is the process ID) then it is used as an input file to the command seccubus/bin/[something2ivil] and an output file of /tmp/seccubus.$$.ivil.xml is created which is the input to seccubus/bin/load_ivil and /seccubus/bin/attach_file.
If Retina by default outputs an XML report, then you can take a lot from say the Zap scanner and change things as needed to suit Retina. You would need the files seccubus/scanners/Retina/defaults.txt description.txt help.html and scan to have Retina a viable option on the web interface and a seccubus/bin/retina2ivil script that would convert the XML report to the IVIL format.
If Retina does output an XML report, then a lot of the work is already done for you with all the Zap files. But, to get retina2ivil done correctly you will have to experiment with correctly parsing the XML structure of Retina's outputs. Using the statement
"print Dumper([xml data field/fields]);"
should help you determine if you are correctly parsing the XML or if you're assuming the structure incorrectly.

how to generate xml file using gSOAP with Visual C++

I am using gSOAP, Visual C++ connecting to salesforce.com and I am very new to gSOAP.
I am retrieving some data using SOAP.
Are there any ways to generate the SOAP result to a xml file?
If anyone has got some sample codes, it would be very helpful for me.
Thanks in advance.
Congratulations on getting this far :)
I'm not providing a solution, but a workaround:
Compile with the DEBUG flag and gSoap will produce three log files. One of these - "RECV.log" - will contain entire response, including the XML file.
However, gSoap does entire response parsing for you, so it is probably much easier to just gather relevant data from the response structure it provides.

Does anyone know where to get the XSD file describing the junitReport.xml file format expected by Hudson?

I need the XSD of junitReport.xml recognized by Hudson.
Does anyone know where can it be found?
Thanks.
At this link, someone has already tried to analyse the JUnit code to check for any references for it's XML schema. But an XSD is no requirement to create XML and apparently, it doesn't use one.
I've create a junit.xsd for Ant's junit task. It was created by examining the relevant Java code in Ant 1.8.2

nant scripts written to read values from .xls

Is there anyway by which we can read a value from an .xls file using nant scripts.The nant scripts should ask the input from the user and based on the inputs the nant.build should search the .xls file and when it sees the match,it should copy the corresponding mail ID and echo that mail ID to some other file and that echoed value should be placed in the mail section of the cruise control.NET .
Please get back to me for any more clarifications
Thanks
GNR
You should write an NAnt extension. It is relatively easy to do.
See this tutorial here
As an example project see my question here and here.
I'll re-phrase my answer :
"Is there anyway by which we can read a value from an .xls file using nant scripts"
If you are talking about using the 'core' NAnt functionality, which is that funcationality that is provided within the basic installation of NAnt, then I would say "No" or "Not very easily".
You can however extend NAnt using .NET libraries to perform whatever function you want, as long as you can code that function in a .NET language.
So, for you to solve your problems, the steps you need to under-take in my view are :
(a) Write a .NET library with methods that undertake the function(s) you describe
(b) Use the 'extensibility' of NAnt to turn your library in (a) into a custom task you can then call directly from your NAnt script
Obviously, you need to be able to break your problem down so that you can code it for part (a). Once you have done that, part (b) is reasonably trivial, and the tutorial I supplied in the link should easily walk you through this.

Resources