> I already explained how to generate a sample and how to use BSH to > generate an Assertion:
No, you didn't. The reference to generic help you gave me does not contain this. I need a sample BSF/BSH Assetion script that evaluates a variable, please. Say, "If variable > 5 Then Failed, Else Passed" sebb-2-2 wrote: > > On 17/08/2009, Andrey Simonov <au...@bk.ru> wrote: >> >> sebb >> >> You are not answering my question. You are confusing me with people who >> do >> not read manuals before asking questions. >> >> I have read all the help files and I did not find an answer to my >> question! >> >> Could you please be more specific in your answers, in case you really >> know >> how this assertion works, of course. >> >> I need a sample BSF/BSH script that evaluates a variable and send a >> message >> to some listener. > > As I wrote before, Listeners only process samples and Assertions; I > already explained how to generate a sample and how to use BSH to > generate an Assertion: > >> >> >> sebb-2-2 wrote: >> > >> > On 17/08/2009, Andrey Simonov <au...@bk.ru> wrote: >> >> >> >> Yes, but please can you give me an example? >> >> >> >> I have spent half a day of Friday trying to do something with >> variables >> >> in >> >> BSF and BSH assertions and listeners and no luck! >> >> >> >> All I need to do is to be able to evaluate variable and send some >> >> message to >> >> some listener :) >> >> >> >> An example will be greatly appreciated. >> >> >> > >> > Read the following: >> > >> > >> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#BeanShell_Assertion >> > >> > It includes sample code. >> > >> >> >> >> sebb-2-2 wrote: >> >> > >> >> > On 17/08/2009, Andrey Simonov <au...@bk.ru> wrote: >> >> >> >> >> >> That's not what I meant. I meant is there an assertion that can >> >> >> conveniently >> >> >> parse SQL results? >> >> >> >> >> >> E.g. my results are: table headers and 4 values. How do I check >> that >> >> >> e.g. >> >> >> "Average" is < 30? >> >> > >> >> > JDBC can save results as variables. >> >> > >> >> > The Size Assertion is similar to what you want, unfortunately it >> only >> >> > checks size... perhaps that should be extended to check a >> variable. >> >> > >> >> > Meanwhile, use a BSF or BSH Assertion to check the variable. >> >> > >> >> > >> >> >> >> >> >> sebb-2-2 wrote: >> >> >> > >> >> >> > On 17/08/2009, Andrey Simonov <au...@bk.ru> wrote: >> >> >> >> >> >> >> >> Hi! >> >> >> >> >> >> >> >> Is there any sort of response assertion for JDBC requests? >> >> >> > >> >> >> > All the Assertions can be used with JDBC. >> >> >> > >> >> >> >> Or it's RegExp Extractor only? >> >> >> >> >> >> >> >> If there is a way (maybe via BSF request), please provide an >> >> example >> >> >> :) >> >> >> >> >> >> >> >> -- >> >> >> >> View this message in context: >> >> >> >> >> >> >> >> >> >> http://www.nabble.com/JDBC-Response-Assertion-tp25002488p25002488.html >> >> >> >> Sent from the JMeter - User mailing list archive at >> Nabble.com. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> >> >> To unsubscribe, e-mail: >> >> jmeter-user-unsubscr...@jakarta.apache.org >> >> >> >> For additional commands, e-mail: >> >> jmeter-user-h...@jakarta.apache.org >> >> >> >> >> >> >> >> >> >> >> > >> >> >> > >> >> --------------------------------------------------------------------- >> >> >> > To unsubscribe, e-mail: >> jmeter-user-unsubscr...@jakarta.apache.org >> >> >> > For additional commands, e-mail: >> >> jmeter-user-h...@jakarta.apache.org >> >> >> > >> >> >> > >> >> >> > >> >> >> >> >> >> >> >> >> -- >> >> >> View this message in context: >> >> >> >> >> >> http://www.nabble.com/JDBC-Response-Assertion-tp25002488p25005147.html >> >> >> >> >> >> Sent from the JMeter - User mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> >> To unsubscribe, e-mail: >> jmeter-user-unsubscr...@jakarta.apache.org >> >> >> For additional commands, e-mail: >> jmeter-user-h...@jakarta.apache.org >> >> >> >> >> >> >> >> > >> >> > >> --------------------------------------------------------------------- >> >> > To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org >> >> > For additional commands, e-mail: >> jmeter-user-h...@jakarta.apache.org >> >> > >> >> > >> >> > >> >> >> >> -- >> >> >> >> View this message in context: >> >> >> http://www.nabble.com/JDBC-Response-Assertion-tp25002488p25005283.html >> >> >> >> Sent from the JMeter - User mailing list archive at Nabble.com. >> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org >> >> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org >> >> >> >> >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org >> > For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org >> > >> > >> > >> >> -- >> >> View this message in context: >> http://www.nabble.com/JDBC-Response-Assertion-tp25002488p25005482.html >> >> Sent from the JMeter - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org >> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org > For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org > > > -- View this message in context: http://www.nabble.com/JDBC-Response-Assertion-tp25002488p25005738.html Sent from the JMeter - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org