Re: Running maven webtest:webtest command
Siegfried Goeschl <siegfried.goeschl-NbQflJZg8c+zZXS1Dc/[email protected]>
| Newsgroups | gmane.comp.web.canoo.webtest |
|---|---|
| Organization | IT20one GmbH |
| Message-ID | <[email protected]> |
Hi Sagar,
sorry for catching up so late ... :-(
The plugin documentation is found at
http://mojo.codehaus.org/webtest-maven-plugin/
Since this is currently a sandbox project on Codehaus you either add the
snapshot repository or download the source and install the plugin
locally (recommended)
Getting the source use the following command line
> svn co
http://svn.codehaus.org/mojo/trunk/sandbox/webtest-maven-plugin/
maven-webtest-plugin
Afterwards run to install the plugin locally
> cd maven-webtest-plugin
> mvn clean install
Under maven-webtest-plugin/src/test you find a couple of 'itX'
directories whereas each of this directories represents an integration test.
The integration tests are configured that way the
> mvn clean site
runs the webtests and generate the webtest report.
Here you find a description what each integration test is intended to do
http://mojo.codehaus.org/webtest-maven-plugin/tests.html
Cheers,
Siegfried Goeschl
On 11/19/10 11:46 PM, Sagar Pidaparthi wrote:
> Hi,
>
> I did some more research. I was hoping to run the sample project
> provided by webtest using maven plugin. I was not successful.
>
>
> I have realized that there are sample tests created for webtest plugin.
>
> How can I download them?
>
> thanks
>
> Sagar
>
>
>
>
> On Nov 19, 2010, at 12:38 PM, Sagar Pidaparthi wrote:
>
>> Hi,
>>
>> The other questions I have are
>>
>> 1. When you run webtest.sh command manually, you take care of setting
>> the path
>>
>> export PATH=${PATH}:/usr/local/webtest/bin in .bashrc (bash).
>>
>> I am assuming that maven installation takes care of this. Is this correct?
>>
>>
>> 2. what is the equivalent of
>>
>> webtest -f path\to\webtest\home\webtest.xml wt.createProject in maven?
>>
>> How do you create a webtest Project with maven ?
>>
>> Thanks for clarifying the issues
>>
>> Sagar
>>
>>
>>
>>
>> On Nov 19, 2010, at 12:05 PM, Sagar Pidaparthi wrote:
>>
>>> 1. I need help on running mvn webtest:test
>>>
>>> Please list out the steps I need to follow. Your help much appreciated
>>>
>>> I am working on Apple mac snow leopard.
>>>
>>> 2. I have a pom.xml in my directory, which has the following entries
>>>
>>> -------------- Plugin entry ----------
>>>
>>> <plugin>
>>> <groupId>org.codehaus.mojo</groupId>
>>> <artifactId>webtest-maven-plugin</artifactId>
>>> <version>0.7.1-SNAPSHOT</version>
>>> </plugin>
>>>
>>>
>>> ---------Reporting
>>>
>>> <reporting>
>>> <plugins>
>>> <plugin>
>>> <groupId>org.codehaus.mojo</groupId>
>>> <artifactId>webtest-maven-plugin</artifactId>
>>> <version>0.7.1-SNAPSHOT</version>
>>> </plugin>
>>> </plugins>
>>> </reporting>
>>>
>>>
>>> ---- Dependency
>>>
>>> <dependency>
>>> <groupId>com.canoo.webtest</groupId>
>>> <artifactId>webtest</artifactId>
>>> <version>3.1-SNAPSHOT</version>
>>> </dependency>
>>>
>>>
>>> _______ Plugin Repository entry in the super pom ----
>>>
>>> <repository>
>>> <id>webtest_dependencies_snapshot</id>
>>> <name>WebTest dependencies</name>
>>> <url>http://repo2.maven.org/maven2</url>
>>> </repository>
>>>
>>>
>>> I created a webtest folder under …./src/test/webtest
>>>
>>>
>>>
>>>
>>> I ran
>>>
>>> mvn test
>>>
>>> This downloaded the maven plugins and web test
>>>
>>>
>>> I am able to run mvn webtest:info and most other commands but NOT mvn
>>> webtest:test
>>>
>>> Please guide me with the next steps.
>>>
>>>
>>> I also created a test folder using manual command
>>>
>>> webtest -f webtest.xml wt.createProject which created a test folder
>>> at the same
>>>
>>> I am not sure about the next steps.
>>>
>>>
>>> Thanks for your help
>>>
>>>
>>> Sagar
>>>
>>> ------------------------------------------------------------------------
>>> Disclaimer notice: This e-mail message, including any attachments, is
>>> for the sole use of the intended recipient(s) and may contain
>>> confidential and privileged information or otherwise be protected by
>>> law. Any unauthorized review, use, disclosure or distribution is
>>> prohibited. If you are not the intended recipient, please contact the
>>> sender by reply e-mail and destroy all copies of the original message.
>>>
>>> ------------------------------------------------------------------------
>>> Disclaimer notice: This e-mail message, including any attachments, is
>>> for the sole use of the intended recipient(s) and may contain
>>> confidential and privileged information or otherwise be protected by
>>> law. Any unauthorized review, use, disclosure or distribution is
>>> prohibited. If you are not the intended recipient, please contact the
>>> sender by reply e-mail and destroy all copies of the original message.
>>
>>
>> ------------------------------------------------------------------------
>> Disclaimer notice: This e-mail message, including any attachments, is
>> for the sole use of the intended recipient(s) and may contain
>> confidential and privileged information or otherwise be protected by
>> law. Any unauthorized review, use, disclosure or distribution is
>> prohibited. If you are not the intended recipient, please contact the
>> sender by reply e-mail and destroy all copies of the original message.
>>
>> ------------------------------------------------------------------------
>> Disclaimer notice: This e-mail message, including any attachments, is
>> for the sole use of the intended recipient(s) and may contain
>> confidential and privileged information or otherwise be protected by
>> law. Any unauthorized review, use, disclosure or distribution is
>> prohibited. If you are not the intended recipient, please contact the
>> sender by reply e-mail and destroy all copies of the original message.
>
>
> ------------------------------------------------------------------------
> Disclaimer notice: This e-mail message, including any attachments, is
> for the sole use of the intended recipient(s) and may contain
> confidential and privileged information or otherwise be protected by
> law. Any unauthorized review, use, disclosure or distribution is
> prohibited. If you are not the intended recipient, please contact the
> sender by reply e-mail and destroy all copies of the original message.