Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » [AGR] - invoke external process from AGR macro
[AGR] - invoke external process from AGR macro [message #112591] Tue, 18 September 2007 20:48 Go to next message
Eclipse UserFriend
Originally posted by: shrao.ebay.com

I was wondering if there is a thread/documentation that talks about how to
invoke a command-line process from the macro file.
I am using eclipse sdk 3.2.2 with TPTP 4.3.1 and one of my validations is
content of generated (text) files.
I am unable to see the result of my validations/verifications because
- The System.out.println in VerificationClass is not appearing on my ede
console
- I am unable to execute my test suite in standard mode. The new instance
of ede is launched; but the test suite is not executed.

Appreciate any input.

Thanks,
Shantala
Re: [AGR] - invoke external process from AGR macro [message #112776 is a reply to message #112591] Wed, 19 September 2007 14:12 Go to previous messageGo to next message
Joe Toomey is currently offline Joe ToomeyFriend
Messages: 79
Registered: July 2009
Member
Hi Shantala,

> - I am unable to execute my test suite in standard mode. The new
> instance of ede is launched; but the test suite is not executed.

Can you please verify that you added invocations of your test cases in
the "Behavior" tab of the AGR test suite editor?

> I was wondering if there is a thread/documentation that talks about
> how to invoke a command-line process from the macro file.

I suggest you record a verification hook, which inserts a call to a
generated JUnit method that you are responsible for authoring. The
verification hook assumes that you are doing GUI verification (and will
ask for a editor / view context when you insert it), but there's nothing
to prevent you from doing whatever sort of verification you want in the
Java code (including launching processes if necessary.)

Hope this helps,
--Joe

Shantala wrote:
> I was wondering if there is a thread/documentation that talks about how
> to invoke a command-line process from the macro file.
> I am using eclipse sdk 3.2.2 with TPTP 4.3.1 and one of my validations
> is content of generated (text) files.
> I am unable to see the result of my validations/verifications because
> - The System.out.println in VerificationClass is not appearing on my
> ede console
> - I am unable to execute my test suite in standard mode. The new
> instance of ede is launched; but the test suite is not executed.
>
> Appreciate any input.
>
> Thanks,
> Shantala
>
Re: [AGR] - invoke external process from AGR macro [message #112828 is a reply to message #112776] Wed, 19 September 2007 18:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shrao.ebay.com

Thanks, Joe.

Yes. I have added invocations of my test case in the 'Behavior' tab (as
per the description in
http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI.html)

As for using the verification hook class, I did record a couple of
verifications and I added System.out.println statements in the
VerificationClass.java file (created in the TestContainer project). I was
hoping to see the lines printed in the ede console window during playback.
It does not seem to work that way.
Where do these lines get printed?
I am trying to find CVS\src for tptp where, I believe, they have examples
of test verification hooks.

Thanks,
Shantala

Hi Shantala,

> - I am unable to execute my test suite in standard mode. The new
> instance of ede is launched; but the test suite is not executed.

Can you please verify that you added invocations of your test cases in the
"Behavior" tab of the AGR test suite editor?

> I was wondering if there is a thread/documentation that talks about
> how to invoke a command-line process from the macro file.

I suggest you record a verification hook, which inserts a call to a
generated JUnit method that you are responsible for authoring. The
verification hook assumes that you are doing GUI verification (and will
ask for a editor / view context when you insert it), but there's nothing
to prevent you from doing whatever sort of verification you want in the
Java code (including launching processes if necessary.)

Hope this helps,
--Joe

Shantala wrote:

I was wondering if there is a thread/documentation that talks about how to
invoke a command-line process from the macro file.
I am using eclipse sdk 3.2.2 with TPTP 4.3.1 and one of my validations is
content of generated (text) files.
I am unable to see the result of my validations/verifications because
- The System.out.println in VerificationClass is not appearing on my ede
console
- I am unable to execute my test suite in standard mode. The new instance
of ede is launched; but the test suite is not executed.

Appreciate any input.

Thanks,
Shantala
Re: [AGR] - invoke external process from AGR macro [message #112840 is a reply to message #112828] Thu, 20 September 2007 02:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shrao.ebay.com

I am able to use verification hook class to invoke external processes.
Thanks.

I was wondering if there are any leads for the standard mode execution
problem. I am unable to get my testsuite running in standard mode. I have
the setup as per
http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI.html

Thanks,
Shantala


Shantala wrote:


Thanks, Joe.

Yes. I have added invocations of my test case in the 'Behavior' tab (as
per the description in
http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI.html)

As for using the verification hook class, I did record a couple of
verifications and I added System.out.println statements in the
VerificationClass.java file (created in the TestContainer project). I was
hoping to see the lines printed in the ede console window during playback.
It does not seem to work that way.
Where do these lines get printed? I am trying to find CVS\src for tptp
where, I believe, they have examples of test verification hooks.
Thanks,
Shantala

Joe wrote:

Hi Shantala,

> - I am unable to execute my test suite in standard mode. The new
> instance of ede is launched; but the test suite is not executed.

Can you please verify that you added invocations of your test cases in the
"Behavior" tab of the AGR test suite editor?

> I was wondering if there is a thread/documentation that talks about
> how to invoke a command-line process from the macro file.

I suggest you record a verification hook, which inserts a call to a
generated JUnit method that you are responsible for authoring. The
verification hook assumes that you are doing GUI verification (and will
ask for a editor / view context when you insert it), but there's nothing
to prevent you from doing whatever sort of verification you want in the
Java code (including launching processes if necessary.)

Hope this helps,
--Joe

Shantala wrote:

I was wondering if there is a thread/documentation that talks about how to
invoke a command-line process from the macro file.
I am using eclipse sdk 3.2.2 with TPTP 4.3.1 and one of my validations is
content of generated (text) files.
I am unable to see the result of my validations/verifications because
- The System.out.println in VerificationClass is not appearing on my ede
console
- I am unable to execute my test suite in standard mode. The new instance
of ede is launched; but the test suite is not executed.

Appreciate any input.

Thanks,
Shantala
Re: [AGR] - invoke external process from AGR macro [message #113645 is a reply to message #112828] Mon, 01 October 2007 11:20 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Shantala,
Standard out and error are captured during test executing and converted
to message events, which are stored in the test results file (*.execution).
Note, these messages may be truncated in TPTP 4.3.1 due to defect
https://bugs.eclipse.org/bugs/show_bug.cgi?id=198797.

Paul
"Shantala" <shrao@ebay.com> wrote in message
news:a8b39d8450b36ef2d5d5011dda1e85e6$1@www.eclipse.org...
> Thanks, Joe.
>
> Yes. I have added invocations of my test case in the 'Behavior' tab (as
> per the description in
> http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI.html)
>
> As for using the verification hook class, I did record a couple of
> verifications and I added System.out.println statements in the
> VerificationClass.java file (created in the TestContainer project). I was
> hoping to see the lines printed in the ede console window during playback.
> It does not seem to work that way.
> Where do these lines get printed? I am trying to find CVS\src for tptp
> where, I believe, they have examples of test verification hooks.
> Thanks,
> Shantala
> Hi Shantala,
>
> > - I am unable to execute my test suite in standard mode. The new
> > instance of ede is launched; but the test suite is not executed.
>
> Can you please verify that you added invocations of your test cases in the
> "Behavior" tab of the AGR test suite editor?
>
> > I was wondering if there is a thread/documentation that talks about
> > how to invoke a command-line process from the macro file.
>
> I suggest you record a verification hook, which inserts a call to a
> generated JUnit method that you are responsible for authoring. The
> verification hook assumes that you are doing GUI verification (and will
> ask for a editor / view context when you insert it), but there's nothing
> to prevent you from doing whatever sort of verification you want in the
> Java code (including launching processes if necessary.)
>
> Hope this helps,
> --Joe
>
> Shantala wrote:
>
> I was wondering if there is a thread/documentation that talks about how to
> invoke a command-line process from the macro file.
> I am using eclipse sdk 3.2.2 with TPTP 4.3.1 and one of my validations is
> content of generated (text) files.
> I am unable to see the result of my validations/verifications because
> - The System.out.println in VerificationClass is not appearing on my ede
> console
> - I am unable to execute my test suite in standard mode. The new instance
> of ede is launched; but the test suite is not executed.
>
> Appreciate any input.
>
> Thanks,
> Shantala
>
>
Re: [AGR] - invoke external process from AGR macro [message #113657 is a reply to message #112840] Mon, 01 October 2007 11:22 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Shantala,
Are you able to create a 'hello world' test case (a.g. creates a Java
project), add it to the behavior, and run the test suite? Also, can you
attach your test suite to your reply so we can debug?

Thanks,

Paul
"Shantala" <shrao@ebay.com> wrote in message
news:5b9f2932c32ccfd8f363e897c2b28889$1@www.eclipse.org...
>I am able to use verification hook class to invoke external processes.
>Thanks.
>
> I was wondering if there are any leads for the standard mode execution
> problem. I am unable to get my testsuite running in standard mode. I have
> the setup as per
> http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI.html
>
> Thanks,
> Shantala
>
>
> Shantala wrote:
>
>
> Thanks, Joe.
>
> Yes. I have added invocations of my test case in the 'Behavior' tab (as
> per the description in
> http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI.html)
>
> As for using the verification hook class, I did record a couple of
> verifications and I added System.out.println statements in the
> VerificationClass.java file (created in the TestContainer project). I was
> hoping to see the lines printed in the ede console window during playback.
> It does not seem to work that way.
> Where do these lines get printed? I am trying to find CVS\src for tptp
> where, I believe, they have examples of test verification hooks. Thanks,
> Shantala
> Joe wrote:
>
> Hi Shantala,
>
> > - I am unable to execute my test suite in standard mode. The new
> > instance of ede is launched; but the test suite is not executed.
>
> Can you please verify that you added invocations of your test cases in the
> "Behavior" tab of the AGR test suite editor?
>
> > I was wondering if there is a thread/documentation that talks about
> > how to invoke a command-line process from the macro file.
>
> I suggest you record a verification hook, which inserts a call to a
> generated JUnit method that you are responsible for authoring. The
> verification hook assumes that you are doing GUI verification (and will
> ask for a editor / view context when you insert it), but there's nothing
> to prevent you from doing whatever sort of verification you want in the
> Java code (including launching processes if necessary.)
>
> Hope this helps,
> --Joe
>
> Shantala wrote:
>
> I was wondering if there is a thread/documentation that talks about how to
> invoke a command-line process from the macro file.
> I am using eclipse sdk 3.2.2 with TPTP 4.3.1 and one of my validations is
> content of generated (text) files.
> I am unable to see the result of my validations/verifications because
> - The System.out.println in VerificationClass is not appearing on my ede
> console
> - I am unable to execute my test suite in standard mode. The new instance
> of ede is launched; but the test suite is not executed.
>
> Appreciate any input.
>
> Thanks,
> Shantala
>
>
Re: [AGR] - invoke external process from AGR macro [message #114740 is a reply to message #113657] Tue, 09 October 2007 21:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shrao.ebay.com

Hi Paul,

I created a 'hello world' testcase. I created a Java project and added a
new package & deleted the project. This test executes perfectly in
quick-mode. However, in standard mode, there is a problem. A new instance
of ede is launched. But the test is not executed. The progress bar hangs
at 60% for over 2 minutes and then this error message is displayed:
"IWAT4039E The Test Execution Harness reported the following
problems:org.eclipse.hyades.internal.execution.local.control .InactiveProcessException "

Error log says - An exception stack trace is not available.

How can we send attachments?

Thanks,
Shantala

Paul Slauenwhite wrote:

> Hi Shantala,
> Are you able to create a 'hello world' test case (a.g. creates a Java
> project), add it to the behavior, and run the test suite? Also, can you
> attach your test suite to your reply so we can debug?

> Thanks,

> Paul
> "Shantala" <shrao@ebay.com> wrote in message
> news:5b9f2932c32ccfd8f363e897c2b28889$1@www.eclipse.org...
>>I am able to use verification hook class to invoke external processes.
>>Thanks.
>>
>> I was wondering if there are any leads for the standard mode execution
>> problem. I am unable to get my testsuite running in standard mode. I have
>> the setup as per
>> http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI.html
>>
>> Thanks,
>> Shantala
>>
>>
>> Shantala wrote:
>>
>>
>> Thanks, Joe.
>>
>> Yes. I have added invocations of my test case in the 'Behavior' tab (as
>> per the description in
>> http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI.html)
>>
>> As for using the verification hook class, I did record a couple of
>> verifications and I added System.out.println statements in the
>> VerificationClass.java file (created in the TestContainer project). I was
>> hoping to see the lines printed in the ede console window during playback.
>> It does not seem to work that way.
>> Where do these lines get printed? I am trying to find CVSsrc for tptp
>> where, I believe, they have examples of test verification hooks. Thanks,
>> Shantala
>> Joe wrote:
>>
>> Hi Shantala,
>>
>> > - I am unable to execute my test suite in standard mode. The new
>> > instance of ede is launched; but the test suite is not executed.
>>
>> Can you please verify that you added invocations of your test cases in the
>> "Behavior" tab of the AGR test suite editor?
>>
>> > I was wondering if there is a thread/documentation that talks about
>> > how to invoke a command-line process from the macro file.
>>
>> I suggest you record a verification hook, which inserts a call to a
>> generated JUnit method that you are responsible for authoring. The
>> verification hook assumes that you are doing GUI verification (and will
>> ask for a editor / view context when you insert it), but there's nothing
>> to prevent you from doing whatever sort of verification you want in the
>> Java code (including launching processes if necessary.)
>>
>> Hope this helps,
>> --Joe
>>
>> Shantala wrote:
>>
>> I was wondering if there is a thread/documentation that talks about how to
>> invoke a command-line process from the macro file.
>> I am using eclipse sdk 3.2.2 with TPTP 4.3.1 and one of my validations is
>> content of generated (text) files.
>> I am unable to see the result of my validations/verifications because
>> - The System.out.println in VerificationClass is not appearing on my ede
>> console
>> - I am unable to execute my test suite in standard mode. The new instance
>> of ede is launched; but the test suite is not executed.
>>
>> Appreciate any input.
>>
>> Thanks,
>> Shantala
>>
>>
Re: [AGR] - invoke external process from AGR macro [message #114753 is a reply to message #113645] Tue, 09 October 2007 21:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shrao.ebay.com

Thanks, Paul.

I am unable to find a *.execution file. I looked in the current workspace
folders. Is this file created when the tests are run in quick mode? I have
not been able to run my tests in standard mode.

Thanks,
Shantala

Paul Slauenwhite wrote:

> Hi Shantala,
> Standard out and error are captured during test executing and converted
> to message events, which are stored in the test results file (*.execution).
> Note, these messages may be truncated in TPTP 4.3.1 due to defect
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=198797.

> Paul
> "Shantala" <shrao@ebay.com> wrote in message
> news:a8b39d8450b36ef2d5d5011dda1e85e6$1@www.eclipse.org...
>> Thanks, Joe.
>>
>> Yes. I have added invocations of my test case in the 'Behavior' tab (as
>> per the description in
>> http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI.html)
>>
>> As for using the verification hook class, I did record a couple of
>> verifications and I added System.out.println statements in the
>> VerificationClass.java file (created in the TestContainer project). I was
>> hoping to see the lines printed in the ede console window during playback.
>> It does not seem to work that way.
>> Where do these lines get printed? I am trying to find CVSsrc for tptp
>> where, I believe, they have examples of test verification hooks.
>> Thanks,
>> Shantala
>> Hi Shantala,
>>
>> > - I am unable to execute my test suite in standard mode. The new
>> > instance of ede is launched; but the test suite is not executed.
>>
>> Can you please verify that you added invocations of your test cases in the
>> "Behavior" tab of the AGR test suite editor?
>>
>> > I was wondering if there is a thread/documentation that talks about
>> > how to invoke a command-line process from the macro file.
>>
>> I suggest you record a verification hook, which inserts a call to a
>> generated JUnit method that you are responsible for authoring. The
>> verification hook assumes that you are doing GUI verification (and will
>> ask for a editor / view context when you insert it), but there's nothing
>> to prevent you from doing whatever sort of verification you want in the
>> Java code (including launching processes if necessary.)
>>
>> Hope this helps,
>> --Joe
>>
>> Shantala wrote:
>>
>> I was wondering if there is a thread/documentation that talks about how to
>> invoke a command-line process from the macro file.
>> I am using eclipse sdk 3.2.2 with TPTP 4.3.1 and one of my validations is
>> content of generated (text) files.
>> I am unable to see the result of my validations/verifications because
>> - The System.out.println in VerificationClass is not appearing on my ede
>> console
>> - I am unable to execute my test suite in standard mode. The new instance
>> of ede is launched; but the test suite is not executed.
>>
>> Appreciate any input.
>>
>> Thanks,
>> Shantala
>>
>>
Re: [AGR] - invoke external process from AGR macro [message #114945 is a reply to message #114753] Wed, 10 October 2007 11:02 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Shantala,
The *.execution is only created when running in standard mode. See my
other reply on this thread regarding the problems running in standard mode.

Paul
"Shantala" <shrao@ebay.com> wrote in message
news:5bddb0d046a7699cb2e8c875f4baec09$1@www.eclipse.org...
> Thanks, Paul.
>
> I am unable to find a *.execution file. I looked in the current workspace
> folders. Is this file created when the tests are run in quick mode? I have
> not been able to run my tests in standard mode.
>
> Thanks,
> Shantala
>
> Paul Slauenwhite wrote:
>
>> Hi Shantala,
>> Standard out and error are captured during test executing and
>> converted to message events, which are stored in the test results file
>> (*.execution). Note, these messages may be truncated in TPTP 4.3.1 due to
>> defect https://bugs.eclipse.org/bugs/show_bug.cgi?id=198797.
>
>> Paul
>> "Shantala" <shrao@ebay.com> wrote in message
>> news:a8b39d8450b36ef2d5d5011dda1e85e6$1@www.eclipse.org...
>>> Thanks, Joe.
>>>
>>> Yes. I have added invocations of my test case in the 'Behavior' tab (as
>>> per the description in
>>> http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI.html)
>>>
>>> As for using the verification hook class, I did record a couple of
>>> verifications and I added System.out.println statements in the
>>> VerificationClass.java file (created in the TestContainer project). I
>>> was hoping to see the lines printed in the ede console window during
>>> playback. It does not seem to work that way.
>>> Where do these lines get printed? I am trying to find CVSsrc for tptp
>>> where, I believe, they have examples of test verification hooks.
>>> Thanks,
>>> Shantala
>>> Hi Shantala,
>>>
>>> > - I am unable to execute my test suite in standard mode. The new
>>> > instance of ede is launched; but the test suite is not executed.
>>>
>>> Can you please verify that you added invocations of your test cases in
>>> the "Behavior" tab of the AGR test suite editor?
>>>
>>> > I was wondering if there is a thread/documentation that talks about
>>> > how to invoke a command-line process from the macro file.
>>>
>>> I suggest you record a verification hook, which inserts a call to a
>>> generated JUnit method that you are responsible for authoring. The
>>> verification hook assumes that you are doing GUI verification (and will
>>> ask for a editor / view context when you insert it), but there's nothing
>>> to prevent you from doing whatever sort of verification you want in the
>>> Java code (including launching processes if necessary.)
>>>
>>> Hope this helps,
>>> --Joe
>>>
>>> Shantala wrote:
>>>
>>> I was wondering if there is a thread/documentation that talks about how
>>> to invoke a command-line process from the macro file.
>>> I am using eclipse sdk 3.2.2 with TPTP 4.3.1 and one of my validations
>>> is content of generated (text) files.
>>> I am unable to see the result of my validations/verifications because
>>> - The System.out.println in VerificationClass is not appearing on my
>>> ede console
>>> - I am unable to execute my test suite in standard mode. The new
>>> instance of ede is launched; but the test suite is not executed.
>>>
>>> Appreciate any input.
>>>
>>> Thanks,
>>> Shantala
>>>
>>>
>
>
Re: [AGR] - invoke external process from AGR macro [message #114955 is a reply to message #114740] Wed, 10 October 2007 11:07 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Shantala,
Are you running with teh Integrated Agent Controller? If so, can you
try installing the stand-alone Agent Controller:

http://www.eclipse.org/tptp/home/downloads/?ver=4.3.1

Using a news group reader like Microsoft Outlook Express will allow you
to attach files to your posts.

Paul
"Shantala" <shrao@ebay.com> wrote in message
news:0ae8c0cd4c7da5e08de669a416d5ac1e$1@www.eclipse.org...
> Hi Paul,
>
> I created a 'hello world' testcase. I created a Java project and added a
> new package & deleted the project. This test executes perfectly in
> quick-mode. However, in standard mode, there is a problem. A new instance
> of ede is launched. But the test is not executed. The progress bar hangs
> at 60% for over 2 minutes and then this error message is displayed:
> "IWAT4039E The Test Execution Harness reported the following
> problems:org.eclipse.hyades.internal.execution.local.control .InactiveProcessException "
>
> Error log says - An exception stack trace is not available.
>
> How can we send attachments?
>
> Thanks,
> Shantala
>
> Paul Slauenwhite wrote:
>
>> Hi Shantala,
>> Are you able to create a 'hello world' test case (a.g. creates a Java
>> project), add it to the behavior, and run the test suite? Also, can you
>> attach your test suite to your reply so we can debug?
>
>> Thanks,
>
>> Paul
>> "Shantala" <shrao@ebay.com> wrote in message
>> news:5b9f2932c32ccfd8f363e897c2b28889$1@www.eclipse.org...
>>>I am able to use verification hook class to invoke external processes.
>>>Thanks.
>>>
>>> I was wondering if there are any leads for the standard mode execution
>>> problem. I am unable to get my testsuite running in standard mode. I
>>> have the setup as per
>>> http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI.html
>>>
>>> Thanks,
>>> Shantala
>>>
>>>
>>> Shantala wrote:
>>>
>>>
>>> Thanks, Joe.
>>>
>>> Yes. I have added invocations of my test case in the 'Behavior' tab (as
>>> per the description in
>>> http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI.html)
>>>
>>> As for using the verification hook class, I did record a couple of
>>> verifications and I added System.out.println statements in the
>>> VerificationClass.java file (created in the TestContainer project). I
>>> was hoping to see the lines printed in the ede console window during
>>> playback. It does not seem to work that way.
>>> Where do these lines get printed? I am trying to find CVSsrc for tptp
>>> where, I believe, they have examples of test verification hooks.
>>> Thanks,
>>> Shantala
>>> Joe wrote:
>>>
>>> Hi Shantala,
>>>
>>> > - I am unable to execute my test suite in standard mode. The new
>>> > instance of ede is launched; but the test suite is not executed.
>>>
>>> Can you please verify that you added invocations of your test cases in
>>> the "Behavior" tab of the AGR test suite editor?
>>>
>>> > I was wondering if there is a thread/documentation that talks about
>>> > how to invoke a command-line process from the macro file.
>>>
>>> I suggest you record a verification hook, which inserts a call to a
>>> generated JUnit method that you are responsible for authoring. The
>>> verification hook assumes that you are doing GUI verification (and will
>>> ask for a editor / view context when you insert it), but there's nothing
>>> to prevent you from doing whatever sort of verification you want in the
>>> Java code (including launching processes if necessary.)
>>>
>>> Hope this helps,
>>> --Joe
>>>
>>> Shantala wrote:
>>>
>>> I was wondering if there is a thread/documentation that talks about how
>>> to invoke a command-line process from the macro file.
>>> I am using eclipse sdk 3.2.2 with TPTP 4.3.1 and one of my validations
>>> is content of generated (text) files.
>>> I am unable to see the result of my validations/verifications because
>>> - The System.out.println in VerificationClass is not appearing on my
>>> ede console
>>> - I am unable to execute my test suite in standard mode. The new
>>> instance of ede is launched; but the test suite is not executed.
>>>
>>> Appreciate any input.
>>>
>>> Thanks,
>>> Shantala
>>>
>>>
>
>
Re: [AGR] - invoke external process from AGR macro [message #116339 is a reply to message #114955] Wed, 24 October 2007 21:06 Go to previous message
Eclipse UserFriend
Originally posted by: shrao.ebay.com

I am able to run my test suite in standard mode with inrtegrated agent
controller. I recently upgraded to a new version of EDE. Since then, I am
able to run my test suite in standard mode.

Thanks for all your help.

~Shantala

Paul Slauenwhite wrote:

> Hi Shantala,
> Are you running with teh Integrated Agent Controller? If so, can you
> try installing the stand-alone Agent Controller:

> http://www.eclipse.org/tptp/home/downloads/?ver=4.3.1

> Using a news group reader like Microsoft Outlook Express will allow you
> to attach files to your posts.

> Paul
> "Shantala" <shrao@ebay.com> wrote in message
> news:0ae8c0cd4c7da5e08de669a416d5ac1e$1@www.eclipse.org...
>> Hi Paul,
>>
>> I created a 'hello world' testcase. I created a Java project and added a
>> new package & deleted the project. This test executes perfectly in
>> quick-mode. However, in standard mode, there is a problem. A new instance
>> of ede is launched. But the test is not executed. The progress bar hangs
>> at 60% for over 2 minutes and then this error message is displayed:
>> "IWAT4039E The Test Execution Harness reported the following
>>
problems:org.eclipse.hyades.internal.execution.local.control .InactiveProcessException "
>>
>> Error log says - An exception stack trace is not available.
>>
>> How can we send attachments?
>>
>> Thanks,
>> Shantala
>>
>> Paul Slauenwhite wrote:
>>
>>> Hi Shantala,
>>> Are you able to create a 'hello world' test case (a.g. creates a Java
>>> project), add it to the behavior, and run the test suite? Also, can you
>>> attach your test suite to your reply so we can debug?
>>
>>> Thanks,
>>
>>> Paul
>>> "Shantala" <shrao@ebay.com> wrote in message
>>> news:5b9f2932c32ccfd8f363e897c2b28889$1@www.eclipse.org...
>>>>I am able to use verification hook class to invoke external processes.
>>>>Thanks.
>>>>
>>>> I was wondering if there are any leads for the standard mode execution
>>>> problem. I am unable to get my testsuite running in standard mode. I
>>>> have the setup as per
>>>> http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI.html
>>>>
>>>> Thanks,
>>>> Shantala
>>>>
>>>>
>>>> Shantala wrote:
>>>>
>>>>
>>>> Thanks, Joe.
>>>>
>>>> Yes. I have added invocations of my test case in the 'Behavior' tab (as
>>>> per the description in
>>>> http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI.html)
>>>>
>>>> As for using the verification hook class, I did record a couple of
>>>> verifications and I added System.out.println statements in the
>>>> VerificationClass.java file (created in the TestContainer project). I
>>>> was hoping to see the lines printed in the ede console window during
>>>> playback. It does not seem to work that way.
>>>> Where do these lines get printed? I am trying to find CVSsrc for tptp
>>>> where, I believe, they have examples of test verification hooks.
>>>> Thanks,
>>>> Shantala
>>>> Joe wrote:
>>>>
>>>> Hi Shantala,
>>>>
>>>> > - I am unable to execute my test suite in standard mode. The new
>>>> > instance of ede is launched; but the test suite is not executed.
>>>>
>>>> Can you please verify that you added invocations of your test cases in
>>>> the "Behavior" tab of the AGR test suite editor?
>>>>
>>>> > I was wondering if there is a thread/documentation that talks about
>>>> > how to invoke a command-line process from the macro file.
>>>>
>>>> I suggest you record a verification hook, which inserts a call to a
>>>> generated JUnit method that you are responsible for authoring. The
>>>> verification hook assumes that you are doing GUI verification (and will
>>>> ask for a editor / view context when you insert it), but there's nothing
>>>> to prevent you from doing whatever sort of verification you want in the
>>>> Java code (including launching processes if necessary.)
>>>>
>>>> Hope this helps,
>>>> --Joe
>>>>
>>>> Shantala wrote:
>>>>
>>>> I was wondering if there is a thread/documentation that talks about how
>>>> to invoke a command-line process from the macro file.
>>>> I am using eclipse sdk 3.2.2 with TPTP 4.3.1 and one of my validations
>>>> is content of generated (text) files.
>>>> I am unable to see the result of my validations/verifications because
>>>> - The System.out.println in VerificationClass is not appearing on my
>>>> ede console
>>>> - I am unable to execute my test suite in standard mode. The new
>>>> instance of ede is launched; but the test suite is not executed.
>>>>
>>>> Appreciate any input.
>>>>
>>>> Thanks,
>>>> Shantala
>>>>
>>>>
>>
>>
Previous Topic:[new AC] Data exchange fail between Java client and Java Agent !
Next Topic:Generic FrameWork for self-mode Performace counter for Java Applications
Goto Forum:
  


Current Time: Fri Mar 29 11:09:05 GMT 2024

Powered by FUDForum. Page generated in 0.05110 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top