serenity with jbehave - JBehave reports do not have any style sheet formating - serenity-bdd

for test automation we are using serenity with jbehave.
when we run the appropriate maven goal from Eclipse, it creates proper serenity reports.
Issue - JBehave reports created under "target/JBehave" folder are without any formatting. there are no table boundries, no JBehave title image at the top and failed scenarios are not shows in red font.
Is there any way to change the POM.xml or change the code so that JBehave report (with proper formatting) is created along with serenity reports.

Related

How to test Word Marco and PDFs with SpecFlow

I have a Macro enabled MS Word document and I want to test it with SpecFlow. What is the best way to do this?
The tests would involve opening the Word document and interacting with a dialog box generated by VBA. The test would need to read and assert the text of messages displayed on the dialog box. The tests would also need to read and assert the content of new PDF files created by the Macro.

Is possible to change JetBrains IDE editor background color by scope/folder

Problem:
I'm working on a modular project where different folders represents different components of the application. I want to identify where I'am easily.
My idea:
I created two scopes for the components folders, and I set different colours to them:
Question:
It would be nice to be able to change the background color of the text editor too and not only the tabs, and project explorer.
Is it possible to do it with any plugin or script?
Is there any other way to identify in which module I'm?

How can i attach screenshots in surefire report?

I can generate the surefire-report and I can take test's screenshots. Is there something that i can do to generate the surefire-report with screenshots? Or create a link in the report to the screenshots?
Thanks!

How to generate IntelliJ JUnit json auto report?

I'm new with IntelliJ. I have run my test cases with JUnit but the report is not generate automatically. There is a button to generate the JUnit report manually:
I would like obtain this report automatically, not manually, and with .json format to generate the allure report. But I can't find the action.
Thank you in advance.

Use IntelliJ code style in Checkstyle

Essentially, I want to export the code style settings from IntelliJ (the default one is fine) and use them in Checkstyle. (It's for a maven build validation kind of thing that is already setup, but we want to use IntelliJ's code style, not Sun's or Googles)
Step one should be to export the IntelliJ code style. Easier said than done, it seems.
Now, I know there is a lot of material on this on both SO and other places, but I simply cannot find the code style xml file anywhere, not even after using "copy to project" or "save as..." in the IntelliJ settings code style dialog.
I also tried exporting code style through the IntelliJ File menu, but it will only export the code style from areas that have changed (eg. change tab space from 4 to 2 and it will only export the "OTHER_INDENT_OPTIONS" part of the code style).
I should add that I'm using IDEA 14.1.4.
Is it possible to export the complete IntelliJ code style?
Unfortunately it is not possible to do what you want for (at least) three reasons, the first two of which you have already raised:
While is possible to export a code style file from Intellij IDEA using File->Settings->Code Style->Java->{Click the Settings icon}->Select Export... from the popup menu, that exported XML file only contains the changes you have made from the default settings.
Those exported settings are in a format that is only meaningful to Intellij, so even if you could export every single Java code style setting to an XML file, you would then have to massively edit that file to make it meaningful to CheckStyle.
Finally, note that there is an open request for Intellij to do exactly what you want. See IDEA-149529:
Current export functionality for Code Styles is lacking. Only useful
for other users of IntelliJ or as a backup. Only exports the diff
between user defined settings and the built-in default. This makes it
very difficult to produce a matching style for other
formatting/beautification tools.
It would be helpful if the export had the option of exports ALL the
settings IDEA uses.
However, there is an alternative approach. Instead of providing an Intellij IDEA file to Checkstyle, provide a Checkstyle file to Intellij IDEA...
Install the Checkstyle plugin, and then open two sets of one or more duplicated files in Intellij IDEA, one set configured to use IDEA's formatting and one set configured to Checkstyle's formatting.
Repeatedly tweak the Checkstyle settings until its opened file(s) are formatted to conform to the corresponding files formatted by IDEA. When the sets of files match create a Checkstyle XML rules file. Tedious, but only a one time activity.
Finally, you can then import your customized CheckStyle XML rules file into Intellij Idea, using Import Scheme -> CheckStyle Configuration as as shown in the screen shot below (if, and only if, you have installed the CheckStyle-IDEA plugin). This functionality did not exist when the OP was created. For more details see the following bug report: IDEA-61520 Codestyle from Checkstyle and in particular the response from JetBrains dated 2/8/16.
See also:
Intellij IDEA bug Configure code style from checkstyle #126
SO post IntelliJ IDEA code format from checkstyle configuration
I was looking for an answer to this too. I suppose you want to add it to your build process like I do. Since I saw no value in enforcing something that can't be automated, I settled on (haven't implemented yet) executing the style formatter as a pre-commit hook (I use git) https://www.jetbrains.com/help/idea/command-line-formatter.html against all files in the changelist. I use the defaults too, and this would be enough.
Since I don't have any customizations, I would not know if an exported code style xml would run the default in addition to the diff in the xml. Either way, there's no point in enforcing code style rules that can't be automated.