[Fwd: Re: [Yanel-dev] outsourcing]

Guillaume Déflache guillaume.deflache at wyona.com
Tue Mar 10 09:54:13 CET 2009


kamerun at immerda.ch schrieb:
> hello,
> first thanks for the answer.

Your are welcome.


> i had a technical question last time: we add a test in yanel as you see 
> below
> /
> <?xml version="1.0"?>
> <!DOCTYPE project SYSTEM "../dtd/Project.dtd">
> 
> <project name="mail-test" default="test">
> 
>   <import file="../definitions.xml"/>
> 
>   <target name="test" depends="wt.defineMacros">
> 
>     <webtest name="Usecase Test mail">
>       &config;
>       <invoke description="Get the page: " 
> url="/${realm.prefix}mailing-lists/ulysses/general/"/>
> 
>     <!-- <verifyText description="Verify that text is contained in the 
> page" text="to realm): /mailing-lists/ulysses/general/"/> -->
>   
>      <verifyText description="Verify that text is contained in the page" 
> text="/mailing-lists/ulysses/general/"/>
> 
>     </webtest>
>       
>   </target>
> 
> </project>
> 
> /we see we comment a line (bold) because the test was failing when we 
> uncomment this line, but in reality the string we are looking for exist, 

Indeed this should work...


> so why it fails? in the source there is a </b>  when i put it, it comes 
> a mistake /

What is the "source" you are referring to? Is it the page under test? 
Could you save and send the corresponding file?


> 
> ...
> INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully created.
> 
> BUILD FAILED
> /home/michel/wyona/canoo/webtest.xml:234: The following error occurred 
> while executing this line:
> /home/michel/wyona/src/yanel-trunk/src/realms/use-cases/yanel/src/test/canoo/tests/allTests.xml:21: 
> The following error occurred while executing this line:
> /home/michel/wyona/src/yanel-trunk/src/realms/use-cases/yanel/src/test/canoo/tests/usecase-test-mail.xml:14: 
> The value of attribute "text" associated with an element type 
> "verifyText" must not contain the '<' character.

This looks like an XML parsing error, but indeed the line you added does 
not contain the '<' character!?! Maybe you could also send here the 
faulty file as it stands just after you modified and tested it?


> /when every thing is ok, it came this mistake, (i can open the file, but 
> it would nice when it open the browser, where is the browser defined: on 
> this machine i install it myself in the directory
> /usr/local/firefox/firefox
> 
> 
> 
> /
>      [echo] Opening result file 
> /home/michel/wyona/src/yanel-trunk/src/realms/use-cases/yanel/src/test/canoo/results/index.html 
> with firefox
> 
> BUILD FAILED
> /home/michel/wyona/canoo/webtest.xml:381: Execute failed: 
> java.io.IOException: java.io.IOException: firefox: not found

It seems like Canoo excepts that Firefox is in your PATH.
As you installed Firefox manually, you should add it to your PATH 
environment variable.
If you run Canoo from a bash shell for example, you should type:

export PATH=/usr/local/firefox:$PATH

...and then run Canoo from the same shell.


> /so, i hope i don'6t have disturb you/ /with my questions, if you don't 
> want like this, just tell me

No problem, this is fine, as long as you sent more administrative 
matters to an other maling-list.


> have a good time, tomorrow i will test a bamboo boat  i build with 
> friends, a good change to computer world.

I hope this other kind ot testing went well! ;)


Regards,
    Guillaume


More information about the Yanel-development mailing list