You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by phanikishan <ph...@gmail.com> on 2009/07/22 12:19:19 UTC

JDBC query to fill in a form

Hey,
I have a web application which mainly involves filling up forms. I want to
test this application.
However one of the parameters in the form has to be filled up by after
making a database (sql)query based on which I get the info. What is the best
way to go about this?
Can I use the JDBC SQL request feature in the JMeter API or is it better to
write the data to a file and then use CSV data config to read the info from
the file?

Phani Kishan
PS: I was also wondering if directly using sql query to get the info will
affect the performance.
-- 
View this message in context: http://www.nabble.com/JDBC-query-to-fill-in-a-form-tp24603575p24603575.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: JDBC query to fill in a form

Posted by sebb <se...@gmail.com>.
On 28/07/2009, phanikishan <ph...@gmail.com> wrote:
>
>
>
>  sebb-2-2 wrote:
>  >
>  > Depends.
>  >
>  > If you only need to fetch small amounts of data, then it can be done
>  > as part of the test.
>  >
>  > For large amounts of data, I would recommend using a separate step to
>  > create a file for use by CSV Dataset.
>  >
>  >
>
> Hey, thanks. It is a small amount of data and I intend to do it with a JDBC
>  request itself. But I got a No pool created (java.sql.SQLException) when I
>  tried doing so. If I have to use the same variable name bound to the pool in
>  my JDBC request sampler, how would I use the value during the test?

The pool name is distinct from any other variable names; you just have
to make sure that JDBC Config and Sampler use the same name.

>  Thanks
>
>  Phani Kishan
>
>
>  --
>  View this message in context: http://www.nabble.com/JDBC-query-to-fill-in-a-form-tp24603575p24692721.html
>
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: JDBC query to fill in a form

Posted by phanikishan <ph...@gmail.com>.


sebb-2-2 wrote:
> 
> Depends.
> 
> If you only need to fetch small amounts of data, then it can be done
> as part of the test.
> 
> For large amounts of data, I would recommend using a separate step to
> create a file for use by CSV Dataset.
> 
> 
Hey, thanks. It is a small amount of data and I intend to do it with a JDBC
request itself. But I got a No pool created (java.sql.SQLException) when I
tried doing so. If I have to use the same variable name bound to the pool in
my JDBC request sampler, how would I use the value during the test?
Thanks

Phani Kishan

-- 
View this message in context: http://www.nabble.com/JDBC-query-to-fill-in-a-form-tp24603575p24692721.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: JDBC query to fill in a form

Posted by sebb <se...@gmail.com>.
Depends.

If you only need to fetch small amounts of data, then it can be done
as part of the test.

For large amounts of data, I would recommend using a separate step to
create a file for use by CSV Dataset.

On 22/07/2009, phanikishan <ph...@gmail.com> wrote:
>
>  Hey,
>  I have a web application which mainly involves filling up forms. I want to
>  test this application.
>  However one of the parameters in the form has to be filled up by after
>  making a database (sql)query based on which I get the info. What is the best
>  way to go about this?
>  Can I use the JDBC SQL request feature in the JMeter API or is it better to
>  write the data to a file and then use CSV data config to read the info from
>  the file?
>
>  Phani Kishan
>  PS: I was also wondering if directly using sql query to get the info will
>  affect the performance.
>
> --
>  View this message in context: http://www.nabble.com/JDBC-query-to-fill-in-a-form-tp24603575p24603575.html
>  Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org