On 05/03/2008, Peter Tran <[EMAIL PROTECTED]> wrote: > > Hi, > > I have an application with a summary screen that shows a list of parent > records sorted by most recent creation date. If I add a new parent record, > the summary screen gets automatically refreshed and my parent new record at > the top of the list. If I choose this record, I can then add more detail > line items attached to parent record. > > When I do this via the UI, it's pretty intuitive since I can always choose > the first record in the summary screen which is the most recently added > parent record. When I record a session with JMeter, the same parent record > is always used since this was the original record that was picked when the > test was recorded. > > What I would like to do is: > > 1) Add a parent record. > 2) Hit the database and find the new parent record id. > 3) Use this value to select it to get to the line item detail screen. > 4) Add detail line item for this new parent record. > > Is this doable with JMeter?
Yes, if I understand the above correctly. Just record the session as above. Add a Regular Expression Post-Processor as a child of the sampler in step 2. This should extract the 1st parent id. Use the extracted parent id in step 3. > Is there a component that can be embedded > between recording tasks to hit the database to retrieve dynamic data that > can then be used in later steps? > > Does anyone have any recommendation to accomplish this? > > Thanks! > -Peter > > -- > View this message in context: > http://www.nabble.com/Generating-dynamic-request-from-database-tp15844288p15844288.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]

