Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: How can I test a javascript-enhanced web application on Linux?

by pernod (Chaplain)
on Mar 13, 2005 at 11:59 UTC ( [id://439082]=note: print w/replies, xml ) Need Help??


in reply to How can I test a javascript-enhanced web application on Linux?

I have faced the same problems, and found som half-baked solutions that at least takes me part of the way ...

iOpus (No realtion to iPod, AFAIK) has a scripting-plugin for Internet Explorer (costs 30$, but they provide a 30 day trial download) that lets you record a browsing session. Using these recorded macros (as they call them), you can test a user scenario such as logging on or entering a form. The macros can be called from the command line and return a success value, and can therefore be baked into a Test::More regime. The main drawback is that it is an Internet Invader only solution, and as far as I know, the macros can not be run from other OS'es. From their website it looks like their latest version can be scripted from Perl, but I haven't tried this myself so I don't know if this can help in any way.

Another possible solution is to use MaxQ, which does something similar to iOpus. This one uses a proxy for recording browsing sessions, though. It will therefore not really capture anything javascript, since this is purely client side. MaxQ is open source, written in Java and browser sessions are scriptet with the Java implementation of Python called Jython.

But in the end, perrin is of course right in that you have to test all browsers quirks and weaknesses to verify that your scripts works. I don't know any way to automate this yet, so I really hope someone provides you with a solution. In the meantime, take a look at Peter-Paul Koch's website about browser independent javascripting. Best javascript resource I've found to date ...

Good luck!

pernod
--
Mischief. Mayhem. Soap.

  • Comment on Re: How can I test a javascript-enhanced web application on Linux?

Replies are listed 'Best First'.
Re^2: How can I test a javascript-enhanced web application on Linux?
by tphyahoo (Vicar) on Mar 14, 2005 at 10:11 UTC
    Last I checked, only the stripped down version cost $30. The "professional" version, which allows scripts of unlimited length, and windows scripting host control, and other useful stuff, was in the hundreds. The different versions of iopus Internet Macros vary widely in functionality and price, so be sure to read the fine print on the feature comparison page. I do think it's worth checking this product out, as it could be very useful in certain situations.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://439082]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-24 18:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found