Noel O'Brien wrote:
Hi, I know JMeter doesn't execute any JS returned by web pages; I'm just wondering if it's technically possibly to execute it (e.g. in a Post Processor) using the Rhino engine in Java or some other mechanism? The reason I'm asking is because I'm trying to access websites which rely heavily on JS, particularly for login. Not being able to execute JS means I just get presented with a login page each time I try access other page. Regards, Noel
In theory this is possible but in practice it isn't. At least not without a lot of work. First, Rhino only has a single name space and lacks a DOM. Any JavaScript that is called to manipulate the page (which includes just about all of it) will fail. In the past I've found it much more practical to use an http sampler to make the request and a beanshell post processor to deal with the results. It works but it's a bit messy and it doesn't scale (as a development practice).

Kind regards,
Kirk

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to