I'm using testng, testers asked me if it possible to add test description into test results ( email and index).
I have checked the solution but I did not found and proper solution. In index.html steps are displayed, but in emailable-report.html are not. I would like to have#description displayed in emailable-report.html.
Does anyone have solution to my problem or what I doing wrong?
You need to Customize testng report by using testng Listeners
Detailed instruction to customize emailable reports is here
Related
I am building a NextJS app using the T3 stack. When I autosave my schema.prisma file it is not automatically adding the #relation tags, a friend is using the same stack and not having any issues.
I have highlighted in pink the part I would expect to generate automatically
I have tried to update prisma.
I have the prisma extension installed.
I have tried to google the issue but cant find people with a similar issue.
Nurul pointed me in the right direction. I had to click ctrl, alt + shift to format the document, I then got a warning that Prettier could not format Prisma files, I was then prompted to select a formatted for Prisma files and I selected the prisma.prisma option in the dropdown.
Hope this helps someone.
I am trying to develop a dashboard for my client where I have to use several google web components. My first approach is to show up a simple analytic query for which I am using this:
<google-analytics-query
ids="ga:xxxxxxxx"
metrics="ga:sessions"
dimensions="ga:country"
sort="-ga:sessions"
start-date="2015-10-01"
end-date="2015-10-31"
max-results="5">
</google-analytics-query>
But nothing is visible!
I am referring to https://elements.polymer-project.org/elements/google-analytics?active=google-analytics-query
What's going wrong?
UPDATE
I also tried the following code to render google-analytics-chart output ended up with a big white box.
<google-analytics-chart
type="area"
ids="ga:88814676"
metrics="ga:sessions"
dimensions="ga:date"
start-date="2015-10-01"
end-date="2015-10-31"
max-results="5">
</google-analytics-chart>
This question as also asked on the Github repo for the <google-analytics> element. You can see the answer there:
https://github.com/GoogleWebComponents/google-analytics/issues/29#issuecomment-157367824
The gist of the problem: using the <google-analytics-chart> element require authentication via the <google-signin> element in order to work.
I've made an Add-on which is a custom field.
The style of the text in the field changes depending on the properties of an issue.
I check which style should the text have in the .java file and I pass the html class in a variable called $indicator to the velocity template:
#if( ${value} )
<span class="$indicator">${value}</span>
#end
It works perfect everywhere but in gadgets. When I add this field to a table showing issues in a dashboard, the html code is correct, but it doesn't find the css resource. This is because gadgets are inside an iframe.
How can I make the iframe have a reference to the stylesheet?
You did not say exactly which gadget you were using, but try adding the following context within your <web-resource> module:
<context>jira.webresources:issue-table</context>
The above should work for at least Assigned to Me, Filter Results, In Progress, Voted, and Watched in JIRA 6.1+.
If that does not work, you might also try:
<context>com.atlassian.jira.gadgets:common-lite</context>
If that general context doesn't work, you can look for which exact contexts are #requireContext'ed by the specific gadget you are trying to use, and then make sure that your web-resource is listed in that context. You can figure this out by looking at the gadget's XML and then searching for the #requireContext. (You can find the gadget XMLs inside $JIRA_DATA/plugins/.osgi-plugins/transformed-plugins/jira-gadgets-plugin-*.jar)
Starting with JIRA 7 the Answer of Scott Dudley is no longer working. #requireContext was replaced with a #requireResource within the Atlassian sources of this gadget.
As it affects our plugin, I created a Improvement Request to make that possible again
I have a framework with Webdriver+testng.
I want the result of all the methods i have run, in html format with their status and screen capture link.
please let me know whts the way of doing this.
Thanks in advance.
You can make use of this, But this only for BDD styled stories. If you are looking for a plain web driver scripts, try this selenium loggers.
TestNG creates a report in HTML format in 'test-output' folder (or, if you're using testNG plugin in Eclipse, you can specify the path in Window-Preferences-testNG). The folder is created and rewritten after each run. Look for index.html there.
You can add custom information there using Reporter.log (from org.testng.Reporter), the information can be found after 'Reporter output' link in the report. So basically all you need is an #AfterMethod which will take the screenshot and embed it into the log. This discussion may help.
Each time I have a .less syntax error I have to open the exact less file in browser in order to view the error message.
I was wondering if it is possible to somehow output .less errors to console so I can view all errors directly in the Console log when - for example - using Firebug?
I'm using dotless. I tried setting the webconfig to (by following info this link )
<dotless minifyCss="false" cache="false" web="false" log="error" logger="dotless.Core.Loggers.ConsoleLogger" />
but seems like I'm missing something - not really sure, if I understand the logger correctly.
Also the info about logger on the site states:
Can be set but then gets overidden by the "web" boolean
Does this mean that I must not set the web boolean? How could I make this work?
EDIT AFTER FEW ANSWERS
Ok so I figured out that in order to achieve this result I need to extend dotless.Core.Loggers with my own logger class. Have no idea how to do it but will report back once I get it figured out.
If you're using Visual Studio, you can try using Web Essentials extension, which is free on the gallery. This add-in compiles .LESS on save, and gives you the errors in the output console. You can also see the compiled .css side-by-side as as you edit the .LESS.
It looks like a similar question has already been answered here
In any case, looking at the link you indicated, it makes it clear that you need to set web="true" or miss it out as it seems to be the default.
ConsoleLogger means the Console, not the browser console.
So, you need to set the logger to the one you prefer that works with HTTP (definitely not Console though).