Re[1]: [Webtest] JavaScript support (again)
Costin
webtest@lists.canoo.com
Mon, 22 Nov 2004 16:26:25 +0200
The question is unclear because I myself am a little bit confused
about this topic :).
>> ....
>> My question remains the same, where can I see the support for
>> JavaScript? What libraries are used (I assume Rhino) and is there any
>> plugin mechanism?
>I don't fully understand the question. Rhino is the core JavaScript
engine (the js-1.5R4.jar) >but it has no idea of
>what
>for instance a document or a form is. This is the job of htmlunit to
"present" this objects to >rhino and to notify him
>that these objects have some methods and properties. The js
configuration page of htmlunit >gives an idea of what is
>currently supported.
>What do you mean with plugin?
By plugins I'm thinking of a way to extend functionality. For example
I'm thinking of verifyxpath and verifylabel - one can write it's own
piece of functionality and places it inside WebTest canoo.
This question is mainly related to the internals of webtest - I didn't
have much time to check the code much but I assume treating javascript
options is the same as with defining any other test (or xml tags)
inside webtest.
Another question (that maybe is obvious but I could not find it inside
the documentation) is the ability of defining a task which can be
available inside xml webtest parses. What are the requirements of
making a new piece of code (for example a regex ) that can have it's
own xml tag for webtest?
>From what I saw this is related to Ant but again, due to lack of time
and documentation to read I couldn't find a response right away (or
maybe I somehow missed something).
>> What functions from JavaScript are supported and how can I test them?
>cf htmlunit js' configuration page. How would you like to test them?
I was thinking of having some sample example with the basic functions
from javascript - like onclick & co. You have a simple page and a test
associated (which has an example for fail and one for success).
Thanks for the pointers.
Costin