Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » How to RUN TPTP without RAD with Commandline?
How to RUN TPTP without RAD with Commandline? [message #134430] Tue, 19 August 2008 13:20 Go to next message
Ankur Shah is currently offline Ankur ShahFriend
Messages: 7
Registered: July 2009
Junior Member
Hi

Can any body help me with the information that how to run TPTP with
Command Line?

I am currently using TPTP JUNIT test cases with RAD 7.0.0.7 environment
but wanted to run the same test cases over the command line as well.

If someone can help me with the steps to RUN TPTP JUNIT TEST CASES WITH
COMMAND LINE then it would be great.

I also wanted to know Is TPTP capable enough to do the CODE COVERAGE job
as well? if yes then how to do that through RAD ?

Thanx and Regards
Ankur Shah
Re: How to RUN TPTP without RAD with Commandline? [message #134577 is a reply to message #134430] Thu, 21 August 2008 10:43 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 970
Registered: July 2009
Senior Member
Hi Ankur,
You can run TPTP tests using the Ant/Java/Shell client adapters provided
by the TPTP Automatable Services Framework (ASF):

http://help.eclipse.org/ganymede/topic/org.eclipse.hyades.te st.doc.user/tasks/tlaunching-tests-from-scripts-and-applicat ions.htm

See the ASF test suite
( http://dev.eclipse.org/viewcvs/index.cgi/test-results/test/o rg.eclipse.hyades.test.core.services.tests/manual/Test.Execu tion.Services.testsuite?root=TPTP_Project&view=log)
for examples on how to use the Ant/Java/Shell client adapters.

You may use Emma (http://emma.sourceforge.net/) with TPTP (see
http://wiki.eclipse.org/How_to_test_TPTP_with_line_level_cod e_coverage_enabled
for instructions/issues). Also, RAD provides its own line level code
coverage.

Paul
"AB Shah" <ankur.shah@in.ibm.com> wrote in message
news:3aea563623332e5511f8b3cba815ac04$1@www.eclipse.org...
> Hi
> Can any body help me with the information that how to run TPTP with
> Command Line?
>
> I am currently using TPTP JUNIT test cases with RAD 7.0.0.7 environment
> but wanted to run the same test cases over the command line as well.
>
> If someone can help me with the steps to RUN TPTP JUNIT TEST CASES WITH
> COMMAND LINE then it would be great.
>
> I also wanted to know Is TPTP capable enough to do the CODE COVERAGE job
> as well? if yes then how to do that through RAD ?
>
> Thanx and Regards
> Ankur Shah
>
>
Re: How to RUN TPTP without RAD with Commandline? [message #134660 is a reply to message #134577] Thu, 21 August 2008 12:57 Go to previous messageGo to next message
Ankur Shah is currently offline Ankur ShahFriend
Messages: 7
Registered: July 2009
Junior Member
Paul Slauenwhite wrote:

> Hi Ankur,
> You can run TPTP tests using the Ant/Java/Shell client adapters provided
> by the TPTP Automatable Services Framework (ASF):

>
http://help.eclipse.org/ganymede/topic/org.eclipse.hyades.te st.doc.user/tasks/tlaunching-tests-from-scripts-and-applicat ions.htm

> See the ASF test suite
>
( http://dev.eclipse.org/viewcvs/index.cgi/test-results/test/o rg.eclipse.hyades.test.core.services.tests/manual/Test.Execu tion.Services.testsuite?root=TPTP_Project&view=log)
> for examples on how to use the Ant/Java/Shell client adapters.

> You may use Emma (http://emma.sourceforge.net/) with TPTP (see
>
http://wiki.eclipse.org/How_to_test_TPTP_with_line_level_cod e_coverage_enabled
> for instructions/issues). Also, RAD provides its own line level code
> coverage.

> Paul
> "AB Shah" <ankur.shah@in.ibm.com> wrote in message
> news:3aea563623332e5511f8b3cba815ac04$1@www.eclipse.org...
>> Hi
>> Can any body help me with the information that how to run TPTP with
>> Command Line?
>>
>> I am currently using TPTP JUNIT test cases with RAD 7.0.0.7 environment
>> but wanted to run the same test cases over the command line as well.
>>
>> If someone can help me with the steps to RUN TPTP JUNIT TEST CASES WITH
>> COMMAND LINE then it would be great.
>>
>> I also wanted to know Is TPTP capable enough to do the CODE COVERAGE job
>> as well? if yes then how to do that through RAD ?
>>
>> Thanx and Regards
>> Ankur Shah
>>
>>
Hay paul,

Thanx for the information .. acutally i have one simple hello world
program.
and i have one .java file for that and .testsuite file for that.

I just wanted to run it from the command prompt. Say both the files are
under c:/paul/tptpproject directory.

Now how to excute it through command prompt.

i saw that link which you sent to me but it only provides very limited
information.. which i am pasting below in double quotes...

Can you guide me with some simple steps and commands which can be used on
cmd prompt to run the .testsuite file and generate .execution file...?

" Running tests from the command line and shell scripts "
=========================================================
Tests can be executed directly from the command line and shell scripts
with the test properties taking the form of command line arguments. The
TPTP automation client adapters provide a .bat and .cmd file for use
within Windows and a .sh file provided for use within the Linux operating
system. It is possible to specify long sets of arguments and/or
frequently repeated arguments in a configuration file to minimize the
amount of typing necessary to run the test execution service from the
command line. The shell automation client adapter manifests as a text
file (for the batch file or script) and a complementary Java component --
both must exist to execute tests from the command line. All the TPTP
provided automation client adapters can be found in the
tptp-automation-client.jar although the ant-tptp.jar replicates some of
the adapter code in the form of an Ant jar (this was done in order to keep
the TPTP task jar named consistently with the other available Ant tasks).

The test execution service's properties are set by prefixing the property
names with a hyphen making sure to also specify the Eclipse home or root
directory.

Thanx for your help in advance paul..

ABShah
Re: How to RUN TPTP without RAD with Commandline? [message #134737 is a reply to message #134660] Fri, 22 August 2008 10:44 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 970
Registered: July 2009
Senior Member
The test suite I referenced contains information (see the Description on the
Overview page) on several samples that you can use to see the required
steps.

Paul
"AB Shah" <ankur.shah@in.ibm.com> wrote in message
news:5c1de0c544eba88576e4e4562e42b8ee$1@www.eclipse.org...
> Paul Slauenwhite wrote:
>
>> Hi Ankur,
>> You can run TPTP tests using the Ant/Java/Shell client adapters
>> provided by the TPTP Automatable Services Framework (ASF):
>
>>
> http://help.eclipse.org/ganymede/topic/org.eclipse.hyades.te st.doc.user/tasks/tlaunching-tests-from-scripts-and-applicat ions.htm
>
>> See the ASF test suite
> ( http://dev.eclipse.org/viewcvs/index.cgi/test-results/test/o rg.eclipse.hyades.test.core.services.tests/manual/Test.Execu tion.Services.testsuite?root=TPTP_Project&view=log)
>> for examples on how to use the Ant/Java/Shell client adapters.
>
>> You may use Emma (http://emma.sourceforge.net/) with TPTP (see
> http://wiki.eclipse.org/How_to_test_TPTP_with_line_level_cod e_coverage_enabled
>> for instructions/issues). Also, RAD provides its own line level code
>> coverage.
>
>> Paul
>> "AB Shah" <ankur.shah@in.ibm.com> wrote in message
>> news:3aea563623332e5511f8b3cba815ac04$1@www.eclipse.org...
>>> Hi
>>> Can any body help me with the information that how to run TPTP with
>>> Command Line?
>>>
>>> I am currently using TPTP JUNIT test cases with RAD 7.0.0.7 environment
>>> but wanted to run the same test cases over the command line as well.
>>>
>>> If someone can help me with the steps to RUN TPTP JUNIT TEST CASES WITH
>>> COMMAND LINE then it would be great.
>>>
>>> I also wanted to know Is TPTP capable enough to do the CODE COVERAGE job
>>> as well? if yes then how to do that through RAD ?
>>>
>>> Thanx and Regards
>>> Ankur Shah
>>>
>>>
> Hay paul,
>
> Thanx for the information .. acutally i have one simple hello world
> program.
> and i have one .java file for that and .testsuite file for that.
>
> I just wanted to run it from the command prompt. Say both the files are
> under c:/paul/tptpproject directory.
>
> Now how to excute it through command prompt.
>
> i saw that link which you sent to me but it only provides very limited
> information.. which i am pasting below in double quotes...
>
> Can you guide me with some simple steps and commands which can be used on
> cmd prompt to run the .testsuite file and generate .execution file...?
> " Running tests from the command line and shell scripts "
> =========================================================
> Tests can be executed directly from the command line and shell scripts
> with the test properties taking the form of command line arguments. The
> TPTP automation client adapters provide a .bat and .cmd file for use
> within Windows and a .sh file provided for use within the Linux operating
> system. It is possible to specify long sets of arguments and/or
> frequently repeated arguments in a configuration file to minimize the
> amount of typing necessary to run the test execution service from the
> command line. The shell automation client adapter manifests as a text
> file (for the batch file or script) and a complementary Java component --
> both must exist to execute tests from the command line. All the TPTP
> provided automation client adapters can be found in the
> tptp-automation-client.jar although the ant-tptp.jar replicates some of
> the adapter code in the form of an Ant jar (this was done in order to keep
> the TPTP task jar named consistently with the other available Ant tasks).
>
> The test execution service's properties are set by prefixing the property
> names with a hyphen making sure to also specify the Eclipse home or root
> directory.
>
> Thanx for your help in advance paul..
>
> ABShah
>
Previous Topic:Error to start my first profiling project at a Linux box
Next Topic:Quick and Standard mode
Goto Forum:
  


Current Time: Mon Nov 24 14:10:13 GMT 2014

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

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