|[AGR] Verification hooks in position based recording [message #66761]
||Sun, 16 April 2006 14:48
| Barbara Rosi-Schwartz
Registered: July 2009
I am testing behaviour related to inserting text in a StyledText
component which contains multiple lines of text. The StyledText accepts
both plain text and a predefined block of text that the user has
selected. I need to test that predefined blocks of text are inserted in
the correct location and that the current position of the caret is as
expected (i.e. at the end of the block).
Furthermore, since these blocks of text are not editable internally, I
need to perform various tests related to 1) the caret jumping from one
end of the block to the other when the user attempts to enter the block
region and 2) a selection in the text spanning the whole of the block
when the user attempts to select only part of it.
I assume that, for this type of test, I need to use position based
However, when I try to insert a verification point in position based
recording mode to check, say, the caret offset, I invariably get an
error message in the Control Centre Dialog stating "The event type is
not of type SWT.FocusIn".
What am I doing wrong?
|Re: [AGR] Verification hooks in position based recording [message #66978 is a reply to message #66862]
||Tue, 18 April 2006 15:43
| No real name
Registered: July 2009
No, that's not standard procedure (I wasn't aware of the problem until this|
post). Please go ahead with filing the defect.
"Barbara Rosi-Schwartz" <Barbara.Rosi-Schwartz@Etish.org> wrote in message
> Ali Mehregani wrote:
> > Why do you need position based recording enabled when inserting the
> > verification hook?
> > Can't you turn it off before inserting the hook?
> Yes, I figured that out while playing with things during the weekend.
> I guess the most important thing I was looking for in this email was to
> verify that I indeed need partial position based recording to perform
> the kind of tests I need to perform; I think you implicitly answered
> that I do.
> > You can file a bugzilla for this issue. This is likely caused because
> > the order of events that is expected when a verification hook is
> > Position-based recording is likely affecting the ordering of the
> > events.
> I am not quite clear on this suggestion. If it should be possible to
> insert verification hooks in position based recording, I will file the
> bug. But if the trick you mention at the beginning of your email is
> standard operating procedure, then I am satisfied. Please let me know.
> Thank you very much, Ali, for your prompt and excellent help.
Powered by FUDForum
. Page generated in 0.11010 seconds