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!

Reply via email to