[Http-webtest-general] on_response -> DBI
Brought to you by:
m_ilya,
richardanderson
From: Sandro W. <sa...@wa...> - 2004-03-24 17:24:43
|
Hi all, sorry for the stupid question, are the DBI functions within "on_response" limited any how??? I'm trying to do inserts on response but I'm not able to write into the database. The DBI-Elements work if i run them isolated. ############################################################## on_start = { require DBI; $dbh = DBI->connect('DBI:dbd:db;host:3306', "user", "pass"); } on_finish = { $dbh->disconnect; } test_name = Start Seite show_cookies = yes max_rtime = 1.00 url = http://host/ text_require = ( "blah" ) on_response = { $sth = $dbh->do("INSERT INTO testdb(blah, blah....)); # $sth = $dbh->prepare("INSERT INTO testdb(blah, blah....)); # $sth->execute(); } end_test ############################################################## Cheers, Sandro |