[Webtest] Re: WebTest digest, Vol 1 #35 - 7 msgs

Sandro Pedrazzini webtest@lists.canoo.com
Tue, 16 Apr 2002 11:38:28 +0200


>
>
>I need some more information about how the redirection is implemented:
>- http response (directly in the protocol)
>- http-equiv tag (here I would need the html source, e.g. to check for
>validity)
>- server-side forward (should be transparent to WebTest)


I have to check it. But at the moment I do not have access to that server.


>as a quick workaround: can you set up your test to go the redirection target
>directly?


Yes, this is what we did. I reported you the problem more from the 
CanooWebTest point of view, that should be able to manage such 
situation. The student can work further with the redirection target.

Thanks

Sandro



>
>>  -----Original Message-----
>>  From: webtest-admin@lists.canoo.com
>>  [mailto:webtest-admin@lists.canoo.com]On Behalf Of Sandro Pedrazzini
>>  Sent: Dienstag, 16. April 2002 10:25
>>  To: Dierk.Koenig@canoo.com
>>  Cc: webtest@lists.canoo.com
>>  Subject: [Webtest] verifytitle problem
>>
>>
>>  Hello Dierk,
>>
>>  A student of mine whom I asked to test a web site using CanooWebTest
>>  had a problem. I know I should grab myself into the code, but I am
>>  not really working with it.
>>  It seems that WebTest throws an exception when there is a URL redirection.
>>
>>  Following Test:
>>
>>  <testSpec name="checking  site">
>>     <config
>>        host="www.die.supsi.ch"
>>        protocol="http"
>>        verbose = "true"
>>        summary = "true"
>>      />
>>      <steps>
>>         <invoke  stepid="get main page"  url="index.html" />
>>         <verifytitle  stepid="check the title"  text="abc..." />
>>      </steps>
>>  </testSpec>
>>
>>  Generates following exception (used with other sites the result is OK).
>>  My interpretation is that the redirection causes somewhere a null
>>  reference, i.e. there should be a null check somewhere.
>>  Here the exception stack:
>>
>>  Error encountered: checking
>>  site(com.canoo.webtest.engine.ConfigurableTestCase): null
>>  Exception raised:
>>  java.lang.NullPointerExceptionjava.lang.NullPointerException
>>           at
>>  com.canoo.webtest.steps.VerifyElementText.getTextFromNode(VerifyEl
>>  ementText.java:176)
>>           at
>>  com.canoo.webtest.steps.VerifyElementText.doExecute(VerifyElementT
>>  ext.java:145)
>>           at
>>  com.canoo.webtest.steps.AbstractTestStepSpecification.execute(Abst
>>  ractTestStepSpecification.java:62)
>>           at
>>  com.canoo.webtest.engine.ConfigurableTestCase.runTest(Configurable
>>  TestCase.java:40)
>>           at junit.framework.TestCase.runBare(TestCase.java:129)
>>           at junit.framework.TestResult$1.protect(TestResult.java:100)
>>           at junit.framework.TestResult.runProtected(TestResult.java:117)
>>           at junit.framework.TestResult.run(TestResult.java:103)
>>           at junit.framework.TestCase.run(TestCase.java:120)
>>           at junit.framework.TestCase.run(TestCase.java:113)
>>           at
>>  com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificat
>>  ionTask.java:54)
>>           at
>>  org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:104)
>>           at org.apache.tools.ant.Task.perform(Task.java:217)
>>           at org.apache.tools.ant.Target.execute(Target.java:184)
>>           at org.apache.tools.ant.Target.performTasks(Target.java:202)
>>           at org.apache.tools.ant.Project.executeTarget(Project.java:601)
>>           at org.apache.tools.ant.Project.executeTargets(Project.java:560)
>>           at org.apache.tools.ant.Main.runBuild(Main.java:454)
>>           at org.apache.tools.ant.Main.start(Main.java:153)
>>           at org.apache.tools.ant.Main.main(Main.java:176)
>>
>>
>>
>>  And then another problem I ancountered some weeks ago.Last time I
>>  asked you whether there is a timeout in HttpUnit when checking the
>>  links, because following link http://www.let.vu.nl/, which exists,
>>  when checked as link (verifylink) with CanooWebTest, sometimes
>>  returns following error message:
>>
>>  Failure: checking WordManager.com
>>  site(com.canoo.webtest.engine.ConfigurableTestCase): Step "Check
>>  links..." (4/7): broken Link(s) : http://www.let.vu.nl/ on
>  > http://www.wordmanager.com:80/welcome.html;
>>
>>
>>  Thank you and best regards
>>  Sandro
>>
>>  _______________________________________________
>>  WebTest mailing list
>>  WebTest@lists.canoo.com
>>  http://lists.canoo.com/mailman/listinfo/webtest
>>
>
>
>
>--__--__--
>
>_______________________________________________
>WebTest mailing list
>WebTest@lists.canoo.com
>http://lists.canoo.com/mailman/listinfo/webtest
>
>
>End of WebTest Digest