[Webtest] possible renaming/refactoring

Marc Guillemot webtest@lists.canoo.com
Tue, 04 Jan 2005 15:49:15 +0100


+1 for me


In direction simplification I have some ideas to allow newbies to be able to write first webtest like

File myFirstTestFile.xml:

<project name="myFirstTest" default="myTarget">
   <target name="myTarget">
      <webtest>
        <invoke url="http://mySite/myPage.html"/>
        <verifytitle text="my title"/>
      </webtest>
   </target>
</project>

and just run:

ant -f $WEBTEST_HOME/testRunner.xml -Dtestfile=myFirstTestFile.xml

but htmlunit currently takes all my time...

Marc.


Paul King wrote:
> 
> I would like to suggest a possible renaming/refactoring of a small 
> handful of classes. It will make no functional change to the codebase. 
> What do others think?
> 
> Rename engine.WebTest -> engine.TestSpec
> Move/rename self.WebTestTest -> engine.TestSpecTest
> Rename ant.TestSpecificationTask -> ant.TestSpecTask
> Rename ant.TestSpecificationTaskTest -> ant.TestSpecTaskTest
> 
> This will remove the WebTest name which is confusing given the
> JUnit naming conventions and also align the name with the testSpec ant 
> task which is really just a "wrapper" for the test specification.
> 
> I am happy to do the work but want other people to be happy with the 
> idea before starting.
> 
> Cheers, Paul.
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>