Customizing WebTest

Akif Sawafteh <asawafteh-MjsS2RVJ+a/[email protected]>
Newsgroups gmane.comp.web.canoo.webtest
Message-ID <CACv2pCaDHA0gJsgNV7gYLybTdHq2HSLGQaUrc59WiaZy=Vndzg@mail.gmail.com>
Hello everyone,

I'm trying to customize WebTest by implementing the interface
IWebtestCustomizer. The documentation says that:
"This interface is intended for users that need to customize WebTest. When
a WebtestTask is executed, it will look at Project.getReference(String)
with the key KEY for a IWebtestCustomizer. If a IWebtestCustomizer is
found, its methods will be called (see methods descriptions). If now
reference is found, a DefaultWebtestCustomizer will be instantiated and
used.".

I don't know exactly how should I define the reference
"wt.webtestCustomizer". I tried executing the following script:

<?xml version="1.0"?>
<!DOCTYPE project SYSTEM "../dtd/Project.dtd">
<project default="test" basedir=".">

    <path id="wt.webtestCustomizer">
        <pathelement path="/classes/MyWebtestCustomizer" />
    </path>

    <target name="test">
        <webtest name="Invoke google.com">
            <invoke url="http://www.google.com"/>
            <verifyTitle text="Google"/>
        </webtest>
    </target>

</project>

but I got this error:

"Could not create type webtest due to Provided customizer is not a
IWebtestCustomizer: /classes/MyWebtestCustomizer"

My question is, how should I add the reference to the Canoo Webtest script?


Thanks in advance!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.