Ask Sawal

Discussion Forum
Notification Icon1
Write Answer Icon
Add Question Icon

Kimm pzrm




Posted Questions


No Question(s) posted yet!

Posted Answers



Answer


— Quit smoking if you're a smoker. · Exercise consistently. · Control your blood sugar if you have diabetes with both lifestyle changes and.


Answer is posted for the following question.

How to overcome erectile dysfunction in diabetes?

Answer


The old Cold War maxim of " MAD " - Mutually Assured Destruction - still applies "Putin," said a senior British military source on Tuesday,


Answer is posted for the following question.

Who is russia mad at?

Answer


1
There are different type of Cucumber reports. 
2
1. Pretty Report: It only generates a very
3
basic report on IntelliJ/Eclipse console.
4
We can make the console output more
5
readable by using 
6
monochrome = true under @CucumberOptions.
7
2. Cucumber Default Report: Generates 
8
cucumber default reports under target
9
directory. It also works as html format
10
but it is very basic type of html reports.
11
Only shows the test steps and which
12
is passed or failed. There is no pie chart,
13
percentage or any fancy chart. 
14
3. Json Report: It does not make sense
15
to read this json report for us.
16
It is mostly used from any other 
17
computer based system such as Jenkins
18
or Cucumber HTML Report. Jenkins and
19
Cucumber HTML reports use this 'json' 
20
file in order to generate their own reports. 
21
You can see; how those reports are
22
used within the @CucumberOptions.
23
@RunWith(Cucumber.class)
24
@CucumberOptions(
25
        plugin = {
26
                json:target/cucumber.json,  
27
                    // ==> Generates json format report
28
                html:target/cucumber-reports, 
29
                   // ==> Generates cucumber default reports
30
                pretty                      
31
                   // ==> Generates pretty report on the console
32
        },
33
        monochrome = true,                   
34
               // ==> Makes the pretty report more readable
35
        features = src/test/resources/features,
36
        glue = com/bookit/step_definitions,
37
        dryRun = false,
38
        tags = @api and @print_room_names
39
)
40
4. Cucumber HTML Reports: It is also called 
41
as Cucumber JVM Report. It provides very 
42
detailed reports for each tag/step/scenario
43
with very fancy pie charts, bar charts,
44
tables and percentage of the pass/fail ratio. 
45
This report uses the json report to generate
46
its own report and converts into different format.
47
It means that we cannot generate Cucumber
48
HTML Report without json in our @CucumberOptions.
49
In order to generate this report, we have to
50
add a plugin into pom.xml file. 
51
Also, we have to use the 'verify' goal of 
52
the maven lifecycle in <phase> tag under plugin.
53
Which means that we have to click verify on
54
top right of the IntelliJ window under Maven
55
Life Cycle and run as 'verify' in order to
56
get the new report.
57
(Or we can use terminal/command line with 'mvn verify').
58
Because 'mvn verify' generates the json 
59
report and the Cucumber HTML Report uses
60
this json. See how it is used in pom.xml.
61
    <plugin>
62
        <groupId>net.masterthought</groupId>
63
        <artifactId>maven-cucumber-reporting</artifactId> ====> Comes from mvn repository
64
        <version>5.0.0</version>
65
        <executions>
66
            <execution>
67
                <id>execution</id>
68
                <phase>verify</phase> ======> choose verify in order to generate json report
69
                <goals>
70
                    <goal>generate</goal>
71
                </goals>
72
                <configuration>
73
                    <projectName>Bookit Automation</projectName>
74
                    <outputDirectory>${project.build.directory}</outputDirectory>  ===> ***
75
                    <inputDirectory>${project.build.directory}</inputDirectory>         
76
                    <jsonFiles>
77
                        <param>**/cucumber*.jsonparam>
78
                    </jsonFiles>
79
                </configuration>
80
            </execution>
81
        </executions>
82
    </plugin>
83
*** it means report files will be generated 
84
directly under the target directory

Answer is posted for the following question.

How to reporting (PHP Scripting Language)

Answer


Best Burgers in College Station, Texas: Find 4376 Tripadvisor traveller reviews of THE BEST Burgers and search by price, location, and more


Answer is posted for the following question.

What is the best burger in college station?

Answer


1
import netCDF4
2
ds = netCDF4.Dataset(/path_to_file/file_name.nc)

Answer is posted for the following question.

How to how to open a dataset in netcdf4 (Python Programing Language)


Wait...