{"action":"created","issue":{"url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/844","repository_url":"https://api.github.com/repos/serenity-bdd/serenity-core","labels_url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/844/labels{/name}","comments_url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/844/comments","events_url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/844/events","html_url":"https://github.com/serenity-bdd/serenity-core/issues/844","id":243751635,"node_id":"MDU6SXNzdWUyNDM3NTE2MzU=","number":844,"title":"No screenshots are captured by serenity after test run","user":{"login":"robinbobin25","id":11983594,"node_id":"MDQ6VXNlcjExOTgzNTk0","avatar_url":"https://avatars1.githubusercontent.com/u/11983594?v=4","gravatar_id":"","url":"https://api.github.com/users/robinbobin25","html_url":"https://github.com/robinbobin25","followers_url":"https://api.github.com/users/robinbobin25/followers","following_url":"https://api.github.com/users/robinbobin25/following{/other_user}","gists_url":"https://api.github.com/users/robinbobin25/gists{/gist_id}","starred_url":"https://api.github.com/users/robinbobin25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robinbobin25/subscriptions","organizations_url":"https://api.github.com/users/robinbobin25/orgs","repos_url":"https://api.github.com/users/robinbobin25/repos","events_url":"https://api.github.com/users/robinbobin25/events{/privacy}","received_events_url":"https://api.github.com/users/robinbobin25/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2017-07-18T15:13:11Z","updated_at":"2018-06-27T20:55:10Z","closed_at":"2017-07-19T11:46:37Z","author_association":"NONE","body":"I have serenity.properties file with such configurations:\r\n```\r\nserenity.take.screenshots = BEFORE_AND_AFTER_EACH_STEP\r\nwebdriver.driver = \"chrome\"\r\n```\r\n\r\nAlso I have PageObjects, Steps layer and Tests module\r\n\r\nMy Gradle build file looks like:\r\n```\r\ngroup 'com.am'\r\nversion '1.0-SNAPSHOT'\r\n\r\napply plugin: 'java'\r\napply plugin: 'idea'\r\napply plugin: 'net.serenity-bdd.aggregator'\r\n\r\nsourceCompatibility = 1.8\r\ntargetCompatibility = 1.8\r\n\r\nrepositories {\r\n    mavenCentral()\r\n    jcenter()\r\n}\r\n\r\nbuildscript {\r\n    repositories {\r\n        mavenLocal()\r\n        jcenter()\r\n    }\r\n    dependencies {\r\n        classpath(\"net.serenity-bdd:serenity-gradle-plugin:1.4.0\")\r\n    }\r\n}\r\n\r\ndependencies {\r\n    compile 'net.serenity-bdd:serenity-core:1.4.0'\r\n    compile 'net.serenity-bdd:serenity-junit:1.4.0'\r\n    compile 'junit:junit:4.12'\r\n    compile 'org.assertj:assertj-core:1.7.0'\r\n    compile 'org.slf4j:slf4j-simple:1.7.7'\r\n    compile group: 'net.serenity-bdd', name: 'serenity-rest-assured', version: '1.4.0'\r\n    compile group: 'org.jsoup', name: 'jsoup', version: '1.8.3'\r\n    compile 'ru.yandex.qatools.htmlelements:htmlelements-all:1.17'\r\n}\r\n\r\ngradle.startParameter.continueOnFailure = true\r\n```\r\n\r\nI run tests with simple command\r\n`gradle clean test aggregate`\r\n\r\nReport is generated but without any screenshots.\r\n\r\nMy report looks like (there is no screenshots in it):\r\n![screenshot_2](https://user-images.githubusercontent.com/11983594/28324607-80a08098-6be4-11e7-8496-d5f8520a0b2b.png)\r\n\r\nCould anybody please give an advice where I am wrong? I think it's some simple trick but I can't understand which is... In all manuals it says that serenity makes screenshots by default but I don't have any with or without serenity properties."},"comment":{"url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/comments/400825921","html_url":"https://github.com/serenity-bdd/serenity-core/issues/844#issuecomment-400825921","issue_url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/844","id":400825921,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDgyNTkyMQ==","user":{"login":"kwbhatti","id":34312788,"node_id":"MDQ6VXNlcjM0MzEyNzg4","avatar_url":"https://avatars1.githubusercontent.com/u/34312788?v=4","gravatar_id":"","url":"https://api.github.com/users/kwbhatti","html_url":"https://github.com/kwbhatti","followers_url":"https://api.github.com/users/kwbhatti/followers","following_url":"https://api.github.com/users/kwbhatti/following{/other_user}","gists_url":"https://api.github.com/users/kwbhatti/gists{/gist_id}","starred_url":"https://api.github.com/users/kwbhatti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwbhatti/subscriptions","organizations_url":"https://api.github.com/users/kwbhatti/orgs","repos_url":"https://api.github.com/users/kwbhatti/repos","events_url":"https://api.github.com/users/kwbhatti/events{/privacy}","received_events_url":"https://api.github.com/users/kwbhatti/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T20:55:10Z","updated_at":"2018-06-27T20:55:10Z","author_association":"NONE","body":"I have been added screenshots in any way possible. \r\nI also have a serenity.properties file in project root:\r\nserenity.take.screenshots=FOR_EACH_ACTION\r\nserenity.take.screenshots=BEFORE_AND_AFTER_EACH_STEP\r\nserenity.take.screenshots=AFTER_EACH_STEP\r\nQuestion here would be does serenity already knows where to look for the file, or do I need to define anything in my pom.xml file \r\npom.xml:\r\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\">\r\n  <modelVersion>4.0.0</modelVersion>\r\n  <groupId>my-framework</groupId>\r\n  <artifactId>my-framework</artifactId>\r\n  <version>0.0.1-SNAPSHOT</version>\r\n  <name>name</name>\r\n  <description>my project</description>\r\n  \r\n\t<properties>\r\n        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r\n        <serenity.version>1.9.20</serenity.version>\r\n        <serenity.maven.version>1.9.24</serenity.maven.version>\r\n        <serenity.cucumber.version>1.9.8</serenity.cucumber.version>\r\n        <encoding>UTF-8</encoding>\r\n        <tags></tags>\r\n        <parallel.tests>1</parallel.tests>\r\n        <webdriver.base.url></webdriver.base.url>\r\n    </properties>\r\n\r\n    <repositories>\r\n        <repository>\r\n      <id>central</id>\r\n      <name>Central Repository</name>\r\n      <url>http://repo.maven.apache.org/maven2</url>\r\n      <layout>default</layout>\r\n      <snapshots>\r\n        <enabled>false</enabled>\r\n      </snapshots>\r\n    </repository>\r\n    </repositories>\r\n    <pluginRepositories>\r\n       <pluginRepository>\r\n      <id>central</id>\r\n      <name>Central Repository</name>\r\n      <url>http://repo.maven.apache.org/maven2</url>\r\n      <layout>default</layout>\r\n      <snapshots>\r\n        <enabled>false</enabled>\r\n      </snapshots>\r\n      <releases>\r\n        <updatePolicy>never</updatePolicy>\r\n      </releases>\r\n    </pluginRepository>\r\n    </pluginRepositories>\r\n\r\n    <dependencies>\r\n    <dependency>\r\n\t\t    <groupId>io.rest-assured</groupId>\r\n\t\t    <artifactId>rest-assured</artifactId>\r\n\t\t    <version>3.1.0</version>\r\n\t\t    <scope>test</scope>\r\n\t\t</dependency>\r\n        <dependency>\r\n            <groupId>org.slf4j</groupId>\r\n            <artifactId>slf4j-simple</artifactId>\r\n            <version>1.7.7</version>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>net.serenity-bdd</groupId>\r\n            <artifactId>serenity-core</artifactId>\r\n            <version>${serenity.version}</version>\r\n            <scope>test</scope>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>net.serenity-bdd</groupId>\r\n            <artifactId>serenity-junit</artifactId>\r\n            <version>${serenity.version}</version>\r\n            <scope>test</scope>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>net.serenity-bdd</groupId>\r\n            <artifactId>serenity-screenplay</artifactId>\r\n            <version>${serenity.version}</version>\r\n            <scope>test</scope>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>net.serenity-bdd</groupId>\r\n            <artifactId>serenity-screenplay-webdriver</artifactId>\r\n            <version>${serenity.version}</version>\r\n            <scope>test</scope>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>net.serenity-bdd</groupId>\r\n            <artifactId>serenity-cucumber</artifactId>\r\n            <version>${serenity.cucumber.version}</version>\r\n            <scope>test</scope>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>junit</groupId>\r\n            <artifactId>junit</artifactId>\r\n            <version>4.12</version>\r\n            <scope>test</scope>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>org.assertj</groupId>\r\n            <artifactId>assertj-core</artifactId>\r\n            <version>3.6.2</version>\r\n            <scope>test</scope>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>org.hamcrest</groupId>\r\n            <artifactId>hamcrest-all</artifactId>\r\n            <version>1.3</version>\r\n            <scope>test</scope>\r\n        </dependency>\r\n    </dependencies>\r\n    <build>\r\n        <plugins>\r\n            <plugin>\r\n                <groupId>org.apache.maven.plugins</groupId>\r\n                <artifactId>maven-surefire-plugin</artifactId>\r\n                <version>2.20</version>\r\n                <configuration>\r\n                    <skip>true</skip>\r\n                </configuration>\r\n            </plugin>\r\n            <plugin>\r\n                <artifactId>maven-failsafe-plugin</artifactId>\r\n                <version>2.20</version>\r\n                <configuration>\r\n                    <includes>\r\n                        <include>**/*Test.java</include>\r\n                        <include>**/Test*.java</include>\r\n                        <include>**/*TestSuite.java</include>\r\n                        <include>**/When*.java</include>\r\n                    </includes>\r\n                    <systemPropertyVariables>\r\n                        <!--  webdriver.base.url>${webdriver.base.url}</webdriver.base.url-->\r\n                    </systemPropertyVariables>\r\n                    <!--  parallel>classes</parallel>\r\n                    <threadCount>${parallel.tests}</threadCount>\r\n                    <forkCount>${parallel.tests}</forkCount-->\r\n                </configuration>\r\n                <executions>\r\n                    <execution>\r\n                        <goals>\r\n                            <goal>integration-test</goal>\r\n                            <goal>verify</goal>\r\n                        </goals>\r\n                    </execution>\r\n                </executions>\r\n            </plugin>\r\n            <plugin>\r\n                <groupId>org.apache.maven.plugins</groupId>\r\n                <artifactId>maven-compiler-plugin</artifactId>\r\n                <version>3.7.0</version>\r\n                <configuration>\r\n                    <source>1.8</source>\r\n                    <target>1.8</target>\r\n                </configuration>\r\n            </plugin>\r\n            <plugin>\r\n                <groupId>net.serenity-bdd.maven.plugins</groupId>\r\n                <artifactId>serenity-maven-plugin</artifactId>\r\n                <version>${serenity.maven.version}</version>\r\n                <configuration>\r\n                  <tags>${tags}</tags>\r\n                </configuration>\r\n                <executions>\r\n                    <execution>\r\n                        <id>serenity-reports</id>\r\n                        <phase>post-integration-test</phase>\r\n                        <goals>\r\n                            <goal>aggregate</goal>\r\n                        </goals>\r\n                    </execution>\r\n                </executions>\r\n            </plugin>\r\n        </plugins>\r\n    </build>\r\n\t\r\n</project>"}}
{"actor":{"display_login":"kwbhatti"}}