Note that there are some explanatory texts on larger screens.

plurals
  1. POMaven test (webdriver/testng) looking for resources in non-existing folder. How can I tell it where to look for it?
    primarykey
    data
    text
    <p>I have created a selenium/webdriver testng test written in Java, using eclipse. when I am in eclipse and I have currently selected the test case .class, I can run it and it opens up a browser and runs the test. When I "mvn integration-test" it, an empty browser is opened and nothing happens. The error reads as follows</p> <pre><code> --- maven-resources-plugin:2.6:resources (default-resources) @ functionalTests --- Using 'UTF-8' encoding to copy filtered resources. skip non existing resourceDirectory c:\test2\functionalTests\src\main\resources --- maven-compiler-plugin:2.5.1:compile (default-compile) @ functionalTests --- Nothing to compile - all classes are up to date --- maven-resources-plugin:2.6:testResources (default-testResources) @ functionalTests --- Using 'UTF-8' encoding to copy filtered resources. skip non existing resourceDirectory c:\test2\functionalTests\src\test\resources </code></pre> <p>I really dont have such folder. I generated the maven project, using some archetype I found on the internet and I just replaced their class with mine.</p> <p>Here is my folder structure:</p> <pre><code>src -main --java ---com ----pragmaticqa -----tests test -java --com ---pragmaticqa ----tests and inside tests is where my test .class is located. </code></pre> <p>this is my pom.xml</p> <pre><code>&lt;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"&gt; &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt; &lt;groupId&gt;com.pragmaticqa.tests&lt;/groupId&gt; &lt;artifactId&gt;functionalTests&lt;/artifactId&gt; &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt; &lt;packaging&gt;jar&lt;/packaging&gt; &lt;name&gt;functionalTests&lt;/name&gt; &lt;url&gt;http://maven.apache.org&lt;/url&gt; &lt;properties&gt; &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt; &lt;/properties&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt; &lt;artifactId&gt;selenium-firefox-driver&lt;/artifactId&gt; &lt;version&gt;2.32.0&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.testng&lt;/groupId&gt; &lt;artifactId&gt;testng&lt;/artifactId&gt; &lt;version&gt;6.8&lt;/version&gt; &lt;scope&gt;test&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;net.sf.opencsv&lt;/groupId&gt; &lt;artifactId&gt;opencsv&lt;/artifactId&gt; &lt;version&gt;2.0&lt;/version&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;build&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt; &lt;artifactId&gt;selenium-maven-plugin&lt;/artifactId&gt; &lt;version&gt;2.3&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;xvfb&lt;/id&gt; &lt;phase&gt;pre-integration-test&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;xvfb&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;execution&gt; &lt;id&gt;selenium&lt;/id&gt; &lt;phase&gt;pre-integration-test&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;start-server&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;background&gt;true&lt;/background&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; &lt;/project&gt; </code></pre> <p>So my question is - how do I tell maven where to look for the test to run?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload