TS 73 APISupport Ant Harness

(Difference between revisions)
(initial page)
(TS_71_APISupport_Ant_Harness Test Specification for NetBeans 7.1)
Line 1: Line 1:
-
==TS_71_APISupport_Ant_Harness Test Specification for NetBeans 7.1==
+
==TS_73_APISupport_Ant_Harness Test Specification for NetBeans 7.3==
'''Author:''' [mailto:tusharvjoshi@netbeans.org Tushar Joshi] <br>
'''Author:''' [mailto:tusharvjoshi@netbeans.org Tushar Joshi] <br>
-
'''Version:''' 1.0 <br>
+
'''Version:''' 1.2 <br>
-
'''Last update:''' 11/11/2011 <br>
+
'''Last update:''' 10/04/2012 <br>
'''Introduction:'''  Test Specification to test the automatic download of the harness and platform when configured in the suite files. <br>
'''Introduction:'''  Test Specification to test the automatic download of the harness and platform when configured in the suite files. <br>
Line 12: Line 12:
# {{testcase|Automatic download of Harness and Platform via ant script}}
# {{testcase|Automatic download of Harness and Platform via ant script}}
## Go to menu '''File > New Project...''', in '''Categories''' list select '''NetBeans Modules''' option, in the '''Projects''' list select the '''NetBeans Platform Application''' option, click '''Next''' button.   
## Go to menu '''File > New Project...''', in '''Categories''' list select '''NetBeans Modules''' option, in the '''Projects''' list select the '''NetBeans Platform Application''' option, click '''Next''' button.   
-
## On the '''Name and Location''' page, for '''Project Name''' field type ''MySuite'', keep all the other options to their default values, click '''Finish''' button.
+
## On the '''Name and Location''' page, for '''Project Name''' field type ''MyApp1'', keep all the other options to their default values, click '''Finish''' button.
## Open the '''Important Files''' node in the '''Projects''' panel and open the '''NetBeans Platform Configuration''' node by double clicking it, which will open the file '''platform.properties''' in the editor area.
## Open the '''Important Files''' node in the '''Projects''' panel and open the '''NetBeans Platform Configuration''' node by double clicking it, which will open the file '''platform.properties''' in the editor area.
## Remove the last line that is <br><code>nbplatform.active=default</code>
## Remove the last line that is <br><code>nbplatform.active=default</code>
-
## Add the following lines in place of the removed line...<br><code>suite.dir=${basedir}<br>nbplatform.active.dir=${suite.dir}/netbeans701<br>harness.dir=${nbplatform.active.dir}/harness<br>bootstrap.url=http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/netbeans/harness/tasks.jar<br>autoupdate.catalog.url=http://updates.netbeans.org/netbeans/updates/7.0.1/uc/final/distribution/catalog.xml.gz</code>
+
## Add the following lines in place of the removed line...<br><code>suite.dir=${basedir}<br>nbplatform.active.dir=${suite.dir}/netbeans73<br>harness.dir=${nbplatform.active.dir}/harness<br>bootstrap.url=http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/netbeans/harness/tasks.jar<br>autoupdate.catalog.url=http://updates.netbeans.org/netbeans/updates/7.3/uc/beta/distribution/catalog.xml.gz</code>
## Go to menu '''Run > Clean and Build Main Project'''
## Go to menu '''Run > Clean and Build Main Project'''
-
#* {{result|EXPECTED RESULT: NetBeans shall download all the required harness and platform dependencies in a folder named '''netbeans701''' and the build shall be successful. }}
+
#* {{result|EXPECTED RESULT: NetBeans shall download all the required harness and platform dependencies in a folder named '''netbeans73''' and the build shall be successful. }}
# {{testcase|Building NetBeans Platform application without NetBeans}}
# {{testcase|Building NetBeans Platform application without NetBeans}}
-
## Copy the netbeans platform application suite named '''MySuite''' to some other location where NetBeans platform is not installed.  Ensure that the folder '''netbeans701''' is removed if it is copied.
+
## Copy the netbeans platform application suite named '''MyApp1''' to some other location where NetBeans platform is not installed.  Ensure that the folder '''netbeans73''' is removed if it is copied.
-
## Open terminal and change current directory to the '''MySuite''' directory
+
## Open terminal and change current directory to the '''MyApp1''' directory
## Issue command<br><code>ant</code><br>This will ensure that the platform and harness is downloaded the project s built.
## Issue command<br><code>ant</code><br>This will ensure that the platform and harness is downloaded the project s built.
-
## Issue command<br><code>ant run</code><br>which will run the application with the NetBeans Platform stable version 7.0.1
+
## Issue command<br><code>ant run</code><br>which will run the application with the NetBeans Platform stable version 7.3
#* {{result|EXPECTED RESULT: The application shall download all the required harness and platform dependencies when ant command is issues and the application shall run properly when '''ant run''' command is issued }}
#* {{result|EXPECTED RESULT: The application shall download all the required harness and platform dependencies when ant command is issues and the application shall run properly when '''ant run''' command is issued }}
<br>
<br>

Revision as of 20:23, 4 October 2012

TS_73_APISupport_Ant_Harness Test Specification for NetBeans 7.3

Author: Tushar Joshi
Version: 1.2
Last update: 10/04/2012
Introduction: Test Specification to test the automatic download of the harness and platform when configured in the suite files.

Contents


Test suite: Automatic download of Harness and Platform via ant script

Purpose: NetBeans Platform suite can be built even if the harness and platform are not available. The URLs configured in the configuration of script shall take care of downloading of the desired harness and platform before building the application suite.
Setup: setup description

  1. Automatic download of Harness and Platform via ant script
    1. Go to menu File > New Project..., in Categories list select NetBeans Modules option, in the Projects list select the NetBeans Platform Application option, click Next button.
    2. On the Name and Location page, for Project Name field type MyApp1, keep all the other options to their default values, click Finish button.
    3. Open the Important Files node in the Projects panel and open the NetBeans Platform Configuration node by double clicking it, which will open the file platform.properties in the editor area.
    4. Remove the last line that is
      nbplatform.active=default
    5. Add the following lines in place of the removed line...
      suite.dir=${basedir}
      nbplatform.active.dir=${suite.dir}/netbeans73
      harness.dir=${nbplatform.active.dir}/harness
      bootstrap.url=http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/netbeans/harness/tasks.jar
      autoupdate.catalog.url=http://updates.netbeans.org/netbeans/updates/7.3/uc/beta/distribution/catalog.xml.gz
    6. Go to menu Run > Clean and Build Main Project
    • EXPECTED RESULT: NetBeans shall download all the required harness and platform dependencies in a folder named netbeans73 and the build shall be successful.
  2. Building NetBeans Platform application without NetBeans
    1. Copy the netbeans platform application suite named MyApp1 to some other location where NetBeans platform is not installed. Ensure that the folder netbeans73 is removed if it is copied.
    2. Open terminal and change current directory to the MyApp1 directory
    3. Issue command
      ant
      This will ensure that the platform and harness is downloaded the project s built.
    4. Issue command
      ant run
      which will run the application with the NetBeans Platform stable version 7.3
    • EXPECTED RESULT: The application shall download all the required harness and platform dependencies when ant command is issues and the application shall run properly when ant run command is issued


Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo