[qmtest] Nesting qm.fields.SetField

Anders Hasselqvist Anders.Hasselqvist at tss.teleca.se
Wed Oct 8 09:06:13 UTC 2003


 -----Original Message-----
 From: Mark Mitchell [mailto:mark at codesourcery.com] 
 Sent: den 7 oktober 2003 16:48
 To: Anders Hasselqvist
 Cc: 'qmtest at codesourcery.com'
 Subject: Re: [qmtest] Nesting qm.fields.SetField

> 
> The other possibility is that SetField.ParseFormValue is not
> working correctly.  You can look through that code; redisplay 
> should get set to 1 when you add a value in the second set field.
> 

First of all I'm running QMTest 2.0.3 so I don't know if this is fixed in
cvs.

As you said it seems to be a problem in SetField.ParseFormValue().

In the "while 1:" loop redisplay is set to 1 if
contained_field.ParseFormValue()
return r == 1 (in case of SetField r = redisplay). Later in the "if action
=="
sequence redisplay is assigned to zero which I think is incorrect.

I fixed it by setting redisplay = 0 at the top of the function and removing
the else clause in the if sequence.

Now it works at least in MozillaFirebird. IE refuses, but I don't really
care
about that.

Regards,
--
Anders Hasselqvist



More information about the qmtest mailing list