Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As Michael says, this is a Maven integration issue not a Hudson one. I don't know of a Maven plugin for QTP, but you can use the <a href="http://mojo.codehaus.org/exec-maven-plugin/" rel="nofollow noreferrer">exec-maven-plugin</a> to invoke an arbitrary executable, and provide arguments to that executable. QTP provides an "Automation" API that you should be able to wrap in a script fairly easily. It won't be a slick integration but may serve your purposes.</p> <p>Here's an example of the configuration you could use:</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt; &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt; &lt;version&gt;1.1.1&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;goals&gt; &lt;goal&gt;exec&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;configuration&gt; &lt;executable&gt;[qtp executable]&lt;/executable&gt; &lt;workingDirectory&gt;/target&lt;/workingDirectory&gt; &lt;arguments&gt; &lt;argument&gt;[an argument to configure QTP]&lt;/argument&gt; &lt;argument&gt;[another argument to configure QTP]&lt;/argument&gt; &lt;/arguments&gt; &lt;/configuration&gt; &lt;/plugin&gt; </code></pre> <p>An <a href="https://stackoverflow.com/questions/682938/running-qtp-tests-automatically-from-a-hudson-instance">answer to a previous question on invoking QTP from Ant</a> is a good starting point for writing the Automation integration.</p> <hr> <p>Update:</p> <p>Here's an approach that may work for you. It appears that you can directly invoke the QTP server, passing the name of the test you want executing. So you can use the <a href="http://maven.apache.org/plugins/maven-antrun-plugin/usage.html" rel="nofollow noreferrer">antrun plugin</a> to invoke the url and direct the output to a target directory. Modify the url and test name to match your environment and QTP should be invoked and the results placed in target/qtp/results.html. This assumes that you have a single test you can invoke to do everything you need to in QTP.</p> <pre><code>&lt;plugins&gt; &lt;plugin&gt; &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt; &lt;version&gt;1.3&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;phase&gt;test&lt;/phase&gt; &lt;configuration&gt; &lt;tasks&gt; &lt;get verbose="true" src="http://[servername]/qtp/LaunchQTP.plx?testname=[test name]" dest="${project.build.directory}/qtp/results.html" /&gt; &lt;/tasks&gt; &lt;/configuration&gt; &lt;goals&gt; &lt;goal&gt;run&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;/plugins&gt; </code></pre>
    singulars
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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