The html file which i have received from jenkins is not looking as expected.
I have tried using Cucumber code below but it has not resolved my issue:
dref reportPath=build.getWorkspace().child("overview-failures.html")
msg.setContent(reportPath.readToString()."text/html")
**/cucumber-html-reports/overview-features.html
My expected result is that the html should look good.
please find the image
Related
I'm new in Karate framework.
And i have create one script which is read the request body from "user.json" file and i have configerd that in feature file. till that it's good but when run feature file, it's giving me an below error:
json file:
and i tried to found solution for this but didn't get much result for same.
can anyone please help me out for how to reslove this?
I am doing karate.log(...args) on my hook file. It is printed on the karate.log and the console.
However I do not find the log on the .json file generated by surefire, which leads to the log does not appear on my html report.
Is there any steps I am missing here?
Thanks a lot!
Yes hooks don't log to the HTML report, sorry. Are you doing testing or just worrying about reports :)
Is it possible and if so, how to have TFS display jasmine test results? I am successfully creating jasmine test reports using the plato npm package on the server during a build although I'm yet to link the report to the TFS build success page in TFS. Can someone please advise how this is possible?
Many thanks!!
Update
Initial comments refer to looking at the following link although I think this is a general link in TFS as opposed to a link relative to the "current" build.
https://www.visualstudio.com/en-us/docs/integrate/extensions/get-started/node
I have a build definition that cleans, compiles and runs jasmine tests and using plato (npm install plato) creates a html report on the server. I want developers looking at the build to be able to open the report for the build that they're looking at. Please confirm is the suggested extension link is still applicable because I've tried it just now without success.
Please advise.
Update
I've successfully included NUnit tests to be executed in our build, shown in the screen shot. I want to have a similar feature for Jasmine. The second screen shot shows the report page the Plato package produces for Jasmine tests. I would like this available within the TFS results page.
Screenshot #1 - NUnit test results (as seen in TFS)
Screenshot #2 - Plato produced jasmine results report
This reported is generated on the server in a build definition step.
You can add a custom section in build result through extension, with this way, you can add the link in that custom section.
There is the sample about build result extension:
vsts-extension-samples
More information about how to build extension, you can refer to this article (apply to on premise TFS)
Create your first extension for Visual Studio Team Services
You can use tampermonkey to inject a link into TFS. The following will work. (It's horrible but I haven't achieved the same result with any "proper" approach).
Example script
(function() {
'use strict';
setTimeout(function() {
$(".pivot-view.pivot-tabs").append("<li><a href='plato-report.html' target='_blank'>Jasmine tests</a></li>");
}, 3000);
})();
https://tampermonkey.net (for chrome)
https://addons.mozilla.org/en-gb/firefox/addon/greasemonkey/ (for firefox)
console.log vs Durandal system.log
i am trying to understand if they are a like,
I believe that they both gives the same output - logs in the console
Am i missing something?
You're right. They give the exact same output except that system.log can be disabled. It will also work with most if not all browsers.
As mentioned in the documentation for system.log:
Logs data to the console. Pass any number of parameters to be logged. Log output is not processed if the framework is not running in debug mode.
Debug mode is enabled using system.debug.
You can view the source code of system.log on Github.
I am experimenting with Apache Nutch 2.3.
When I ran the parse command for the URL http://comptuergodzilla.blogspot.com Nutch parse the content correctly. I mean I get all the outlinks and content in ol and p column family respectively.
But when I did the same for URL http://goal.com/en-india it was not able to parse the site outlinks and content.
What makes me scratch my head is after running parsechecker command for URL http://www.goal.com/en-india I get all the parsed contents and outlinks.
Regarding above my questions are:
i. Why parse command is not working? It should work if parsechecker is parsing the URL correctly.
ii. Do I have to build the separate HTMLParser plugin for achieving above.