Did u try before to run javascript using BSF Assertion? Cham sebb-2-2 wrote: > > On 08/07/2008, cham <[EMAIL PROTECTED]> wrote: >> >> Hi again, >> actually what I am doing now is trying to validate the syntaxe of my >> sampler >> HTTP result. >> I used (save responses to a file) to save my json file, and what I need >> now >> is to try one of the followings: >> * Try to integrate JSLint in JMeter to do the validation. >> * Try to write a function that read the result file and validate the >> syntaxe. >> I dont know if the implementation one of these methods is possible!!! > > It looks like JSLint is available in a Rhinoscript version. > > You could write your own Assertion to do this, or use BSF/Javascript > Assertion: > > http://jakarta.apache.org/jmeter/usermanual/component_reference.html#BSF_Assertion > >> Regards, >> Cham >> >> >> kirk-17 wrote: >> > >> > Hi, >> > >> > I've not found a good way to run JavaScript. Many of the interesting >> > scripts >> > rely on the DOM. JMeter doesn't have a DOM.... The best I've been able >> to >> > do >> > if figure out what is needed from the JS and use BeanShell to make it >> > work. >> > >> > Regards, >> > Kirk >> > >> > On Tue, Jul 8, 2008 at 9:13 AM, Andrey Beznogov >> <[EMAIL PROTECTED]> >> > wrote: >> > >> >> Hi, >> >> >> >> I never tried it myself, but as I understand you can use the BSF >> >> Sampler element, which can process the JavaScript you put into it. >> >> >> >> >> >> >> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#BSF_Sampler >> >> >> >> I hope that helps. >> >> >> >> Andrey >> >> >> >> On Mon, Jul 7, 2008 at 7:30 PM, cham <[EMAIL PROTECTED]> wrote: >> >> > >> >> > Hello eveybody, >> >> > I have a js script that I need to call using the javascript >> function in >> >> > JMeter. But I dont know how to call it? >> >> > I understood that the users of jemeter can define their own >> functions >> >> but >> >> I >> >> > dont know how. >> >> > Any suggestions ? >> >> > >> >> > Thanx in advance >> >> > -- >> >> > View this message in context: >> >> >> http://www.nabble.com/external-java-script-function-tp18319419p18319419.html >> >> > Sent from the JMeter - User mailing list archive at Nabble.com. >> >> > >> >> > >> >> > >> --------------------------------------------------------------------- >> >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> > For additional commands, e-mail: >> [EMAIL PROTECTED] >> >> > >> >> > >> >> >> >> >> >> >> >> -- >> >> diem perdidi >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > >> > -- >> > Kind regards, >> > Kirk Pepperdine >> > >> > http://www.kodewerk.com >> > http://www.javaperformancetuning.com >> > http//www.cretesoft.com >> > >> > >> >> >> -- >> View this message in context: >> http://www.nabble.com/external-java-script-function-tp18319419p18338549.html >> >> Sent from the JMeter - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > >
-- View this message in context: http://www.nabble.com/external-java-script-function-tp18319419p18355957.html Sent from the JMeter - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]