Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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.


In reply to Re: How can I test a javascript-enhanced web application on Linux? by pernod
in thread How can I test a javascript-enhanced web application on Linux? by ForgotPasswordAgain

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found