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 -->









share|improve this question
























  • 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















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 -->









share|improve this question
























  • 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













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 -->









share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 19 at 9:12

























asked Nov 19 at 8:30









francesca

12




12












  • 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


















  • 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
















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

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Costa Masnaga

Fotorealismo

Sidney Franklin