Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to see the status of each scenario as pass or fail in the console itself rather than waiting for the report. #2386

Closed
sudhir-kunchakuri opened this issue Feb 11, 2021 · 4 comments

Comments

@sudhir-kunchakuri
Copy link

Background : In One Feature file there are 10 scenarios and now i am running those scenarios with the help of tag.
When i execute it sometimes some scenarios get failed and i can know only the failed scenarios once the report got generated.
Now my question is, is there any way to see the status of each scenario as pass or fail in the console itself rather than waiting for the report.

Please let me know inorder to acheive it what code i have to add in any config file or add any dependency or someother thing..

@globalworming
Copy link
Collaborator

try https://serenity-bdd.github.io/theserenitybook/latest/serenity-system-properties.html#_serenity_logging in your serenity.properties

serenity.logging=VERBOSE

@sudhir-kunchakuri
Copy link
Author

I have mentioned like this in my Serenity Config file
image

Now i have ran the scripts with one tag which runs two scenarios and i cant see any execution status of the scenario in console.
Can you let me know what need to be done more..

------- Below is the Console log -------

11:32:30: Executing tasks 'clean build -Denvironment=sit -Dtags="Facility-Search-By-Reference"'...

Task :clearReports
Task :clean
Task :compileJava
Task :processResources NO-SOURCE
Task :classes
Task :jar
Task :assemble
Task :compileTestJava
Task :processTestResources
Task :testClasses
Task :test
Picked up JAVA_TOOL_OPTIONS: -agentpath:"C:\windows\system32\Aternity\Java\JavaHookLoader.dll"="C:\ProgramData\Aternity\hooks" -agentpath:"C:\WINDOWS\system32\Aternity\Java\JavaHookLoader.dll"="C:\ProgramData\Aternity\hooks"

Task :aggregate
Generating Serenity Reports for mdm-cmd-automation to directory file:///C:/Users/sudhir/Automation%20New%20Sudhir/mdm-cmd-automation/target/site/serenity/

Task :checkOutcomes
Checking serenity results for mdm-cmd-automation in directory C:\Users\sudhir\Automation New Sudhir\mdm-cmd-automation\target\site\serenity

Task :check
Task :build

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 1m 30s
9 actionable tasks: 9 executed
11:34:00: Tasks execution finished 'clean build -Denvironment=sit -Dtags="Facility-Search-By-Reference"'.

@wakaleo
Copy link
Member

wakaleo commented Feb 15, 2021

This might be a gradle question - you need to configure gradle to print the output of the test task to the console, which it doesn't do natively I think.

@sudhir-kunchakuri
Copy link
Author

I have added this in my build.gradle file

image

I can see the output like this in my console:

image

I feel i have got my answer with the above implementation but again just want to know is it the right way of implementing it or else please do let me know the correct way..

@wakaleo wakaleo closed this as completed Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants