[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Re: Problem with recreation of session_info table
Here is the code:
-------------------------
while($counter < 11) {
my $servletName =
"LoginServlet?login=fakelogin0".$counter."&CustPwd=fake";
my $urlbase = "http://localhost/~sergey/csp";
my $url = $urlbase."/".$servletName;
print $url."\n";
my $ua = LWP::UserAgent->new;
my $req = HTTP::Request->new(POST => $url);
$req->content_type('application/x-www-form-urlencoded');
my $res = $ua->request($req);
if ($res->is_success) {
my $line = $res->content;
$line =~ s/\n+//g;
$line =~ /<font face=Courier size=2
color=\"#FF0033\"\"><i>(.+)<\/i><\/font>/;
$message = $1;
} else {
die &test_die($test, $url, $res->status_line);
}
$counter++;
print $message."\n";
if($message eq "Login/password combination is invalid") {
print &test_ok($test);
} else {
print &test_not_ok($test);
}
}
-----------
When I run it, it gives the exceptions in the error log that I sent in my
previous message.
> I see the error messages. I need to see the code that causes 'em, mixed
> with
> error messages.
>
> 2007/4/16, sergey@total-knowledge.com <sergey@total-knowledge.com>:
>>
>> I'm working on test suit for login functionality and I noticed that
>> after
>> first unsuccessful attempt to login I start getting messages that
>> session_info table doesn't exist.
>> My script tries to login with fake logins. So here is the output that I
>> get:
>>
>> -------------
>> Error: Exception in CODBCDatabase::queryExecute: Unknown error;
>> ERROR: USER with login (fakelogin001) does not exist
>>
>> Error: Exception in CODBCDatabase::queryExecute: Unknown error;
>> ERROR: relation with OID 47353 does not exist
>>
>> Error: Exception in CODBCDatabase::queryExecute: Unknown error;
>> ERROR: relation with OID 47353 does not exist
>>
>> Error: Exception in CODBCDatabase::queryExecute: Unknown error;
>> ERROR: relation with OID 47353 does not exist
>>
>> .......................
>>
>> Any ideas?
>>
>>
>> -------------
>>
>>
>
>
> --
> Alexey Parshin,
> http://www.sptk.net
>