Hi,
I am trying use verification mechanism for validating my controls.
So while recording script,
I opened my dialog then i insert verification hook in AGR recorder after
that the status of the recorder is changed to 'select a target (a view,
editor, or dialog). So i try to select my dialog. But dialog is not
getting the focus.Also the status is also not changed in AGR recorder.

As I remember, I also encountered similar problem when trying to create
a verification point on a opened dialog window. Sometime it can work
after several tries (switch between the workbench window in the back and
the dialog, or click some control on the dialog).

When I have time, I think I will look into this problem, because we are
now also creating some verification code for our software.

Regards,
Jimmy Jin

Pushparaj wrote:
> Hi,
> I am trying use verification mechanism for validating my controls.
> So while recording script, I opened my dialog then i insert verification
> hook in AGR recorder after that the status of the recorder is changed to
> 'select a target (a view, editor, or dialog). So i try to select my
> dialog. But dialog is not getting the focus.Also the status is also not
> changed in AGR recorder.
>
> Am i doing anything wrong?
>
> I am using TPTP4.4
> Pushparaj
>

I attached a patch on bug 170279, so that the fix of the 113543 can work
as expected on Redhat Linux. After applied the patch, when you are
recording with a modal dialog, the "Test Case Control Center" (the one
with stop recording button) will not be usable, until you click it to
activate it. Then if you click back to the modal dialog window, the
"Test Case Control Center" will be disabled and the dialog window will
be usable again. (Hard to explain, so better try yourself.)

You can also try some workaround, without the patch, by clicking the
"Test Case Control Center", the background workbench window and the
modal dialog window randomly. Sometime it will come back to correct state.

Regards,
Jimmy Jin

Pushparaj wrote:
> Hi Jimmy Jin,
>
> I click several times and click on some contols also. But still no use i
> am no able to do anything after that. Also the staus in recorder is not
> gettin changed
>
> Thanks,
> Pushparaj
>

Hi Jimmy Jin,
I can able to insert verification hooks in TPTP 4.3. But while running i
am getting some unexpected error.

Here i attached my error message and AGR srcipt

org.eclipse.core.runtime.CoreException
A time-out occurred while running command MacroCommand [select, line 6].
This is likely caused by the presence of an unexpected dialog or the
absence of an expected dialog.
org.eclipse.core.runtime.CoreException: A time-out occurred while running
command MacroCommand [select, line 6]. This is likely caused by the
presence of an unexpected dialog or the absence of an expected dialog.
at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroComman dShell.playback(MacroCommandShell.java:1040)
at
org.eclipse.tptp.test.auto.gui.internal.macro.Macro.playback (Macro.java:346)
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.r unMacro(MacroManager.java:574)
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.a ccess$4(MacroManager.java:568)
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager$1 $MacroOperationWrapper.run(MacroManager.java:501)
at java.lang.Thread.run(Thread.java:595)

I tested my test script after removing those lines also. But there is no
use.
I think TPTP is not able to execute the script after the verification
command. Because up to verification method it i sgoing fine. But after
that it was hang for sometime then giving the error messages in some un
expected line numbers.

Look at your script carefully again, and find that there are 2 "New
Project" Shell, but I guess actually it only opens 1, and then do
something in it and then verify it, right? So I think you can try to
combine the 2 <shell> into 1 (see below). This is a problem when
recording the verification. Usually after recording, I will double check
(by reading it) if the script is doing what I expect it to do.

Pushparaj wrote:
> Hi jimmy Jin,
>
> I tested my test script after removing those lines also. But there is no
> use.
> I think TPTP is not able to execute the script after the verification
> command. Because up to verification method it i sgoing fine. But after
> that it was hang for sometime then giving the error messages in some un
> expected line numbers.
>
> Thanks,
> Pushparaj
>