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

steps and screenshots not added in the serenity report after the successful test execution #2913

Closed
Manasr1 opened this issue Sep 4, 2022 · 3 comments

Comments

@Manasr1
Copy link

Manasr1 commented Sep 4, 2022

  • Running test on chrome browser Version 105.0.5195.102 (Official Build) (64-bit) ,( i have not fire fox browser on my machine supported by serenity by default)

  • Did not add chrome binary

  • in the serenity.properties , i have added webdriver.driver=chrome

  •     <serenity.version>3.3.2</serenity.version>
      <serenity.maven.version>3.3.2</serenity.maven.version>
    
  • added @steps annotation in the test class

  • Test runs successfully
    Issues -
    Test passes but the console shows 'java.net.SocketException: Connection reset'
    There is no screenshot and step added by default

image
image
image
image

@wakaleo
Copy link
Member

wakaleo commented Sep 5, 2022

Are the screenshots enabled?

@Manasr1
Copy link
Author

Manasr1 commented Sep 6, 2022

No, screenshots has not be enabled in the serenity.conf/serenity.properties file. But I was following your Udemy serenity-junit-starter course and in that course i did not see anywhere you enabled the screenshots. also @step was coming bydefault in the serenity report just by adding @steps annotation in the test class. But in my serenity report i did not see @step and snapshot are getting added

@wakaleo
Copy link
Member

wakaleo commented Nov 3, 2022

The starter project setup may have changed since the course was recorded - by default screenshots are disabled, but you can enable them by uncommenting the serenity.take.screenshots option in serenity.conf

@wakaleo wakaleo closed this as completed Nov 3, 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

2 participants