Error running TestNG - Unable to find the Application Name with lookup
up vote
0
down vote
favorite
I'm trying to running some Cucumber
functional tests configuring TestNG
in IntelliJ IDE.
Since the functional tests already existed in the project (and they were working) and I'm just trying to run them it must be some configuration issue.
In the Run/Debug configuration I created a new "TestNG
" running configuration, where I setted
- the class I want to run (containing the functional tests)
- the VM options: -ea -Dproject.parent.version="2.78.0-SNAPSHOT" -Ddocker.image.env=dev -Dcucumber.options="classpath:com/[...]/providerResponse.feature:11"
- the classpath of the module
- the JRE
- the build maven command: clean install -P run-automated-test -Dmaven.test -Dmaven.test.skip.exec=true
where run-automated-test is defined in this way:
<profile>
<id>run-automated-test</id>
<build>
<plugins>
<plugin>
<!-- Overwrite resources with functional resources -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/classes</outputDirectory>
<resources>
<resource>
<directory>src/main/functional-tests-resources</directory>
</resource>
</resources>
<overwrite>true</overwrite>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
When I run it I have this error message:
[TestNG] Running:
C:Users[...].IntelliJIdea2018.2systemtemp-testng-customsuite.xml
ERROR - Unable to find the Application Name with lookup
INFO - Creating new oracle
INFO - Creating new oracle initializer for the artifact=Artifact{uuid='c5cc7131-4caa-4959-87d2-f7d32c37b1de', groupId='com.[...].gateway', artifactId='accommodation-gateway', version='2.78.0-SNAPSHOT'}
INFO - Creating new module for the artifact=Artifact{uuid='c5cc7131-4caa-4959-87d2-f7d32c37b1de', groupId='com.[...].gateway', artifactId='accommodation-gateway', version='2.78.0-SNAPSHOT'}
INFO - build: ProgressMessage{id=null, status=null, stream=Step 1/2 : FROM accommodation-gateway, error=null, progress=null, progressDetail=null}
INFO - build: ProgressMessage{id=null, status=null, stream=
, error=null, progress=null, progressDetail=null}
ERROR - Error starting functional test containers
The temporary file "temp-testng-customsuite.xml" contains:
<suite name="Default Suite">
<test name="accommodation-gateway-parent">
<classes>
<class name="com.[...].FunctionalSetUp"/>
</classes>
</test>
<!-- accommodation-gateway-parent -->
</suite>
<!-- Default Suite -->
java docker intellij-idea cucumber testng
add a comment |
up vote
0
down vote
favorite
I'm trying to running some Cucumber
functional tests configuring TestNG
in IntelliJ IDE.
Since the functional tests already existed in the project (and they were working) and I'm just trying to run them it must be some configuration issue.
In the Run/Debug configuration I created a new "TestNG
" running configuration, where I setted
- the class I want to run (containing the functional tests)
- the VM options: -ea -Dproject.parent.version="2.78.0-SNAPSHOT" -Ddocker.image.env=dev -Dcucumber.options="classpath:com/[...]/providerResponse.feature:11"
- the classpath of the module
- the JRE
- the build maven command: clean install -P run-automated-test -Dmaven.test -Dmaven.test.skip.exec=true
where run-automated-test is defined in this way:
<profile>
<id>run-automated-test</id>
<build>
<plugins>
<plugin>
<!-- Overwrite resources with functional resources -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/classes</outputDirectory>
<resources>
<resource>
<directory>src/main/functional-tests-resources</directory>
</resource>
</resources>
<overwrite>true</overwrite>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
When I run it I have this error message:
[TestNG] Running:
C:Users[...].IntelliJIdea2018.2systemtemp-testng-customsuite.xml
ERROR - Unable to find the Application Name with lookup
INFO - Creating new oracle
INFO - Creating new oracle initializer for the artifact=Artifact{uuid='c5cc7131-4caa-4959-87d2-f7d32c37b1de', groupId='com.[...].gateway', artifactId='accommodation-gateway', version='2.78.0-SNAPSHOT'}
INFO - Creating new module for the artifact=Artifact{uuid='c5cc7131-4caa-4959-87d2-f7d32c37b1de', groupId='com.[...].gateway', artifactId='accommodation-gateway', version='2.78.0-SNAPSHOT'}
INFO - build: ProgressMessage{id=null, status=null, stream=Step 1/2 : FROM accommodation-gateway, error=null, progress=null, progressDetail=null}
INFO - build: ProgressMessage{id=null, status=null, stream=
, error=null, progress=null, progressDetail=null}
ERROR - Error starting functional test containers
The temporary file "temp-testng-customsuite.xml" contains:
<suite name="Default Suite">
<test name="accommodation-gateway-parent">
<classes>
<class name="com.[...].FunctionalSetUp"/>
</classes>
</test>
<!-- accommodation-gateway-parent -->
</suite>
<!-- Default Suite -->
java docker intellij-idea cucumber testng
1) What does your custom profilerun-automated-test
define? 2) Is this a typo-Dmaven.test
or is there some action behind in you project? 3) Both error messages might come from some custom code (did not find an exact match with Google). You might run Maven on command-line with the parameters you mention and adding option-X
(for debug mode) to see where they are comming from. This might narrow the origin a bit.
– SubOptimal
Nov 19 at 8:49
I updated my description with the answer at your point number 1. About the number 2 unfortunately I really don't know, but I guess it's a typo (I'm just following someone else's instructions and that someone is no more available for clarifications)
– francesca
Nov 19 at 9:28
1) Ok. Seems it copies only some resources. 2) Ok. Take it as typo. What about point 3)?
– SubOptimal
Nov 19 at 10:18
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to running some Cucumber
functional tests configuring TestNG
in IntelliJ IDE.
Since the functional tests already existed in the project (and they were working) and I'm just trying to run them it must be some configuration issue.
In the Run/Debug configuration I created a new "TestNG
" running configuration, where I setted
- the class I want to run (containing the functional tests)
- the VM options: -ea -Dproject.parent.version="2.78.0-SNAPSHOT" -Ddocker.image.env=dev -Dcucumber.options="classpath:com/[...]/providerResponse.feature:11"
- the classpath of the module
- the JRE
- the build maven command: clean install -P run-automated-test -Dmaven.test -Dmaven.test.skip.exec=true
where run-automated-test is defined in this way:
<profile>
<id>run-automated-test</id>
<build>
<plugins>
<plugin>
<!-- Overwrite resources with functional resources -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/classes</outputDirectory>
<resources>
<resource>
<directory>src/main/functional-tests-resources</directory>
</resource>
</resources>
<overwrite>true</overwrite>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
When I run it I have this error message:
[TestNG] Running:
C:Users[...].IntelliJIdea2018.2systemtemp-testng-customsuite.xml
ERROR - Unable to find the Application Name with lookup
INFO - Creating new oracle
INFO - Creating new oracle initializer for the artifact=Artifact{uuid='c5cc7131-4caa-4959-87d2-f7d32c37b1de', groupId='com.[...].gateway', artifactId='accommodation-gateway', version='2.78.0-SNAPSHOT'}
INFO - Creating new module for the artifact=Artifact{uuid='c5cc7131-4caa-4959-87d2-f7d32c37b1de', groupId='com.[...].gateway', artifactId='accommodation-gateway', version='2.78.0-SNAPSHOT'}
INFO - build: ProgressMessage{id=null, status=null, stream=Step 1/2 : FROM accommodation-gateway, error=null, progress=null, progressDetail=null}
INFO - build: ProgressMessage{id=null, status=null, stream=
, error=null, progress=null, progressDetail=null}
ERROR - Error starting functional test containers
The temporary file "temp-testng-customsuite.xml" contains:
<suite name="Default Suite">
<test name="accommodation-gateway-parent">
<classes>
<class name="com.[...].FunctionalSetUp"/>
</classes>
</test>
<!-- accommodation-gateway-parent -->
</suite>
<!-- Default Suite -->
java docker intellij-idea cucumber testng
I'm trying to running some Cucumber
functional tests configuring TestNG
in IntelliJ IDE.
Since the functional tests already existed in the project (and they were working) and I'm just trying to run them it must be some configuration issue.
In the Run/Debug configuration I created a new "TestNG
" running configuration, where I setted
- the class I want to run (containing the functional tests)
- the VM options: -ea -Dproject.parent.version="2.78.0-SNAPSHOT" -Ddocker.image.env=dev -Dcucumber.options="classpath:com/[...]/providerResponse.feature:11"
- the classpath of the module
- the JRE
- the build maven command: clean install -P run-automated-test -Dmaven.test -Dmaven.test.skip.exec=true
where run-automated-test is defined in this way:
<profile>
<id>run-automated-test</id>
<build>
<plugins>
<plugin>
<!-- Overwrite resources with functional resources -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/classes</outputDirectory>
<resources>
<resource>
<directory>src/main/functional-tests-resources</directory>
</resource>
</resources>
<overwrite>true</overwrite>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
When I run it I have this error message:
[TestNG] Running:
C:Users[...].IntelliJIdea2018.2systemtemp-testng-customsuite.xml
ERROR - Unable to find the Application Name with lookup
INFO - Creating new oracle
INFO - Creating new oracle initializer for the artifact=Artifact{uuid='c5cc7131-4caa-4959-87d2-f7d32c37b1de', groupId='com.[...].gateway', artifactId='accommodation-gateway', version='2.78.0-SNAPSHOT'}
INFO - Creating new module for the artifact=Artifact{uuid='c5cc7131-4caa-4959-87d2-f7d32c37b1de', groupId='com.[...].gateway', artifactId='accommodation-gateway', version='2.78.0-SNAPSHOT'}
INFO - build: ProgressMessage{id=null, status=null, stream=Step 1/2 : FROM accommodation-gateway, error=null, progress=null, progressDetail=null}
INFO - build: ProgressMessage{id=null, status=null, stream=
, error=null, progress=null, progressDetail=null}
ERROR - Error starting functional test containers
The temporary file "temp-testng-customsuite.xml" contains:
<suite name="Default Suite">
<test name="accommodation-gateway-parent">
<classes>
<class name="com.[...].FunctionalSetUp"/>
</classes>
</test>
<!-- accommodation-gateway-parent -->
</suite>
<!-- Default Suite -->
java docker intellij-idea cucumber testng
java docker intellij-idea cucumber testng
edited Nov 19 at 9:12
asked Nov 19 at 8:30
francesca
12
12
1) What does your custom profilerun-automated-test
define? 2) Is this a typo-Dmaven.test
or is there some action behind in you project? 3) Both error messages might come from some custom code (did not find an exact match with Google). You might run Maven on command-line with the parameters you mention and adding option-X
(for debug mode) to see where they are comming from. This might narrow the origin a bit.
– SubOptimal
Nov 19 at 8:49
I updated my description with the answer at your point number 1. About the number 2 unfortunately I really don't know, but I guess it's a typo (I'm just following someone else's instructions and that someone is no more available for clarifications)
– francesca
Nov 19 at 9:28
1) Ok. Seems it copies only some resources. 2) Ok. Take it as typo. What about point 3)?
– SubOptimal
Nov 19 at 10:18
add a comment |
1) What does your custom profilerun-automated-test
define? 2) Is this a typo-Dmaven.test
or is there some action behind in you project? 3) Both error messages might come from some custom code (did not find an exact match with Google). You might run Maven on command-line with the parameters you mention and adding option-X
(for debug mode) to see where they are comming from. This might narrow the origin a bit.
– SubOptimal
Nov 19 at 8:49
I updated my description with the answer at your point number 1. About the number 2 unfortunately I really don't know, but I guess it's a typo (I'm just following someone else's instructions and that someone is no more available for clarifications)
– francesca
Nov 19 at 9:28
1) Ok. Seems it copies only some resources. 2) Ok. Take it as typo. What about point 3)?
– SubOptimal
Nov 19 at 10:18
1) What does your custom profile
run-automated-test
define? 2) Is this a typo -Dmaven.test
or is there some action behind in you project? 3) Both error messages might come from some custom code (did not find an exact match with Google). You might run Maven on command-line with the parameters you mention and adding option -X
(for debug mode) to see where they are comming from. This might narrow the origin a bit.– SubOptimal
Nov 19 at 8:49
1) What does your custom profile
run-automated-test
define? 2) Is this a typo -Dmaven.test
or is there some action behind in you project? 3) Both error messages might come from some custom code (did not find an exact match with Google). You might run Maven on command-line with the parameters you mention and adding option -X
(for debug mode) to see where they are comming from. This might narrow the origin a bit.– SubOptimal
Nov 19 at 8:49
I updated my description with the answer at your point number 1. About the number 2 unfortunately I really don't know, but I guess it's a typo (I'm just following someone else's instructions and that someone is no more available for clarifications)
– francesca
Nov 19 at 9:28
I updated my description with the answer at your point number 1. About the number 2 unfortunately I really don't know, but I guess it's a typo (I'm just following someone else's instructions and that someone is no more available for clarifications)
– francesca
Nov 19 at 9:28
1) Ok. Seems it copies only some resources. 2) Ok. Take it as typo. What about point 3)?
– SubOptimal
Nov 19 at 10:18
1) Ok. Seems it copies only some resources. 2) Ok. Take it as typo. What about point 3)?
– SubOptimal
Nov 19 at 10:18
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53370862%2ferror-running-testng-unable-to-find-the-application-name-with-lookup%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1) What does your custom profile
run-automated-test
define? 2) Is this a typo-Dmaven.test
or is there some action behind in you project? 3) Both error messages might come from some custom code (did not find an exact match with Google). You might run Maven on command-line with the parameters you mention and adding option-X
(for debug mode) to see where they are comming from. This might narrow the origin a bit.– SubOptimal
Nov 19 at 8:49
I updated my description with the answer at your point number 1. About the number 2 unfortunately I really don't know, but I guess it's a typo (I'm just following someone else's instructions and that someone is no more available for clarifications)
– francesca
Nov 19 at 9:28
1) Ok. Seems it copies only some resources. 2) Ok. Take it as typo. What about point 3)?
– SubOptimal
Nov 19 at 10:18