[Webtest] (Fwd) Re: Canoo Web Test and Maven ???

Siegfried Göschl webtest@lists.canoo.com
Mon, 28 Jul 2003 22:07:37 +0200


------- Forwarded message follows -------
From:           	Siegfried Göschl <siegfried.goeschl@it20one.at>
To:             	anjarivo@free.fr
Subject:        	Re: Canoo Web Test and Maven ???
Copies to:      	siegfried.goeschl@it20one.at
Date sent:      	Mon, 28 Jul 2003 21:54:46 +0200

Hi Anjarivo,

you are right - the webtest sample files are no longer part of the
distribution and therefore "sample.xml" fails and the documentation
was not updated ... :-(

Might be a good idea to add it again ...

+) You can download the sample from http://cvs.sourceforge.net/cgi-
bin/viewcvs.cgi/maven-plugins/maven-plugins/webtest/webtest/

+) Place the sample.xml and config/sample.properties in a folder 
"webtest"

+) If you are behind a firewall yo have to tweak the ANT script (ANT 
1.5.3 supports network proxies)

+) Run "maven webtest xdoc:trasnform" - it should work as shown below

Cheers,

Siegfried Goeschl

PS: Don't hesitate to post a success story ... :-)

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\Dokumente und Einstellungen\sigi\.maven\plugins\maven-webtest-
plugin-0.7>maven webtest
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-10

webtest:
webtest:clean:
    [delete] Deleting 10 files from C:\Dokumente und 
Einstellungen\sigi\.maven\plugins\maven-webtest-plugin-
0.7\target\webtest
    [delete] Deleting 4 files from C:\Dokumente und 
Einstellungen\sigi\.maven\plugins\maven-webtest-plugin-
0.7\target\webtest
    [delete] Deleting: C:\Dokumente und 
Einstellungen\sigi\.maven\plugins\maven-webtest-plugin-
0.7\target\webtest-raw-report.xml

webtest:info:
    [echo]
      maven.webtest.file                        = *.xml
      maven.webtest.target                      =
      maven.webtest.src                         = C:\Dokumente und
Einstellungen\sigi\.maven\plugins\maven-webtest-plugin-0.7/webtest

      maven.webtest.config.host                 = localhost
      maven.webtest.config.port                 = 80
      maven.webtest.config.protocol             = http
      maven.webtest.config.basepath             =
      maven.webtest.config.summary              = true
      maven.webtest.config.verbose              = true
      maven.webtest.config.saveresponse         = true
      maven.webtest.config.resultpath           = C:\Dokumente und
Einstellungen\sigi\.maven\plugins\maven-webtest-plugin-
0.7/target/webtest

      maven.webtest.config.resultfile           =
      maven.webtest.config.showhtmlparseroutput = true


webtest:test:
    [echo] Starting Canoo Webtest ...
    [echo] Processing sample.xml
    [java] Buildfile: C:\Dokumente und 
Einstellungen\sigi\.maven\plugins\maven-webtest-plugin-
0.7\webtest\sample.xml
    [java]
    [java] AllTests:
    [java]
    [java] SimpleTest:
    [java]  [testSpec] Rhino classes (js.jar) not found - Javascript
disabled
    [java]  [testSpec] At line 49, column 93: Bare ampersand found.
    [java]  [testSpec] At line 53, column 106: Bare ampersand found.
    [java]  [testSpec] At line 53, column 112: Bare ampersand found.
    [java]  [testSpec] At line 49, column 93: Bare ampersand found.
    [java]  [testSpec] At line 53, column 106: Bare ampersand found.
    [java]  [testSpec] At line 53, column 112: Bare ampersand found.
    [java] [java] MailingListTest: [java] [java] BogusTest: [java] 
    [testSpec] At line 49, column 93: Bare ampersand found. [java] 
    [testSpec] At line 53, column 106: Bare ampersand found. [java] 
    [testSpec] At line 53, column 112: Bare ampersand found. [java]
    [java] BUILD FAILED [java] 
file:C:/Dokumente%20und%20Einstellungen/sigi/.maven/plugins/maven-
webtest-plugin-0.7/webtest/sample.xml:169: Test failed.
    [java] Test step clicklink named "Switch to a non-existing page"
failed with message "Step "Switch to a non-existing page" (4/5): Link
n ot found in page: <FooBar>"
    [java]
    [java] Total time: 25 seconds
    [java] [ERROR] Java Result: 1
    [echo] Finished running Canoo Webtest Plugin

webtest:generate-test-report:
    [copy] Copying 10 files to C:\Dokumente und 
Einstellungen\sigi\.maven\plugins\maven-webtest-plugin-
0.7\target\docs\webtest\response
    [echo] Transforming TestSummary1-SimpleTest1.xml into XDOC ...
    [echo] Transforming TestSummary2-SimpleTest2.xml into XDOC ...
    [echo] Transforming TestSummary3-MailingListTest.xml into XDOC 
...
    [echo] Transforming TestSummary4-BogusTest.xml into XDOC ...

webtest:generate-summary-report:
    [echo] Summary
BUILD SUCCESSFUL
Total time:  29 seconds

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<


On 28 Jul 2003 at 12:17, anjarivo@free.fr wrote:

> Hi,
> 
> I've been working on the integration of Canoo & Maven using your
> plug-ins. If you use Canoo alone, it works fine, but I didn't 
manage
> to reuse the previous project with Maven. Do you have any *fake*
> project that can be used immediatly with you plug-in ? Even running
> "samples" failed . If you go to the pluging directory and type 
"maven
> webtest" I only received :
> 
> C:\maven\plugins>maven webtest
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-10
> 
>    [delete] C:\maven\plugins\target\webtest not found.
>    [delete] C:\maven\plugins\target\webtest not found.
>      [echo]
>      [echo]       maven.webtest.file                = *.xml
>      [echo]       maven.webtest.target              =
>      [echo]       maven.webtest.src                 = ./webtest
> 
>      [echo]       maven.webtest.config.host         = localhost
>      [echo]       maven.webtest.config.port         = 80 [echo]     
>       maven.webtest.config.protocol     = http [echo]      
>      maven.webtest.config.basepath     = [echo]      
>      maven.webtest.config.summary      = true [echo]      
>      maven.webtest.config.verbose      = true [echo]      
>      maven.webtest.config.saveresponse = true [echo]      
>      maven.webtest.config.resultpath   = 
./target/webtest
>      [echo]       maven.webtest.config.resultfile   = [echo]     
>      maven.webtest.jar.fileset.dir     = [echo]     
>      maven.webtest.jar.fileset.include = [echo]     
>      maven.webtest.jar.fileset.exclude = [echo]
>     [mkdir] Created dir: C:\maven\plugins\target\webtest
>      [echo] Starting Canoo Webtest ...
> 
> BUILD FAILED
> File...... file:/C:/Documents and
> Settings/zzz/.maven/plugins/maven-webtest-plug in-0.7/ Element...
> j:forEach Line...... 95 Column.... 71 C:\maven\plugins\webtest not
> found. Total time:  3 seconds	 
> 
> Thanks
> 
> Anjarivo
> 
> 
> 
> 
> 



Siegfried Goeschl
CTO
=================================
IT20one GmbH
mail: siegfried.goeschl@it20one.at
phone: +43-1-9900046
fax: +43-1-52 37 888
www.it20one.at
------- End of forwarded message -------

Siegfried Goeschl
CTO
=================================
IT20one GmbH
mail: siegfried.goeschl@it20one.at
phone: +43-1-9900046
fax: +43-1-52 37 888
www.it20one.at
Siegfried Goeschl
CTO
=================================

IT20one GmbH
mail: siegfried.goeschl@it20one.at
phone: +43-1-9900046
www.it20one.at