Ok, now the first GET works but something with the javascript webtest tries to
execute.
By using a defaut webtest build.xml, you execute the wt.full target that is not
so "simple".
could you try with this build.xml content:
==================================
<project name="example" default="myFirstWebTestTarget" basedir=".">
<property name="webtest.home" value="C:/dev/webtest"/>
<import file="${webtest.home}/webtest.xml"/>
<property name="wt.testInWork" value="tests/allTests.xml"/>
<target name="myFirstWebTestTarget"
depends="wt.defineTasks,wt.before.testInWork">
<setproxy proxyhost="proxy.cognizant.com" proxyport="6050"/>
<webtest
name="check that WebTest is Google's top 'WebTest' result">
<invoke url="http://www.google.com"
description="Go to Google (in English)"/>
<verifyTitle text="Google" />
<setInputField name="q" value="WebTest" />
<clickButton label="I'm Feeling Lucky" />
<verifyTitle text="Canoo WebTest" />
</webtest>
</target>
</project>
==================================
christophe
> -----Message d'origine-----
> De : [email protected] [mailto:webtest-
> [email protected]] De la part de Al Ben
> Envoyé : mardi 16 juin 2009 07:46
> À : [email protected]
> Objet : RE: [Webtest] Example Test is failing.
>
>
> Hi,
>
> I do use a proxy to connect to internet. I have updated the build.xml
> with
> the setproxy command and now the build failes with another message. I
> have
> attached the stack trace, build.xml, googleWebTest.xml and
> googleOnWebTest.xml for your reference.
> http://www.nabble.com/file/p24048074/Stack_Trace.JPG Stack_Trace.JPG
> http://www.nabble.com/file/p24048074/build.txt build.txt
> http://www.nabble.com/file/p24048074/googleOnWebTest.txt
> googleOnWebTest.txt
> http://www.nabble.com/file/p24048074/googleWebTest.txt
> googleWebTest.txt
> Thanks
> Ben
>
> cfurmaniak wrote:
> >
> > Hi,
> >
> > I should have checked the stack trace first:
> >
> > [invoke] INFO (org.apache.commons.httpclient.HttpMethodDirector) -
> I/O
> > excep
> > tion (java.net.ConnectException) caught when processing request:
> > Connection refused: connect
> >
> >
> > Maybe you need to specify a proxy server with the setproxy directive
> >
> > <setproxy proxyhost="proxy" proxyport="3128"/>
> >
> > Do you have a direct access to internet? any firewall?
> >
> > regards.
> >
> > christophe
> >
> >
> >
> >> -----Message d'origine-----
> >> De : [email protected] [mailto:webtest-
> >> [email protected]] De la part de Al Ben
> >> Envoyé : lundi 15 juin 2009 09:00
> >> À : [email protected]
> >> Objet : RE: [Webtest] Example Test is failing.
> >>
> >>
> >> Hi Christophe,
> >>
> >> I tried changing the url by removing the "/ncr" from
> >> googleOnWebTest.xml and
> >> googleWebTest.xml files. Still am getting the same errors and the
> >> browser is
> >> also not getting invoked. Please refer the attached the screenshot,
> its
> >> shows a 'java.net.ConnectException' while invoking the url. btw...i
> >> tried
> >> with another url(yahoo)...still the same prob.
> >> http://www.nabble.com/file/p24029609/java.net.ConnectException.docx
> >> java.net.ConnectException.docx
> >> Hi,
> >>
> >> did you trying after removing the trailing /ncr in the invoke url
> >> param?
> >>
> >> <invoke url="http://www.google.com/ncr"
> >> description="Go to Google (in English)"/>
> >>
> >> It seems that something has changed on google web site "recently"
> and
> >> that
> >> this example is no more relevant (I encountered the same pb).
> >>
> >> regards.
> >>
> >> christophe
> >>
> >>
> >> De : [email protected] [mailto:webtest-
> >> [email protected]] De
> >> la part de Al Ben
> >> Envoyé : vendredi 12 juin 2009 06:37
> >> À : [email protected]
> >> Objet : [Webtest] Example Test is failing.
> >>
> >> Hi, I am new to webtest and am finding difficulty in executing the
> >> example
> >> test itself. I have installed webtest, ant and eclipse and set the
> >> environment variables also. But while running the ant/webtest
> command
> >> for
> >> the 'myWebTestProject', the build is getting failed. As I am new to
> >> this, am
> >> not able to resolve this issue. btw, while executing the example
> google
> >> test, its not even invoking the web browser. Please help me in this
> >> regard.
> >> Attached a result file and stack trace for reference.
> >>
> WebTestReport.html<http://www.nabble.com/file/p23978896/WebTestReport.h
> >> tml>
> >>
> stack_trace.txt<http://www.nabble.com/file/p23978896/stack_trace.txt>
> >> Thanks
> >> ________________________________
> >> View this message in context: Example Test is
> >> failing.<http://www.nabble.com/Example-Test-is-failing.-
> >> tp23978896p23978896.html>
> >> Sent from the WebTest mailing list
> >> archive<http://www.nabble.com/WebTest-f14809.html> at Nabble.com.
> >>
> >> ________________________________
> >>
> >> Ce message et les pièces jointes sont confidentiels et réservés à
> >> l'usage
> >> exclusif de ses destinataires. Il peut également être protégé par le
> >> secret
> >> professionnel. Si vous recevez ce message par erreur, merci d'en
> >> avertir
> >> immédiatement l'expéditeur et de le détruire. L'intégrité du message
> ne
> >> pouvant être assurée sur Internet, la responsabilité du groupe Atos
> >> Origin
> >> ne pourra être recherchée quant au contenu de ce message. Bien que
> les
> >> meilleurs efforts soient faits pour maintenir cette transmission
> >> exempte de
> >> tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa
> >> responsabilité ne saurait être recherchée pour tout dommage
> résultant
> >> d'un
> >> virus transmis.
> >>
> >> This e-mail and the documents attached are confidential and intended
> >> solely
> >> for the addressee; it may also be privileged. If you receive this e-
> >> mail in
> >> error, please notify the sender immediately and destroy it. As its
> >> integrity
> >> cannot be secured on the Internet, the Atos Origin group liability
> >> cannot be
> >> triggered for the message content. Although the sender endeavours to
> >> maintain a computer virus-free network, the sender does not warrant
> >> that
> >> this transmission is virus-free and will not be liable for any
> damages
> >> resulting from any virus transmitted.
> >>
> >>
> >>
> >> --
> >> View this message in context: http://www.nabble.com/Example-Test-is-
> >> failing.-tp23978896p24029609.html
> >> Sent from the WebTest mailing list archive at Nabble.com.
> >>
> >> _______________________________________________
> >> WebTest mailing list
> >> [email protected]
> >> http://lists.canoo.com/mailman/listinfo/webtest
> >
> >
> >
> > Ce message et les pièces jointes sont confidentiels et réservés à
> l'usage
> > exclusif de ses destinataires. Il peut également être protégé par le
> > secret professionnel. Si vous recevez ce message par erreur, merci
> d'en
> > avertir immédiatement l'expéditeur et de le détruire. L'intégrité du
> > message ne pouvant être assurée sur Internet, la responsabilité du
> groupe
> > Atos Origin ne pourra être recherchée quant au contenu de ce message.
> Bien
> > que les meilleurs efforts soient faits pour maintenir cette
> transmission
> > exempte de tout virus, l'expéditeur ne donne aucune garantie à cet
> égard
> > et sa responsabilité ne saurait être recherchée pour tout dommage
> > résultant d'un virus transmis.
> >
> > This e-mail and the documents attached are confidential and intended
> > solely for the addressee; it may also be privileged. If you receive
> this
> > e-mail in error, please notify the sender immediately and destroy it.
> As
> > its integrity cannot be secured on the Internet, the Atos Origin
> group
> > liability cannot be triggered for the message content. Although the
> sender
> > endeavours to maintain a computer virus-free network, the sender does
> not
> > warrant that this transmission is virus-free and will not be liable
> for
> > any damages resulting from any virus transmitted.
> > Y��z�fj)b� b�՞m7��X������hm����+-�Ƨ��(��Y���b�ا~��y�^�
> >
>
> --
> View this message in context: http://www.nabble.com/Example-Test-is-
> failing.-tp23978896p24048074.html
> Sent from the WebTest mailing list archive at Nabble.com.
>
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
Ce message et les pièces jointes sont confidentiels et réservés à l'usage
exclusif de ses destinataires. Il peut également être protégé par le secret
professionnel. Si vous recevez ce message par erreur, merci d'en avertir
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant
être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra
être recherchée quant au contenu de ce message. Bien que les meilleurs efforts
soient faits pour maintenir cette transmission exempte de tout virus,
l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne
saurait être recherchée pour tout dommage résultant d'un virus transmis.
This e-mail and the documents attached are confidential and intended solely for
the addressee; it may also be privileged. If you receive this e-mail in error,
please notify the sender immediately and destroy it. As its integrity cannot be
secured on the Internet, the Atos Origin group liability cannot be triggered
for the message content. Although the sender endeavours to maintain a computer
virus-free network, the sender does not warrant that this transmission is
virus-free and will not be liable for any damages resulting from any virus
transmitted.