Перейти к содержимому

Фотография

Запуск Cucumber тестов в параллели?

Selenium Cucumber Maven

  • Авторизуйтесь для ответа в теме
Сообщений в теме: 18

#1 DennisM

DennisM

    Новый участник

  • Members
  • Pip
  • 55 сообщений
  • ФИО:Dennis M
  • Город:Ralegh NC, USA

Отправлено 01 апреля 2016 - 17:17

С Junit всё просто. В Maven ставим это и всё ок.

 

<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<includes>
<include>**/Test.java</include>
</includes>
<parallel>all</parallel>
<runOrder>random</runOrder>
<useUnlimitedThreads>true</useUnlimitedThreads>
<parallelOptimized>true</parallelOptimized>
<argLine>-Xmx512m -XX:MaxPermSize=256m</argLine>
</configuration>
</plugin>
 
</plugins>

 

То же самое с Cucumber не проходит. Всё время 1 Thread...


  • 0

#2 elvis

elvis

    Постоянный участник

  • Members
  • PipPipPip
  • 189 сообщений
  • Город:Tallinn


Отправлено 02 апреля 2016 - 09:50

при чём тут селениум?


  • 0

#3 DennisM

DennisM

    Новый участник

  • Members
  • Pip
  • 55 сообщений
  • ФИО:Dennis M
  • Город:Ralegh NC, USA

Отправлено 04 апреля 2016 - 13:26

при чём тут селениум?

Под огурцом запускается Селениум если что. В Maven запускает селениум maven-surefire-plugin. И именно тут возникают проблемы.
Неужели никто не пытался параллелить Selenium - Cucumber тесты?

  • 0

#4 elvis

elvis

    Постоянный участник

  • Members
  • PipPipPip
  • 189 сообщений
  • Город:Tallinn


Отправлено 04 апреля 2016 - 13:48

C огурцом особенно не связывался, поэтому не могу ничего посоветовать, но селениум тут точно ни при чём. За параллельный запуск он не отвечает. А гуглить пытались?

Вот какой-то пример сразу https://opencredo.co...ts-in-parallel/


  • 0

#5 DennisM

DennisM

    Новый участник

  • Members
  • Pip
  • 55 сообщений
  • ФИО:Dennis M
  • Город:Ralegh NC, USA

Отправлено 04 апреля 2016 - 14:01

C огурцом особенно не связывался, поэтому не могу ничего посоветовать, но селениум тут точно ни при чём. За параллельный запуск он не отвечает. А гуглить пытались?

Вот какой-то пример сразу https://opencredo.co...ts-in-parallel/

Этот вариант похоже единственный в инете. Именно по этой ссылке всё устарело. Танцую с бубном второй день вокруг этой статьи. :)

Вот его обновление:

https://opencredo.co...test-execution/

Также код:

https://github.com/o...tion-quickstart


  • 0

#6 DennisM

DennisM

    Новый участник

  • Members
  • Pip
  • 55 сообщений
  • ФИО:Dennis M
  • Город:Ralegh NC, USA

Отправлено 04 апреля 2016 - 14:16

Вообщем получилось вроде. 
С момента последней статьи они дописали плагин:
<dependency>
<groupId>com.github.temyers</groupId>
<artifactId>cucumber-jvm-parallel-plugin</artifactId>
<version>1.1.0</version>
</dependency>
 
 
В тестах огурца мы обязанны делать аннотации. По ним оно определяет что пускать в параллели.
Плагин генерит пачку:
Parallel01IT.class
Parallel02IT.class
Parallel03IT.class
...
Parallel**IT.class
 
Потом уже на эту пачку натравливаем maven-surefire-plugin
В котором параллелим:
<forkCount>5</forkCount>
 
И после таких наворотов похоже нам не нужен раннер класс для огурца. Оно само все навернёт...
 
В итоге билд выглядит так. Ключевые моменты я подсветил. Надеюсь это будет кому-нибудь полезно. :)
 
<build>
<plugins>
<plugin>
<groupId>com.github.temyers</groupId>
<artifactId>cucumber-jvm-parallel-plugin</artifactId>
<version>1.1.0</version>
<executions>
<execution>
<id>generateRunners</id>
<phase>validate</phase>
<goals>
<goal>generateRunners</goal>
</goals>
<configuration>
<!-- Mandatory -->
<!-- comma separated list of package names to scan for glue code -->
<glue>com.company.test.CucumberStepDefinition</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/resources/cucumber/</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>"@toTest"</tags>
<!-- If set to true, only feature files containing the required 
tags shall be generated. -->
<!-- Excluded tags (~@notMe) are ignored. -->
<filterFeaturesByTags>true</filterFeaturesByTags>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<forkCount>5</forkCount>
<reuseForks>true</reuseForks>
<includes>
<include>**/*IT.class</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>

  • 0

#7 DennisM

DennisM

    Новый участник

  • Members
  • Pip
  • 55 сообщений
  • ФИО:Dennis M
  • Город:Ralegh NC, USA

Отправлено 04 апреля 2016 - 14:19

Только после этого файл выглядит кучей мусора т.к. всё одновременно кидается в кучу. 
У них для этого запилен еще один плагин.
Пошел за бубном.. :)

  • 0

#8 eglu2015

eglu2015

    Новый участник

  • Members
  • Pip
  • 5 сообщений

Отправлено 06 июля 2016 - 13:34

Всем привет, 

вопрос по поводу параллельного запуска тестов на cucumbere.

Как сделать одновременный запуск двух разных тестов из разных features?


  • 0

#9 DennisM

DennisM

    Новый участник

  • Members
  • Pip
  • 55 сообщений
  • ФИО:Dennis M
  • Город:Ralegh NC, USA

Отправлено 06 июля 2016 - 13:42

Всем привет, 

вопрос по поводу параллельного запуска тестов на cucumbere.

Как сделать одновременный запуск двух разных тестов из разных features?

Так выше же всё рассказано. Через профайл Maven. Всё работает.

По этому примеру всё из папки с Фичами собирается в кучу и запускается. Сколько файлов с Фичами, столько потоков.


  • 0

#10 eglu2015

eglu2015

    Новый участник

  • Members
  • Pip
  • 5 сообщений

Отправлено 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 в другом окне

 

 

 

 

 

Прикрепленные файлы


  • 0

#11 DennisM

DennisM

    Новый участник

  • Members
  • Pip
  • 55 сообщений
  • ФИО:Dennis M
  • Город:Ralegh NC, USA

Отправлено 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 в другом окне

Можешь дать структуру папки с фичами? И сами фичи?


  • 0

#12 eglu2015

eglu2015

    Новый участник

  • Members
  • Pip
  • 5 сообщений

Отправлено 07 июля 2016 - 13:55

В архиве features и структура

Прикрепленные файлы

  • Прикрепленный файл  2016.07.07.zip   21,43К   27 Количество загрузок:

  • 0

#13 DennisM

DennisM

    Новый участник

  • Members
  • Pip
  • 55 сообщений
  • ФИО:Dennis M
  • Город:Ralegh NC, USA

Отправлено 07 июля 2016 - 14:41

запусти без указания тагов и папки с тестами. В плагине в pom.xml таги и папка с фичами уже указаны

просто

mvn clean test


  • 0

#14 DennisM

DennisM

    Новый участник

  • Members
  • Pip
  • 55 сообщений
  • ФИО:Dennis M
  • Город:Ralegh NC, USA

Отправлено 07 июля 2016 - 14:48

Ух ёпт. У тебя эти таги не указаны!
Запиши:    <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 required
                            tags shall be generated. -->
                            <!-- Excluded tags (~@notMe) are ignored. -->
                            <filterFeaturesByTags>true</filterFeaturesByTags>
                        </configuration>

  • 0

#15 eglu2015

eglu2015

    Новый участник

  • Members
  • Pip
  • 5 сообщений

Отправлено 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 required
                            tags 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 Scenarios
0 Steps
0m0,000s
 
 
0 Scenarios
0 Steps
0m0,000s
 
 
Results :
 
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] ------------------------------------------------------------------------

  • 0

#16 DennisM

DennisM

    Новый участник

  • Members
  • Pip
  • 55 сообщений
  • ФИО:Dennis M
  • Город:Ralegh NC, USA

Отправлено 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 required
                            tags 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 Scenarios
0 Steps
0m0,000s
 
 
0 Scenarios
0 Steps
0m0,000s
 
 
Results :
 
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


  • 0

#17 eglu2015

eglu2015

    Новый участник

  • Members
  • Pip
  • 5 сообщений

Отправлено 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 required
                            tags 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 Scenarios
0 Steps
0m0,000s
 
 
0 Scenarios
0 Steps
0m0,000s
 
 
Results :
 
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

 

привет, спасибо огромное помогло ))  


  • 0

#18 DennisM

DennisM

    Новый участник

  • Members
  • Pip
  • 55 сообщений
  • ФИО:Dennis M
  • Город:Ralegh NC, USA

Отправлено 08 июля 2016 - 13:20

Ееее!!! Победили зверя!
Если билдишь через Jenkins то можно запихать переменные в билд и перед выполнением выбирать папку для запуска, количество потоков, тэги.
 
<profile>
<id>CucumberAll</id>
<activation>
<property>
<name>environment</name>
<value>CucumberAll</value>
</property>
</activation>
 
 
<build>
<plugins>
<plugin>
<groupId>com.github.temyers</groupId>
<artifactId>cucumber-jvm-parallel-plugin</artifactId>
<version>1.3.0</version>
<executions>
<execution>
<id>generateRunners</id>
<phase>validate</phase>
<goals>
<goal>generateRunners</goal>
</goals>
<configuration>
<!-- Mandatory -->
<!-- comma separated list of package names to scan for glue code -->
<glue>com.expion.test.CucumberStepDefinition</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/resources/${env.TESTS_FOLDER}</featuresDirectory>
<!-- Directory where the cucumber report files shall be written -->
<cucumberOutputDir>c:/Jenkins/reports/</cucumberOutputDir>
<!-- comma separated list of output formats -->
<format>json</format>
<!-- CucumberOptions.strict property -->
<strict>true</strict>
<!-- CucumberOptions.monochrome property -->
<monochrome>true</monochrome>
<!-- The tags to run, maps to CucumberOptions.tags property -->
<tags>${env.TESTS_BY_TAGS}</tags>
<!-- If set to true, only feature files containing the required 
tags shall be generated. -->
<!-- Excluded tags (~@notMe) are ignored. -->
<filterFeaturesByTags>true</filterFeaturesByTags>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<forkCount>${env.TESTS_IN_PARALLEL}</forkCount>
<!-- <forkCount>2</forkCount> -->
<reuseForks>true</reuseForks>
<includes>
<include>**/*IT.class</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
 
</profile>

  • 0

#19 aleksey_p

aleksey_p

    Активный участник

  • Members
  • PipPip
  • 107 сообщений
  • ФИО:Алексей

Отправлено 04 февраля 2019 - 09:49

Есть какое-то решение для Gradle-Selenium-Cucumber ?


  • 0



Темы с аналогичным тегами Selenium, Cucumber, Maven

Количество пользователей, читающих эту тему: 0

0 пользователей, 0 гостей, 0 анонимных