С Junit всё просто. В Maven ставим это и всё ок.
<plugins>
То же самое с Cucumber не проходит. Всё время 1 Thread...
Отправлено 01 апреля 2016 - 17:17
С Junit всё просто. В Maven ставим это и всё ок.
<plugins>
То же самое с Cucumber не проходит. Всё время 1 Thread...
Отправлено 02 апреля 2016 - 09:50
при чём тут селениум?
Отправлено 04 апреля 2016 - 13:26
при чём тут селениум?
Отправлено 04 апреля 2016 - 13:48
C огурцом особенно не связывался, поэтому не могу ничего посоветовать, но селениум тут точно ни при чём. За параллельный запуск он не отвечает. А гуглить пытались?
Вот какой-то пример сразу https://opencredo.co...ts-in-parallel/
Отправлено 04 апреля 2016 - 14:01
C огурцом особенно не связывался, поэтому не могу ничего посоветовать, но селениум тут точно ни при чём. За параллельный запуск он не отвечает. А гуглить пытались?
Вот какой-то пример сразу https://opencredo.co...ts-in-parallel/
Этот вариант похоже единственный в инете. Именно по этой ссылке всё устарело. Танцую с бубном второй день вокруг этой статьи. :)
Вот его обновление:
https://opencredo.co...test-execution/
Также код:
https://github.com/o...tion-quickstart
Отправлено 04 апреля 2016 - 14:16
Отправлено 04 апреля 2016 - 14:19
Отправлено 06 июля 2016 - 13:34
Всем привет,
вопрос по поводу параллельного запуска тестов на cucumbere.
Как сделать одновременный запуск двух разных тестов из разных features?
Отправлено 06 июля 2016 - 13:42
Всем привет,
вопрос по поводу параллельного запуска тестов на cucumbere.
Как сделать одновременный запуск двух разных тестов из разных features?
Так выше же всё рассказано. Через профайл Maven. Всё работает.
По этому примеру всё из папки с Фичами собирается в кучу и запускается. Сколько файлов с Фичами, столько потоков.
Отправлено 07 июля 2016 - 07:33
У меня есть две (feateres)
@runTest
Feature: Accreditation Individual Entrepreneur
@runTest
Feature: User Create Auction
запуск произвожу через командную строку:
mvn test -Dcucumber.options="src/test/Resorses/Features --tags @runTest"
он мне запускает параллельно сценарий из Feature: Accreditation Individual Entrepreneur (в двух браузерах)
и после завершения из Feature: User Create Auction
а я можно сделать так чтоб одновременно запускался сценарий из Feature: Accreditation Individual Entrepreneur (в одном окне браузере)
и Feature: User Create Auction в другом окне
Отправлено 07 июля 2016 - 13:13
У меня есть две (feateres)
@runTest
Feature: Accreditation Individual Entrepreneur@runTest
Feature: User Create Auction
запуск произвожу через командную строку:
mvn test -Dcucumber.options="src/test/Resorses/Features --tags @runTest"
он мне запускает параллельно сценарий из Feature: Accreditation Individual Entrepreneur (в двух браузерах)
и после завершения из Feature: User Create Auction
а я можно сделать так чтоб одновременно запускался сценарий из Feature: Accreditation Individual Entrepreneur (в одном окне браузере)
и Feature: User Create Auction в другом окне
Можешь дать структуру папки с фичами? И сами фичи?
Отправлено 07 июля 2016 - 13:55
В архиве features и структура
Отправлено 07 июля 2016 - 14:41
запусти без указания тагов и папки с тестами. В плагине в pom.xml таги и папка с фичами уже указаны
просто
mvn clean test
Отправлено 07 июля 2016 - 14:48
Отправлено 07 июля 2016 - 15:21
Ух ёпт. У тебя эти таги не указаны!Запиши: <tags>@runTest</tags><configuration><!-- Mandatory --><!-- comma separated list of package names to scan for glue code --><glue>ru.StepDefinitions</glue><!-- These are the default values --><!-- Where to output the generated Junit tests --><outputDirectory>${project.build.directory}/generated-test-sources/cucumber</outputDirectory><!-- The diectory containing your feature files. --><featuresDirectory>src/test/Resorses/Features/</featuresDirectory><!-- Directory where the cucumber report files shall be written --><cucumberOutputDir>target/cucumber-parallel</cucumberOutputDir><!-- comma separated list of output formats --><format>html</format><!-- CucumberOptions.strict property --><strict>true</strict><!-- CucumberOptions.monochrome property --><monochrome>true</monochrome><!-- The tags to run, maps to CucumberOptions.tags property --><tags></tags><!-- If set to true, only feature files containing the requiredtags shall be generated. --><!-- Excluded tags (~@notMe) are ignored. --><filterFeaturesByTags>true</filterFeaturesByTags></configuration>
Отправлено 07 июля 2016 - 15:27
Ух ёпт. У тебя эти таги не указаны!Запиши: <tags>@runTest</tags><configuration><!-- Mandatory --><!-- comma separated list of package names to scan for glue code --><glue>ru.StepDefinitions</glue><!-- These are the default values --><!-- Where to output the generated Junit tests --><outputDirectory>${project.build.directory}/generated-test-sources/cucumber</outputDirectory><!-- The diectory containing your feature files. --><featuresDirectory>src/test/Resorses/Features/</featuresDirectory><!-- Directory where the cucumber report files shall be written --><cucumberOutputDir>target/cucumber-parallel</cucumberOutputDir><!-- comma separated list of output formats --><format>html</format><!-- CucumberOptions.strict property --><strict>true</strict><!-- CucumberOptions.monochrome property --><monochrome>true</monochrome><!-- The tags to run, maps to CucumberOptions.tags property --><tags></tags><!-- If set to true, only feature files containing the requiredtags shall be generated. --><!-- Excluded tags (~@notMe) are ignored. --><filterFeaturesByTags>true</filterFeaturesByTags></configuration>
В секцию добавил <tags>"@runTest"</tags>Вот такая ошибка у меня возникла, которую я победить не смог ((ошибка была и ранее, когда настраивал по вашему сценариюD:\git\AQC\test>mvn clean test[INFO] Scanning for projects...[WARNING][WARNING] Some problems were encountered while building the effective model for ru:rts-tender:jar:1.0-SNAPSHOT[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-surefire-plugin @ line 104, column 21[WARNING][WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.[WARNING][WARNING] For this reason, future Maven versions might no longer support building such malformed projects.[WARNING][INFO][INFO] ------------------------------------------------------------------------[INFO] Building rts-tender 1.0-SNAPSHOT[INFO] ------------------------------------------------------------------------[INFO][INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ rts-tender ---[INFO] Deleting D:\git\AQC\test\target[INFO][INFO] --- cucumber-jvm-parallel-plugin:1.3.0:generateRunners (generateRunners) @ rts-tender ---[INFO] Adding D:\git\AQC\test\target\generated-test-sources\cucumber to test-compile source root[INFO][INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ rts-tender ---[INFO] Using 'UTF-8' encoding to copy filtered resources.[INFO] skip non existing resourceDirectory D:\git\AQC\test\src\main\resources[INFO][INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ rts-tender ---[INFO] Changes detected - recompiling the module![INFO] Compiling 111 source files to D:\git\AQC\test\target\classes[INFO] /D:/git/AQC/test/src/main/java/Helpers/UserProfiles/SupplierLegalEntityProfile.java: Some input files use unchecked or unsafe operations.[INFO] /D:/git/AQC/test/src/main/java/Helpers/UserProfiles/SupplierLegalEntityProfile.java: Recompile with -Xlint:unchecked for details.[INFO][INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ rts-tender ---[INFO] Using 'UTF-8' encoding to copy filtered resources.[INFO] skip non existing resourceDirectory D:\git\AQC\test\src\test\resources[INFO][INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ rts-tender ---[INFO] Changes detected - recompiling the module![INFO] Compiling 11 source files to D:\git\AQC\test\target\test-classes[INFO][INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ rts-tender ----------------------------------------------------------T E S T S-------------------------------------------------------None of the features at [classpath:Features/AccreditationEntrepreneur.feature] matched the filters: [@runTest]None of the features at [classpath:Features/FullAuction.feature] matched the filters: [@runTest]0 Scenarios0 Steps0m0,000s0 Scenarios0 Steps0m0,000sResults :Tests run: 0, Failures: 0, Errors: 0, Skipped: 0[INFO] ------------------------------------------------------------------------[INFO] BUILD SUCCESS[INFO] ------------------------------------------------------------------------[INFO] Total time: 3.258 s[INFO] Finished at: 2016-07-07T18:14:18+03:00[INFO] Final Memory: 26M/311M[INFO] ------------------------------------------------------------------------
было такое. Проблема решилась перемещением файлов фичей в первую после resources папку (не далее). и переименуй всё в lowercase. Плагин капризный! :)
\src\test\resources\cucumber\TestCase.feature
Отправлено 08 июля 2016 - 11:47
Ух ёпт. У тебя эти таги не указаны!Запиши: <tags>@runTest</tags><configuration><!-- Mandatory --><!-- comma separated list of package names to scan for glue code --><glue>ru.StepDefinitions</glue><!-- These are the default values --><!-- Where to output the generated Junit tests --><outputDirectory>${project.build.directory}/generated-test-sources/cucumber</outputDirectory><!-- The diectory containing your feature files. --><featuresDirectory>src/test/Resorses/Features/</featuresDirectory><!-- Directory where the cucumber report files shall be written --><cucumberOutputDir>target/cucumber-parallel</cucumberOutputDir><!-- comma separated list of output formats --><format>html</format><!-- CucumberOptions.strict property --><strict>true</strict><!-- CucumberOptions.monochrome property --><monochrome>true</monochrome><!-- The tags to run, maps to CucumberOptions.tags property --><tags></tags><!-- If set to true, only feature files containing the requiredtags shall be generated. --><!-- Excluded tags (~@notMe) are ignored. --><filterFeaturesByTags>true</filterFeaturesByTags></configuration>
В секцию добавил <tags>"@runTest"</tags>Вот такая ошибка у меня возникла, которую я победить не смог ((ошибка была и ранее, когда настраивал по вашему сценариюD:\git\AQC\test>mvn clean test[INFO] Scanning for projects...[WARNING][WARNING] Some problems were encountered while building the effective model for ru:rts-tender:jar:1.0-SNAPSHOT[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-surefire-plugin @ line 104, column 21[WARNING][WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.[WARNING][WARNING] For this reason, future Maven versions might no longer support building such malformed projects.[WARNING][INFO][INFO] ------------------------------------------------------------------------[INFO] Building rts-tender 1.0-SNAPSHOT[INFO] ------------------------------------------------------------------------[INFO][INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ rts-tender ---[INFO] Deleting D:\git\AQC\test\target[INFO][INFO] --- cucumber-jvm-parallel-plugin:1.3.0:generateRunners (generateRunners) @ rts-tender ---[INFO] Adding D:\git\AQC\test\target\generated-test-sources\cucumber to test-compile source root[INFO][INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ rts-tender ---[INFO] Using 'UTF-8' encoding to copy filtered resources.[INFO] skip non existing resourceDirectory D:\git\AQC\test\src\main\resources[INFO][INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ rts-tender ---[INFO] Changes detected - recompiling the module![INFO] Compiling 111 source files to D:\git\AQC\test\target\classes[INFO] /D:/git/AQC/test/src/main/java/Helpers/UserProfiles/SupplierLegalEntityProfile.java: Some input files use unchecked or unsafe operations.[INFO] /D:/git/AQC/test/src/main/java/Helpers/UserProfiles/SupplierLegalEntityProfile.java: Recompile with -Xlint:unchecked for details.[INFO][INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ rts-tender ---[INFO] Using 'UTF-8' encoding to copy filtered resources.[INFO] skip non existing resourceDirectory D:\git\AQC\test\src\test\resources[INFO][INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ rts-tender ---[INFO] Changes detected - recompiling the module![INFO] Compiling 11 source files to D:\git\AQC\test\target\test-classes[INFO][INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ rts-tender ----------------------------------------------------------T E S T S-------------------------------------------------------None of the features at [classpath:Features/AccreditationEntrepreneur.feature] matched the filters: [@runTest]None of the features at [classpath:Features/FullAuction.feature] matched the filters: [@runTest]0 Scenarios0 Steps0m0,000s0 Scenarios0 Steps0m0,000sResults :Tests run: 0, Failures: 0, Errors: 0, Skipped: 0[INFO] ------------------------------------------------------------------------[INFO] BUILD SUCCESS[INFO] ------------------------------------------------------------------------[INFO] Total time: 3.258 s[INFO] Finished at: 2016-07-07T18:14:18+03:00[INFO] Final Memory: 26M/311M[INFO] ------------------------------------------------------------------------
было такое. Проблема решилась перемещением файлов фичей в первую после resources папку (не далее). и переименуй всё в lowercase. Плагин капризный! :)
\src\test\resources\cucumber\TestCase.feature
привет, спасибо огромное помогло ))
Отправлено 08 июля 2016 - 13:20
Отправлено 04 февраля 2019 - 09:49
Есть какое-то решение для Gradle-Selenium-Cucumber ?
0 пользователей, 1 гостей, 0 анонимных