TS 71 APISupport Ant Harness

(Difference between revisions)
(Test suite: "Automatic download of Harness and Platform via ant script")
(Test suite: "Automatic download of Harness and Platform via ant script")
Line 19: Line 19:
## 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 '''netbeans701''' and the build shall be successful. }}
-
# {{testcase|"Test case 2 name"}}
+
# {{testcase|"Building NetBeans Platform application without NetBeans"}}
-
## "action 1 description"
+
## 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.
-
## "action 2 description"
+
## Open terminal and change current directory to the '''MySuite''' directory
-
## "action n description"
+
## Issue command<br><code>ant</code><br>This will ensure that the platform and harness is downloaded the project s built.
-
#* {{result|EXPECTED RESULT: "result description" }}
+
## Issue command<br><code>ant run</code><br>which will run the application with the NetBeans Platform stable version 7.0.1
-
# {{testcase|"Test case n name"}}
+
#* {{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 }}
-
## "action 1 description"
+
-
## "action 2 description"
+
-
## "action n description"
+
-
#* {{result|EXPECTED RESULT: "result description" }}
+
<br>
<br>

Revision as of 20:12, 10 November 2011

"TS_71_APISupport_Ant_Harness" Test Specification for "NetBeans 7.1"

Author: "Tushar Joshi"
Version: "1.0"
Last update: "11/11/2011"
Introduction: "Test Specification to test the automatic download of the harness and platform when configured in the suite files."
Comments: ""

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 MySuite, 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}/netbeans701
      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.0.1/uc/final/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 netbeans701 and the build shall be successful.
  2. "Building NetBeans Platform application without NetBeans"
    1. 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.
    2. Open terminal and change current directory to the MySuite 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.0.1
    • 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


Test suite: "test suite 2 title"

Purpose: "purpose description"
Setup: "setup description"

  1. "Test case 1 name"
    1. "action 1 description"
    2. "action 2 description"
    3. "action n description"
    • EXPECTED RESULT: "result description"
  2. "Test case 2 name"
    1. "action 1 description"
    2. "action 2 description"
    3. "action n description"
    • EXPECTED RESULT: "result description"
  3. "Test case n name"
    1. "action 1 description"
    2. "action 2 description"
    3. "action n description"
    • EXPECTED RESULT: "result description"


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